IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f10724b
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+rocm5.7", | |
"_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": "5", | |
"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": false, | |
"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": "warn", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1079.840768, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 47218.864128, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.206080078125, | |
"mean": 8.206080078125, | |
"stdev": 0.0, | |
"p50": 8.206080078125, | |
"p90": 8.206080078125, | |
"p95": 8.206080078125, | |
"p99": 8.206080078125, | |
"values": [ | |
8.206080078125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1249.206272, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 298189.914112, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.5103950848579406, | |
"mean": 0.008101509283459376, | |
"stdev": 0.0013507911313216513, | |
"p50": 0.007755981922149658, | |
"p90": 0.008724042892456055, | |
"p95": 0.00875472984313965, | |
"p99": 0.012913779830932639, | |
"values": [ | |
0.007747500896453857, | |
0.008252619743347168, | |
0.008327178955078125, | |
0.007906220912933349, | |
0.008191181182861327, | |
0.007920141220092774, | |
0.007741261005401612, | |
0.007732941150665283, | |
0.007807661056518555, | |
0.007729580879211426, | |
0.00770622205734253, | |
0.007718380928039551, | |
0.007723182201385498, | |
0.007873101234436035, | |
0.00771950101852417, | |
0.007710540771484375, | |
0.007760302066802978, | |
0.007722381114959717, | |
0.007733100891113281, | |
0.0077332620620727535, | |
0.007717580795288086, | |
0.00774734115600586, | |
0.007770862102508545, | |
0.007722062110900879, | |
0.007715180873870849, | |
0.007739020824432373, | |
0.0077425408363342284, | |
0.007790861129760743, | |
0.007769580841064453, | |
0.007772301197052002, | |
0.01831659507751465, | |
0.007810221195220947, | |
0.007718541145324707, | |
0.007740302085876465, | |
0.007731660842895508, | |
0.007756781101226806, | |
0.007720941066741943, | |
0.007711502075195312, | |
0.00796750020980835, | |
0.007755981922149658, | |
0.007729741096496582, | |
0.007821101188659668, | |
0.007695180892944336, | |
0.007706861972808838, | |
0.007695661067962646, | |
0.007813580989837646, | |
0.0077545418739318845, | |
0.007724141120910645, | |
0.0077407808303833, | |
0.007736620903015137, | |
0.007961260795593261, | |
0.008719179153442383, | |
0.008188779830932618, | |
0.008175821304321288, | |
0.008725258827209472, | |
0.008749258995056153, | |
0.008728459358215332, | |
0.008755337715148926, | |
0.009602376937866211, | |
0.008830538749694824, | |
0.00816670036315918, | |
0.008037899971008301, | |
0.007862380981445313 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 246.86758109175335 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1249.206272, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 300803.371008, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.48799449682235707, | |
"mean": 0.007745944394005668, | |
"stdev": 0.0015769189343158069, | |
"p50": 0.0074108619689941405, | |
"p90": 0.00821636371612549, | |
"p95": 0.008314715671539307, | |
"p99": 0.01297073360443118, | |
"values": [ | |
0.008717418670654297, | |
0.007629422187805176, | |
0.0076150221824646, | |
0.007534542083740234, | |
0.007531980991363526, | |
0.007549101829528808, | |
0.007375661849975586, | |
0.007394701957702637, | |
0.007364303112030029, | |
0.007573101043701172, | |
0.007360301971435547, | |
0.007356781959533692, | |
0.007358541965484619, | |
0.007390542030334473, | |
0.0073606219291687015, | |
0.007341582775115967, | |
0.007463022232055664, | |
0.0073534221649169925, | |
0.0073475022315979, | |
0.007321901798248291, | |
0.007393742084503174, | |
0.007378703117370606, | |
0.007534060955047607, | |
0.007316301822662354, | |
0.007376781940460205, | |
0.007360622882843017, | |
0.007384781837463379, | |
0.007413901805877685, | |
0.00737102222442627, | |
0.007393901824951172, | |
0.007356622219085693, | |
0.00741198205947876, | |
0.007417422771453857, | |
0.00742126178741455, | |
0.007415021896362305, | |
0.007493102073669434, | |
0.007332302093505859, | |
0.00737326192855835, | |
0.007409421920776367, | |
0.007394862174987793, | |
0.007463982105255127, | |
0.007354862213134765, | |
0.0073961420059204105, | |
0.007310862064361572, | |
0.0074127821922302245, | |
0.007391022205352783, | |
0.0073491020202636715, | |
0.0073942217826843265, | |
0.007457581996917725, | |
0.0074108619689941405, | |
0.008167340278625488, | |
0.008228619575500489, | |
0.007736461162567139, | |
0.007852460861206055, | |
0.00831645965576172, | |
0.008299019813537598, | |
0.00826222038269043, | |
0.01991035270690918, | |
0.008458539009094239, | |
0.008012139320373535, | |
0.0077350220680236816, | |
0.007659021854400635, | |
0.007526861190795898 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 129.09981651480317 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.45475874328613275, | |
"mean": 0.007218392750573536, | |
"stdev": 0.0015656899006184172, | |
"p50": 0.006871344089508057, | |
"p90": 0.007696524810791016, | |
"p95": 0.007759725904464721, | |
"p99": 0.012380232887268095, | |
"values": [ | |
0.008134700775146485, | |
0.007086863040924072, | |
0.007109423160552978, | |
0.007037103176116943, | |
0.007022222995758057, | |
0.007033263206481934, | |
0.006848622798919677, | |
0.006870063781738281, | |
0.006854063987731933, | |
0.007067183017730713, | |
0.0068564629554748536, | |
0.006842063903808594, | |
0.006857263088226318, | |
0.00687902307510376, | |
0.006846222877502441, | |
0.006828944206237793, | |
0.006909903049468994, | |
0.00684686279296875, | |
0.0068409438133239745, | |
0.0068614230155944825, | |
0.006865583896636963, | |
0.006859183788299561, | |
0.006990542888641357, | |
0.0068063831329345705, | |
0.00683838415145874, | |
0.006843664169311523, | |
0.006855183124542237, | |
0.006870062828063965, | |
0.00685422420501709, | |
0.006872464179992676, | |
0.0067694239616394045, | |
0.006883984088897705, | |
0.006896304130554199, | |
0.00690798282623291, | |
0.006870382785797119, | |
0.00696254301071167, | |
0.006814864158630371, | |
0.006867823123931885, | |
0.006871344089508057, | |
0.006828942775726318, | |
0.006912463188171387, | |
0.006834383010864258, | |
0.006866064071655274, | |
0.006815823078155517, | |
0.006866543769836426, | |
0.006875504016876221, | |
0.006844462871551514, | |
0.0068492631912231445, | |
0.006953582763671875, | |
0.006869584083557129, | |
0.00767694091796875, | |
0.007727500915527344, | |
0.007234542846679687, | |
0.007354701995849609, | |
0.007760941982269287, | |
0.0077487812042236325, | |
0.007701420783996582, | |
0.019307153701782227, | |
0.007882700920104981, | |
0.007417901039123535, | |
0.007173902988433838, | |
0.0071316628456115725, | |
0.006991023063659668 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.53499450006308 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |