
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1d146a8
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.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.2.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.41.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1070.313472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.0096 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.49477590370178237, | |
"mean": 0.008835283994674684, | |
"stdev": 0.00047560515832173526, | |
"p50": 0.00882428789138794, | |
"p90": 0.009246640205383301, | |
"p95": 0.009671528100967407, | |
"p99": 0.010329761648178103, | |
"values": [ | |
0.009739232063293458, | |
0.009477952003479003, | |
0.009200672149658203, | |
0.008889663696289062, | |
0.008862303733825684, | |
0.009157376289367676, | |
0.009001407623291015, | |
0.008867712020874023, | |
0.00895411205291748, | |
0.008951871871948243, | |
0.008897184371948242, | |
0.008789952278137208, | |
0.00964896011352539, | |
0.00890287971496582, | |
0.009878623962402343, | |
0.009148351669311524, | |
0.008954239845275878, | |
0.008999327659606933, | |
0.00889776039123535, | |
0.008852543830871583, | |
0.008827839851379395, | |
0.008820735931396484, | |
0.009244832038879394, | |
0.00891539192199707, | |
0.009042400360107422, | |
0.008694751739501953, | |
0.008746848106384278, | |
0.008386015892028809, | |
0.00912492847442627, | |
0.010881152153015137, | |
0.009248448371887206, | |
0.008968128204345702, | |
0.009079808235168458, | |
0.008747296333312988, | |
0.008723391532897948, | |
0.008313311576843261, | |
0.008308192253112794, | |
0.008256319999694825, | |
0.008268287658691406, | |
0.008269023895263673, | |
0.008252544403076172, | |
0.008471967697143555, | |
0.008720735549926757, | |
0.008734047889709473, | |
0.00868611240386963, | |
0.008652095794677734, | |
0.008782912254333496, | |
0.00868067169189453, | |
0.008232319831848144, | |
0.00822707176208496, | |
0.008628928184509277, | |
0.008762207984924317, | |
0.008253984451293946, | |
0.008252960205078125, | |
0.008253439903259278, | |
0.008244671821594239 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 226.36510622697196 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0113933749791593e-07, | |
"ram": 5.529807672940216e-08, | |
"gpu": 1.8001897640677938e-07, | |
"total": 3.3645639063409746e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5944306.768050178 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1070.313472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.46016 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.5048562564849853, | |
"mean": 0.009015290294374739, | |
"stdev": 0.0004079033469706855, | |
"p50": 0.009084399700164794, | |
"p90": 0.009474592208862305, | |
"p95": 0.009783312320709229, | |
"p99": 0.009963630437850953, | |
"values": [ | |
0.009515968322753907, | |
0.009422143936157227, | |
0.00923846435546875, | |
0.009129695892333985, | |
0.009203871726989747, | |
0.009433216094970703, | |
0.009156415939331055, | |
0.009159616470336914, | |
0.009198528289794922, | |
0.009105792045593262, | |
0.009084927558898925, | |
0.009294207572937013, | |
0.009410880088806152, | |
0.009784704208374023, | |
0.010074175834655762, | |
0.009183456420898437, | |
0.009782848358154296, | |
0.00911417579650879, | |
0.00921123218536377, | |
0.009115519523620606, | |
0.009083871841430663, | |
0.00934825611114502, | |
0.009200639724731445, | |
0.009065664291381836, | |
0.009119135856628418, | |
0.009114048004150391, | |
0.00861996841430664, | |
0.009045663833618165, | |
0.009685855865478515, | |
0.009873184204101562, | |
0.009115263938903809, | |
0.009193216323852539, | |
0.008885696411132812, | |
0.008896767616271973, | |
0.008921183586120606, | |
0.00845404815673828, | |
0.008456000328063965, | |
0.008512191772460938, | |
0.008436896324157716, | |
0.008403327941894531, | |
0.008424799919128418, | |
0.008858367919921875, | |
0.008886400222778321, | |
0.008863807678222656, | |
0.008873056411743165, | |
0.00886905574798584, | |
0.008854816436767578, | |
0.008852928161621094, | |
0.008435327529907227, | |
0.008391872406005859, | |
0.008982239723205566, | |
0.00888441562652588, | |
0.008430463790893555, | |
0.008396736145019531, | |
0.00838486385345459, | |
0.008416383743286134 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 110.92266220467343 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.581233094696252e-08, | |
"ram": 5.1956484899161136e-08, | |
"gpu": 2.079594760522342e-07, | |
"total": 3.5572829189835787e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 2811134.292027944 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.982183931350708, | |
"mean": 0.017857889660921965, | |
"stdev": 0.0008381614248464655, | |
"p50": 0.017973312377929686, | |
"p90": 0.01869783020019531, | |
"p95": 0.018983320999145507, | |
"p99": 0.02040795181274414, | |
"values": [ | |
0.018940927505493164, | |
0.018496511459350586, | |
0.018036735534667968, | |
0.018114559173583983, | |
0.01861427116394043, | |
0.018207744598388673, | |
0.01805619239807129, | |
0.018186271667480467, | |
0.01809507179260254, | |
0.01802956771850586, | |
0.018107391357421874, | |
0.019082239151000976, | |
0.018702335357666015, | |
0.019991552352905274, | |
0.01838387107849121, | |
0.018760704040527345, | |
0.018143232345581056, | |
0.018168832778930662, | |
0.017973312377929686, | |
0.01795987129211426, | |
0.018148351669311523, | |
0.018545759201049804, | |
0.017998752593994142, | |
0.01822105598449707, | |
0.01783705520629883, | |
0.017494016647338868, | |
0.01739776039123535, | |
0.018691072463989256, | |
0.020896768569946288, | |
0.018473983764648438, | |
0.018144256591796876, | |
0.018082815170288084, | |
0.017673215866088866, | |
0.017657888412475585, | |
0.016829408645629883, | |
0.01677926445007324, | |
0.01680281639099121, | |
0.016730112075805666, | |
0.016698368072509767, | |
0.016695295333862305, | |
0.017345535278320313, | |
0.01762611198425293, | |
0.017632255554199217, | |
0.017564672470092774, | |
0.017550336837768556, | |
0.017679359436035155, | |
0.017552383422851564, | |
0.016710655212402344, | |
0.016655359268188476, | |
0.01761689567565918, | |
0.017661951065063478, | |
0.016740352630615234, | |
0.016669696807861328, | |
0.016668672561645507, | |
0.016660480499267577 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 55.99765812128845 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |