
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8cd0a37
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.225-213.878.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.5.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"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.13.0", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 803.651584, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.07976959991455078 | |
], | |
"count": 1, | |
"total": 0.07976959991455078, | |
"mean": 0.07976959991455078, | |
"p50": 0.07976959991455078, | |
"p90": 0.07976959991455078, | |
"p95": 0.07976959991455078, | |
"p99": 0.07976959991455078, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1232.22016, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.410496 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007390848159790039, | |
0.007014080047607422, | |
0.0075944638252258305, | |
0.007460544109344483, | |
0.008441920280456544, | |
0.007539616107940674, | |
0.007688384056091308, | |
0.007583040237426758, | |
0.007213215827941894, | |
0.007246335983276367, | |
0.0072557759284973145, | |
0.0071662402153015135, | |
0.0069901118278503415, | |
0.007070752143859863, | |
0.007093791961669922, | |
0.007204127788543701, | |
0.0070627198219299315, | |
0.007151040077209472, | |
0.007123167991638184, | |
0.007108831882476806, | |
0.008119168281555176, | |
0.008347583770751952, | |
0.00766534423828125, | |
0.007520256042480469, | |
0.007348544120788574, | |
0.00744979190826416, | |
0.007327871799468994, | |
0.007314879894256592, | |
0.006774240016937256, | |
0.006754240036010742, | |
0.007169888019561767, | |
0.007212800025939941, | |
0.007456992149353027, | |
0.007144991874694824, | |
0.007030720233917236, | |
0.007044544219970703, | |
0.007090432167053223, | |
0.006864287853240967, | |
0.006784607887268066, | |
0.006834623813629151, | |
0.0068206720352172855, | |
0.008362048149108887, | |
0.007166783809661865, | |
0.006930943965911865, | |
0.006863903999328613, | |
0.0068853759765625, | |
0.006848639965057373, | |
0.006799104213714599, | |
0.006770880222320557, | |
0.0067677760124206544, | |
0.006801055908203125, | |
0.006472576141357422, | |
0.006495520114898682, | |
0.006459104061126709, | |
0.006471263885498047, | |
0.006546656131744385, | |
0.0065287680625915525, | |
0.006483520030975342, | |
0.006485919952392578, | |
0.006488031864166259, | |
0.0066657280921936036, | |
0.006388959884643555, | |
0.006391232013702393, | |
0.006419167995452881, | |
0.006479743957519531, | |
0.0065625920295715335, | |
0.006475423812866211, | |
0.0070553598403930665, | |
0.006621984004974366, | |
0.006489215850830078 | |
], | |
"count": 70, | |
"total": 0.492652768611908, | |
"mean": 0.007037896694455828, | |
"p50": 0.007037632226943969, | |
"p90": 0.007584182596206666, | |
"p95": 0.007925315380096434, | |
"p99": 0.00838680850982666, | |
"stdev": 0.0004745677250626199, | |
"stdev_": 6.743033404233757 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 284.1758108747916 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.09570388463823e-08, | |
"ram": 4.423776172864137e-08, | |
"gpu": 1.5075219921087505e-07, | |
"total": 2.759469997858987e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7247768.598867741 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1232.22016, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.458112 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.0072260479927062984, | |
0.00748905611038208, | |
0.0081245756149292, | |
0.009035327911376952, | |
0.008250335693359374, | |
0.007875743865966798, | |
0.007872992038726807, | |
0.007766016006469726, | |
0.007274911880493164, | |
0.007459360122680664, | |
0.007291647911071777, | |
0.007344287872314453, | |
0.007124063968658448, | |
0.007380064010620117, | |
0.007504672050476074, | |
0.007342527866363526, | |
0.007254144191741943, | |
0.007250271797180176, | |
0.007271168231964112, | |
0.007499231815338135, | |
0.008550144195556641, | |
0.008047295570373534, | |
0.007686719894409179, | |
0.007824800014495849, | |
0.00772976016998291, | |
0.007482944011688232, | |
0.007345600128173828, | |
0.007575488090515137, | |
0.0067849278450012205, | |
0.007268447875976563, | |
0.007383520126342773, | |
0.007562496185302734, | |
0.007637887954711914, | |
0.007137472152709961, | |
0.007216224193572998, | |
0.007229055881500244, | |
0.007090688228607178, | |
0.007040256023406982, | |
0.007117504119873047, | |
0.007048031806945801, | |
0.007983200073242188, | |
0.00867795181274414, | |
0.007271520137786865, | |
0.007100543975830078, | |
0.007048416137695313, | |
0.007076863765716553, | |
0.007053215980529785, | |
0.007054143905639648, | |
0.007040095806121826, | |
0.006991136074066162, | |
0.0069903039932250974, | |
0.006636960029602051, | |
0.0066921601295471195, | |
0.006600160121917725, | |
0.0067842879295349125, | |
0.006678271770477295, | |
0.006640255928039551, | |
0.0066341438293457036, | |
0.006670783996582031, | |
0.006675615787506104, | |
0.006733439922332764, | |
0.006540031909942627, | |
0.006573311805725098, | |
0.006712575912475586, | |
0.0067034239768981934, | |
0.006746784210205078, | |
0.00708073616027832, | |
0.007111199855804443, | |
0.006640672206878662, | |
0.006687935829162598 | |
], | |
"count": 70, | |
"total": 0.5082258543968201, | |
"mean": 0.0072603693485260015, | |
"p50": 0.007221136093139648, | |
"p90": 0.007886489486694336, | |
"p95": 0.008193743658065796, | |
"p99": 0.008788738403320314, | |
"stdev": 0.0005202202812025578, | |
"stdev_": 7.165204085769725 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 137.73403968808003 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.40618877769877e-08, | |
"ram": 4.0472392890297503e-08, | |
"gpu": 1.3833533364628062e-07, | |
"total": 2.5286961431356587e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3954607.2101805406 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.006748191833496094, | |
0.006948863983154297, | |
0.007546879768371582, | |
0.008287232398986816, | |
0.0077199358940124516, | |
0.007325695991516113, | |
0.00727347183227539, | |
0.0072325119972229, | |
0.00674399995803833, | |
0.0069253120422363285, | |
0.00678604793548584, | |
0.0068280320167541505, | |
0.006604800224304199, | |
0.006876160144805908, | |
0.006957056045532227, | |
0.006815743923187256, | |
0.006738848209381103, | |
0.006754303932189941, | |
0.006762495994567871, | |
0.006957056045532227, | |
0.007985151767730713, | |
0.0074618558883666995, | |
0.007147520065307617, | |
0.007286623954772949, | |
0.007186431884765625, | |
0.0069959678649902345, | |
0.006883327960968018, | |
0.007067840099334716, | |
0.006392831802368164, | |
0.006813695907592773, | |
0.0069027838706970214, | |
0.007037983894348144, | |
0.0071526398658752445, | |
0.00667955207824707, | |
0.006761568069458008, | |
0.0067767038345336915, | |
0.006690815925598144, | |
0.006631423950195312, | |
0.0067123198509216305, | |
0.006645760059356689, | |
0.007489535808563232, | |
0.008019968032836914, | |
0.006845439910888672, | |
0.006691840171813965, | |
0.006625247955322266, | |
0.006676479816436768, | |
0.006656000137329102, | |
0.006635519981384277, | |
0.006618112087249756, | |
0.0065894718170166015, | |
0.0065771517753601075, | |
0.006238207817077636, | |
0.006299647808074951, | |
0.00621776008605957, | |
0.0063836159706115725, | |
0.0062616000175476074, | |
0.0062566399574279785, | |
0.006243328094482422, | |
0.006281216144561768, | |
0.006285151958465576, | |
0.006341792106628418, | |
0.006161375999450684, | |
0.00618998384475708, | |
0.006311935901641846, | |
0.006319200038909912, | |
0.006342688083648682, | |
0.006633471965789795, | |
0.006715392112731934, | |
0.006253568172454834, | |
0.0062975997924804685 | |
], | |
"count": 70, | |
"total": 0.47550438213348384, | |
"mean": 0.006792919744764054, | |
"p50": 0.0067414240837097164, | |
"p90": 0.007339311981201172, | |
"p95": 0.00764206063747406, | |
"p99": 0.008102819986343384, | |
"stdev": 0.000452264036294611, | |
"stdev_": 6.6578739818502 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 147.21210283262872 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |