
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e27bffa
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_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.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"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": 720.744448, | |
"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.16885595703125, | |
"mean": 7.16885595703125, | |
"stdev": 0.0, | |
"p50": 7.16885595703125, | |
"p90": 7.16885595703125, | |
"p95": 7.16885595703125, | |
"p99": 7.16885595703125, | |
"values": [ | |
7.16885595703125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0031039516131085e-06, | |
"ram": 5.235517456169229e-07, | |
"gpu": 0.0, | |
"total": 1.5266556972300315e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1024.12288, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.49186358165740984, | |
"mean": 0.006737857282978215, | |
"stdev": 0.0003221526535069107, | |
"p50": 0.006786111831665039, | |
"p90": 0.007088819122314453, | |
"p95": 0.0072527871131896965, | |
"p99": 0.007450758571624756, | |
"values": [ | |
0.007604896068572998, | |
0.00739081621170044, | |
0.007056863784790039, | |
0.0069679999351501464, | |
0.00677180814743042, | |
0.006963456153869629, | |
0.007003136157989502, | |
0.007020703792572022, | |
0.006831744194030762, | |
0.007324512004852295, | |
0.007234943866729736, | |
0.007279551982879638, | |
0.006936927795410156, | |
0.0069498238563537595, | |
0.006739744186401367, | |
0.006801248073577881, | |
0.006856544017791748, | |
0.0068503360748291015, | |
0.0070900158882141115, | |
0.00706883192062378, | |
0.00685536003112793, | |
0.007053184032440186, | |
0.006818016052246093, | |
0.006933279991149902, | |
0.006836383819580078, | |
0.006935391902923584, | |
0.006803232192993164, | |
0.006849599838256836, | |
0.006762656211853027, | |
0.006912415981292725, | |
0.007143712043762207, | |
0.00708403205871582, | |
0.00690342378616333, | |
0.0067131838798522945, | |
0.00684768009185791, | |
0.0066070079803466795, | |
0.006824319839477539, | |
0.006533823966979981, | |
0.006322559833526612, | |
0.006911647796630859, | |
0.007051743984222412, | |
0.00721999979019165, | |
0.006776800155639648, | |
0.006573279857635498, | |
0.006522304058074952, | |
0.006585919857025146, | |
0.006596511840820313, | |
0.006299071788787842, | |
0.006258783817291259, | |
0.006309247970581054, | |
0.006281727790832519, | |
0.006248479843139649, | |
0.006239264011383056, | |
0.006269375801086426, | |
0.006299071788787842, | |
0.00629747200012207, | |
0.006524928092956543, | |
0.006576576232910156, | |
0.006557087898254394, | |
0.006516960144042969, | |
0.006305920124053955, | |
0.0062906241416931154, | |
0.0062772479057312015, | |
0.0062674880027771, | |
0.006274911880493164, | |
0.006311327934265137, | |
0.006638720035552979, | |
0.006786111831665039, | |
0.007023359775543213, | |
0.006696320056915283, | |
0.006541664123535156, | |
0.006515935897827148, | |
0.006534527778625488 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 296.83027051531366 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.832320461496275e-08, | |
"ram": 4.282280936738658e-08, | |
"gpu": 1.592069987105228e-07, | |
"total": 2.8035301269287217e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7133863.056399568 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1039.765504, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.513333471775055, | |
"mean": 0.007031965366781575, | |
"stdev": 0.00032596367577711224, | |
"p50": 0.007114783763885498, | |
"p90": 0.007360576152801513, | |
"p95": 0.0075649537086486815, | |
"p99": 0.00764639102935791, | |
"values": [ | |
0.007731040000915527, | |
0.0076072320938110356, | |
0.007517536163330078, | |
0.007277952194213867, | |
0.0070635838508605955, | |
0.007206208229064941, | |
0.007316927909851074, | |
0.007245855808258057, | |
0.007201727867126465, | |
0.0075634560585021975, | |
0.007567200183868408, | |
0.007448703765869141, | |
0.007268832206726074, | |
0.007159743785858154, | |
0.007228576183319092, | |
0.007114783763885498, | |
0.0072403521537780765, | |
0.007285984039306641, | |
0.007341887950897217, | |
0.007246335983276367, | |
0.007150815963745117, | |
0.007311071872711182, | |
0.007312032222747802, | |
0.007160799980163574, | |
0.007171775817871094, | |
0.007324416160583496, | |
0.007178495883941651, | |
0.007179935932159424, | |
0.007149343967437744, | |
0.007365248203277588, | |
0.007295807838439941, | |
0.007284736156463623, | |
0.007338016033172607, | |
0.007200319766998291, | |
0.007040832042694092, | |
0.006764319896697998, | |
0.007022240161895752, | |
0.006587232112884521, | |
0.006755551815032959, | |
0.0073118720054626465, | |
0.007331424236297608, | |
0.007613471984863281, | |
0.006891359806060791, | |
0.0068213119506835935, | |
0.006801023960113526, | |
0.006780479907989502, | |
0.006850912094116211, | |
0.006561376094818115, | |
0.006551231861114502, | |
0.006552159786224365, | |
0.006632927894592285, | |
0.006541920185089111, | |
0.0065393919944763184, | |
0.006600800037384033, | |
0.0065469760894775395, | |
0.00659168004989624, | |
0.006824480056762695, | |
0.006812511920928955, | |
0.006801152229309082, | |
0.00688486385345459, | |
0.006549407958984375, | |
0.006552159786224365, | |
0.006546432018280029, | |
0.006539519786834717, | |
0.006535007953643799, | |
0.007109792232513428, | |
0.006841184139251709, | |
0.007019743919372558, | |
0.007262144088745117, | |
0.006816160202026367, | |
0.006862559795379639, | |
0.006843999862670898, | |
0.0067851200103759765 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 142.20775385554623 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.241447526156059e-08, | |
"ram": 3.9516821155795844e-08, | |
"gpu": 1.486097032388448e-07, | |
"total": 2.605409996562012e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3838167.510370949 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.47959161567687986, | |
"mean": 0.0065697481599572595, | |
"stdev": 0.0002747615416130286, | |
"p50": 0.006631423950195312, | |
"p90": 0.006837247848510742, | |
"p95": 0.007034265613555908, | |
"p99": 0.007141580753326417, | |
"values": [ | |
0.007189504146575928, | |
0.007085055828094483, | |
0.0069847040176391605, | |
0.006773759841918945, | |
0.0065771517753601075, | |
0.00669593620300293, | |
0.006801407814025879, | |
0.00674508810043335, | |
0.006685664176940918, | |
0.007029759883880615, | |
0.007041024208068848, | |
0.006929408073425293, | |
0.006723584175109864, | |
0.006668288230895996, | |
0.0067348480224609375, | |
0.006624256134033203, | |
0.006732768058776856, | |
0.006749184131622315, | |
0.006820864200592041, | |
0.006730815887451172, | |
0.006639616012573242, | |
0.006765567779541016, | |
0.006799359798431396, | |
0.006645760059356689, | |
0.006658048152923584, | |
0.006821887969970703, | |
0.0066570878028869625, | |
0.006668288230895996, | |
0.006631423950195312, | |
0.006837247848510742, | |
0.0067758078575134275, | |
0.006778880119323731, | |
0.006802432060241699, | |
0.006696959972381592, | |
0.0065382399559021, | |
0.00632422399520874, | |
0.006554624080657959, | |
0.0061972479820251464, | |
0.006275072097778321, | |
0.006812672138214112, | |
0.006818816184997558, | |
0.007122943878173828, | |
0.006494207859039307, | |
0.0063836159706115725, | |
0.006402048110961914, | |
0.006385663986206055, | |
0.006455296039581298, | |
0.006174719810485839, | |
0.00616755199432373, | |
0.00616761589050293, | |
0.006227935791015625, | |
0.006159359931945801, | |
0.006156320095062256, | |
0.006202367782592774, | |
0.006158336162567139, | |
0.006176767826080322, | |
0.006425600051879882, | |
0.006416384220123291, | |
0.006398975849151611, | |
0.006487040042877197, | |
0.006165503978729248, | |
0.006168575763702393, | |
0.006162432193756104, | |
0.006155263900756836, | |
0.006153247833251953, | |
0.0066713600158691405, | |
0.006440959930419922, | |
0.006593567848205566, | |
0.006837247848510742, | |
0.006412288188934326, | |
0.006423552036285401, | |
0.006440959930419922, | |
0.00638156795501709 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 152.2128361167661 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |