IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d19cbf0
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_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": 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": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.236096, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.3.0", | |
"optimum_benchmark_commit": "19eeac52e408e408898ac1fac3d9abefced0131b", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.890816, | |
"max_global_vram": 1107.546112, | |
"max_process_vram": 246189.264896, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.49797943592071536, | |
"mean": 0.008163597310175661, | |
"stdev": 0.00044556262808265304, | |
"p50": 0.00807756519317627, | |
"p90": 0.008517083168029784, | |
"p95": 0.008822361946105957, | |
"p99": 0.010146131896972655, | |
"values": [ | |
0.01024971580505371, | |
0.008224445343017578, | |
0.008517083168029784, | |
0.008430522918701172, | |
0.008345723152160645, | |
0.00827868366241455, | |
0.008266203880310059, | |
0.008211963653564453, | |
0.008152124404907226, | |
0.008201563835144043, | |
0.008179804801940919, | |
0.008115164756774903, | |
0.008204604148864746, | |
0.008274364471435546, | |
0.008248443603515626, | |
0.010077075958251953, | |
0.00816716480255127, | |
0.007873724937438965, | |
0.008058844566345215, | |
0.007861405849456786, | |
0.00805244541168213, | |
0.008168925285339355, | |
0.00820252513885498, | |
0.00813868522644043, | |
0.007876766204833985, | |
0.0079196457862854, | |
0.007909406185150146, | |
0.007857405185699462, | |
0.0078682861328125, | |
0.007880765914916993, | |
0.007853885173797608, | |
0.007869246006011963, | |
0.00788252592086792, | |
0.007868125915527343, | |
0.007865725994110107, | |
0.00810348415374756, | |
0.007861085891723633, | |
0.007879645824432372, | |
0.007874206066131591, | |
0.007888125896453857, | |
0.007938684940338135, | |
0.007883485794067382, | |
0.007861085891723633, | |
0.007855006217956543, | |
0.007834045886993409, | |
0.00807756519317627, | |
0.007847166061401368, | |
0.00833020305633545, | |
0.00886252212524414, | |
0.008256123542785645, | |
0.008243803977966308, | |
0.008822361946105957, | |
0.008762521743774414, | |
0.008200444221496583, | |
0.008176445007324219, | |
0.00803116512298584, | |
0.007829405784606934, | |
0.008619321823120116, | |
0.00801756477355957, | |
0.00790540599822998, | |
0.007865565776824951 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 244.99003613358838 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.890816, | |
"max_global_vram": 1107.546112, | |
"max_process_vram": 249097.015296, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.500406951904297, | |
"mean": 0.008203392654168803, | |
"stdev": 0.00022587781476627052, | |
"p50": 0.008142205238342285, | |
"p90": 0.00844204330444336, | |
"p95": 0.008633883476257324, | |
"p99": 0.00895896873474121, | |
"values": [ | |
0.009031641006469726, | |
0.008296124458312988, | |
0.008371803283691406, | |
0.008218845367431641, | |
0.008335803985595703, | |
0.008261883735656738, | |
0.008141565322875976, | |
0.008004605293273926, | |
0.00818940544128418, | |
0.008231964111328125, | |
0.008359003067016601, | |
0.008142205238342285, | |
0.00809068489074707, | |
0.008166204452514649, | |
0.008359164237976073, | |
0.008450682640075684, | |
0.008074845314025879, | |
0.008012446403503418, | |
0.008155963897705077, | |
0.008298204421997071, | |
0.008141404151916503, | |
0.00844204330444336, | |
0.008367643356323243, | |
0.008315484046936035, | |
0.008049405097961426, | |
0.008088924407958985, | |
0.008114845275878906, | |
0.00803420639038086, | |
0.008083165168762207, | |
0.008125405311584472, | |
0.008068764686584472, | |
0.008042044639587402, | |
0.008023804664611816, | |
0.008024444580078125, | |
0.00806988525390625, | |
0.007968766212463379, | |
0.008054365158081054, | |
0.008091164588928222, | |
0.008186843872070313, | |
0.007811326026916504, | |
0.007982205867767335, | |
0.00801644515991211, | |
0.008180603981018067, | |
0.008067645072937012, | |
0.00787100601196289, | |
0.008037565231323242, | |
0.007956924915313721, | |
0.0087490816116333, | |
0.00856924343109131, | |
0.00824540424346924, | |
0.008269404411315918, | |
0.008910520553588867, | |
0.008261883735656738, | |
0.008220125198364257, | |
0.008363484382629394, | |
0.00826460361480713, | |
0.008048765182495117, | |
0.008633883476257324, | |
0.008381723403930664, | |
0.008059964179992676, | |
0.008019485473632813 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 121.90078448723526 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.9815555810928344, | |
"mean": 0.016359259684880573, | |
"stdev": 0.00051246321908038, | |
"p50": 0.016231849670410158, | |
"p90": 0.01692383155822754, | |
"p95": 0.017247941780090332, | |
"p99": 0.018111440773010253, | |
"values": [ | |
0.01654808807373047, | |
0.016906007766723633, | |
0.016739606857299805, | |
0.01662472724914551, | |
0.016769527435302734, | |
0.0163586483001709, | |
0.016379289627075196, | |
0.016266170501708983, | |
0.0165079288482666, | |
0.01660040855407715, | |
0.016309848785400392, | |
0.016350969314575196, | |
0.016449209213256835, | |
0.016578008651733398, | |
0.018615440368652345, | |
0.01630872917175293, | |
0.015884092330932617, | |
0.01623448944091797, | |
0.0161778507232666, | |
0.01621032905578613, | |
0.016732406616210938, | |
0.01656568717956543, | |
0.016539287567138673, | |
0.016041210174560547, | |
0.0160831298828125, | |
0.015953690528869628, | |
0.015943770408630372, | |
0.015957530975341798, | |
0.01604153060913086, | |
0.01595656967163086, | |
0.01600105094909668, | |
0.01595353126525879, | |
0.015911130905151366, | |
0.015870491027832032, | |
0.016175769805908204, | |
0.016027610778808595, | |
0.01593385124206543, | |
0.016087289810180663, | |
0.01597977066040039, | |
0.01574921131134033, | |
0.015988091468811035, | |
0.016011770248413087, | |
0.01600057029724121, | |
0.01594825077056885, | |
0.0159389705657959, | |
0.015899291038513185, | |
0.017207284927368165, | |
0.01750056457519531, | |
0.016477848052978517, | |
0.016509847640991213, | |
0.017761203765869142, | |
0.017084245681762696, | |
0.01649224853515625, | |
0.0165146484375, | |
0.016229209899902345, | |
0.01603080940246582, | |
0.01723464584350586, | |
0.016417047500610352, | |
0.016026010513305666, | |
0.01595913028717041 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 61.127460487971355 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |