
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ec48340
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu124", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"model_kwargs": {}, | |
"processor_kwargs": {}, | |
"no_weights": true, | |
"device_map": null, | |
"torch_dtype": null, | |
"eval_mode": true, | |
"to_bettertransformer": false, | |
"low_cpu_mem_usage": null, | |
"attn_implementation": null, | |
"cache_implementation": null, | |
"autocast_enabled": false, | |
"autocast_dtype": null, | |
"torch_compile": false, | |
"torch_compile_target": "forward", | |
"torch_compile_config": {}, | |
"quantization_scheme": null, | |
"quantization_config": {}, | |
"deepspeed_inference": false, | |
"deepspeed_inference_config": {}, | |
"peft_type": null, | |
"peft_config": {} | |
}, | |
"scenario": { | |
"name": "inference", | |
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario", | |
"iterations": 1, | |
"duration": 1, | |
"warmup_runs": 1, | |
"input_shapes": { | |
"batch_size": 1, | |
"num_choices": 2, | |
"sequence_length": 2 | |
}, | |
"new_tokens": null, | |
"memory": true, | |
"latency": true, | |
"energy": true, | |
"forward_kwargs": {}, | |
"generate_kwargs": { | |
"max_new_tokens": 2, | |
"min_new_tokens": 2 | |
}, | |
"call_kwargs": { | |
"num_inference_steps": 2 | |
} | |
}, | |
"launcher": { | |
"name": "process", | |
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", | |
"device_isolation": true, | |
"device_isolation_action": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 791.363584, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.42959814453125, | |
"mean": 7.42959814453125, | |
"stdev": 0.0, | |
"p50": 7.42959814453125, | |
"p90": 7.42959814453125, | |
"p95": 7.42959814453125, | |
"p99": 7.42959814453125, | |
"values": [ | |
7.42959814453125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0384600874999312e-06, | |
"ram": 5.325060445105595e-07, | |
"gpu": 1.66027910599993e-06, | |
"total": 3.2312452380104207e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1208.365056, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.4885904006958008, | |
"mean": 0.006881554939377475, | |
"stdev": 0.00034276579663898284, | |
"p50": 0.006971424102783203, | |
"p90": 0.007274847984313965, | |
"p95": 0.007369343996047974, | |
"p99": 0.007570550298690795, | |
"values": [ | |
0.007740320205688477, | |
0.007497791767120361, | |
0.007313087940216064, | |
0.0073218240737915035, | |
0.00733190393447876, | |
0.007154848098754883, | |
0.007227680206298828, | |
0.0074067840576171875, | |
0.0074216961860656735, | |
0.0072575039863586426, | |
0.007075776100158691, | |
0.0071207361221313475, | |
0.006978335857391357, | |
0.007024608135223389, | |
0.007113440036773682, | |
0.006852799892425537, | |
0.006977407932281494, | |
0.007017568111419677, | |
0.0070314879417419434, | |
0.007222847938537598, | |
0.0071469759941101075, | |
0.006970719814300537, | |
0.007172544002532959, | |
0.006932223796844482, | |
0.0070780482292175295, | |
0.006936192035675049, | |
0.0071727681159973146, | |
0.007197824001312256, | |
0.007192543983459473, | |
0.006971424102783203, | |
0.006972479820251465, | |
0.007211808204650879, | |
0.007085504055023194, | |
0.007088160037994385, | |
0.007073472023010254, | |
0.0069409279823303225, | |
0.006885216236114502, | |
0.006701536178588867, | |
0.006997407913208008, | |
0.006578911781311035, | |
0.00652239990234375, | |
0.00704633617401123, | |
0.007155744075775147, | |
0.007274847984313965, | |
0.007063712120056152, | |
0.006736639976501465, | |
0.006682112216949463, | |
0.006696991920471192, | |
0.006712607860565186, | |
0.006677536010742188, | |
0.006677152156829834, | |
0.006643295764923096, | |
0.006700831890106201, | |
0.006431712150573731, | |
0.006388512134552002, | |
0.006420224189758301, | |
0.006429855823516846, | |
0.006440159797668457, | |
0.0064091839790344236, | |
0.006418528079986573, | |
0.006414847850799561, | |
0.00641596794128418, | |
0.0064225921630859375, | |
0.006395711898803711, | |
0.006418623924255371, | |
0.006454080104827881, | |
0.006434048175811767, | |
0.006406879901885986, | |
0.006464511871337891, | |
0.006447648048400879, | |
0.0063919677734375 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 290.63198908078846 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.199980393199356e-08, | |
"ram": 4.483025276780761e-08, | |
"gpu": 1.5679131317241357e-07, | |
"total": 2.8362136987221474e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7051654.82030179 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1227.042816, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.513461983680725, | |
"mean": 0.007231858925080634, | |
"stdev": 0.00035477207158787934, | |
"p50": 0.007328415870666504, | |
"p90": 0.007722911834716797, | |
"p95": 0.007742336034774781, | |
"p99": 0.007834505605697631, | |
"values": [ | |
0.007931072235107422, | |
0.007739136219024658, | |
0.007749855995178223, | |
0.007736063957214355, | |
0.0075335679054260255, | |
0.007631423950195312, | |
0.007743360042572022, | |
0.007741312026977539, | |
0.00779311990737915, | |
0.007492991924285888, | |
0.00748038387298584, | |
0.0074700798988342285, | |
0.007398111820220947, | |
0.007424511909484863, | |
0.007269023895263672, | |
0.007238207817077636, | |
0.007336544036865234, | |
0.007328415870666504, | |
0.007515520095825195, | |
0.007466559886932373, | |
0.007360352039337158, | |
0.0074561920166015625, | |
0.007480991840362549, | |
0.007408224105834961, | |
0.007258336067199707, | |
0.007404575824737549, | |
0.007722911834716797, | |
0.007561823844909668, | |
0.007607552051544189, | |
0.007348447799682617, | |
0.0074058880805969235, | |
0.007523200035095215, | |
0.007525792121887207, | |
0.007376287937164307, | |
0.0074403839111328125, | |
0.007533247947692871, | |
0.007255648136138916, | |
0.007060768127441407, | |
0.007068960189819336, | |
0.00678982400894165, | |
0.007300032138824463, | |
0.007467135906219482, | |
0.007543935775756836, | |
0.007640672206878662, | |
0.007081664085388183, | |
0.006948768138885498, | |
0.007035647869110108, | |
0.007109920024871826, | |
0.007028768062591553, | |
0.007043583869934082, | |
0.007041823863983154, | |
0.007000736236572266, | |
0.006730976104736328, | |
0.006764575958251953, | |
0.006753344058990479, | |
0.006719520092010498, | |
0.007114079952239991, | |
0.006770143985748291, | |
0.0067051839828491215, | |
0.006735392093658447, | |
0.00687718391418457, | |
0.0067473921775817874, | |
0.006745535850524903, | |
0.006732736110687256, | |
0.00672540807723999, | |
0.006718431949615479, | |
0.006750112056732178, | |
0.006794911861419678, | |
0.006728672027587891, | |
0.006745728015899658, | |
0.006751296043395996 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.27703365892887 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.899274192010568e-08, | |
"ram": 4.3192211819057347e-08, | |
"gpu": 1.4811508690866687e-07, | |
"total": 2.703000406478299e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3699592.4884187714 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.4798666553497316, | |
"mean": 0.006758685286615936, | |
"stdev": 0.00029680880588914927, | |
"p50": 0.006814720153808594, | |
"p90": 0.007171072006225586, | |
"p95": 0.0072104959487915045, | |
"p99": 0.007292416095733643, | |
"values": [ | |
0.007360511779785156, | |
0.007171072006225586, | |
0.007227392196655274, | |
0.007205887794494629, | |
0.007029727935791015, | |
0.007068640232086182, | |
0.0072120318412780765, | |
0.007208960056304932, | |
0.007263232231140137, | |
0.006933504104614257, | |
0.006951935768127441, | |
0.006939616203308106, | |
0.006853631973266602, | |
0.006899712085723877, | |
0.006779903888702392, | |
0.006749152183532715, | |
0.006837247848510742, | |
0.006813695907592773, | |
0.0069836478233337405, | |
0.006940671920776367, | |
0.006845439910888672, | |
0.00693452787399292, | |
0.006958079814910889, | |
0.0068915200233459475, | |
0.0067686400413513184, | |
0.006871039867401123, | |
0.007187456130981445, | |
0.007048192024230957, | |
0.007069695949554444, | |
0.006848512172698974, | |
0.006879231929779053, | |
0.006965248107910156, | |
0.006990848064422607, | |
0.006861760139465332, | |
0.006945792198181152, | |
0.007027711868286133, | |
0.00672156810760498, | |
0.0065782079696655275, | |
0.006621183872222901, | |
0.006391808032989502, | |
0.006814720153808594, | |
0.006958079814910889, | |
0.007014400005340577, | |
0.0071198720932006835, | |
0.00667852783203125, | |
0.0065484800338745115, | |
0.006628352165222168, | |
0.0066979842185974124, | |
0.0066293439865112306, | |
0.006626304149627686, | |
0.006628352165222168, | |
0.006601727962493896, | |
0.006341631889343262, | |
0.00637337589263916, | |
0.0063539199829101565, | |
0.006331391811370849, | |
0.006694911956787109, | |
0.006371327877044678, | |
0.006316031932830811, | |
0.006344704151153564, | |
0.0064880638122558594, | |
0.006343743801116943, | |
0.006335487842559814, | |
0.006342591762542725, | |
0.006336512088775635, | |
0.006328320026397705, | |
0.0063539199829101565, | |
0.0064020161628723146, | |
0.006328320026397705, | |
0.006335487842559814, | |
0.006362112045288086 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 147.95776953548588 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |