IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
10be624 verified
raw
history blame
13.7 kB
{
"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",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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",
"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.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"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": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1077.399552,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.4956153917312621,
"mean": 0.009011188940568403,
"stdev": 0.00024159574660500397,
"p50": 0.009008511543273926,
"p90": 0.009354719924926758,
"p95": 0.009392595100402832,
"p99": 0.009622223663330078,
"values": [
0.009762623786926269,
0.009402272224426269,
0.009337823867797851,
0.009138112068176269,
0.00895900821685791,
0.008924863815307616,
0.00901414394378662,
0.009106623649597167,
0.009087103843688965,
0.009052512168884277,
0.009068799972534179,
0.008983648300170899,
0.009133695602416992,
0.008867744445800782,
0.00899027156829834,
0.008962944030761718,
0.0091627836227417,
0.009095647811889648,
0.008916288375854493,
0.009176959991455078,
0.009370176315307618,
0.009201184272766113,
0.009388447761535645,
0.009148896217346192,
0.009128767967224121,
0.009181599617004394,
0.009502623558044434,
0.009365983963012695,
0.009286975860595703,
0.009169440269470214,
0.00904361629486084,
0.00902790355682373,
0.008976096153259278,
0.009077952384948731,
0.009229087829589843,
0.00899465560913086,
0.008911808013916016,
0.009008511543273926,
0.008730624198913574,
0.00879263973236084,
0.008763872146606445,
0.008758079528808594,
0.008702655792236329,
0.008732224464416504,
0.008760543823242187,
0.008756896018981934,
0.008716896057128906,
0.008703200340270997,
0.008702879905700683,
0.008688672065734863,
0.00871116828918457,
0.008696224212646484,
0.008742560386657714,
0.008765791893005371,
0.008732864379882813
]
},
"throughput": {
"unit": "tokens/s",
"value": 221.9462951216119
},
"energy": {
"unit": "kWh",
"cpu": 1.0455769811689738e-07,
"ram": 5.716757253762089e-08,
"gpu": 1.8331642345614063e-07,
"total": 3.450416941106589e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5796400.939761722
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1077.399552,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.5129064960479736,
"mean": 0.009325572655417703,
"stdev": 0.0003472807515944996,
"p50": 0.009313023567199707,
"p90": 0.00957199993133545,
"p95": 0.009781859016418457,
"p99": 0.010453493633270266,
"values": [
0.009829983711242676,
0.009762975692749023,
0.009523743629455567,
0.009313023567199707,
0.00940982437133789,
0.009219584465026855,
0.009334976196289063,
0.009369471549987792,
0.009291423797607421,
0.00939414405822754,
0.009368927955627441,
0.009331904411315917,
0.009485055923461914,
0.009257760047912598,
0.00929302406311035,
0.009328448295593261,
0.009443391799926757,
0.00935308837890625,
0.00937996768951416,
0.011185440063476562,
0.009541791915893555,
0.00953164768218994,
0.00944927978515625,
0.009497056007385254,
0.00953395175933838,
0.009577759742736816,
0.009825920104980469,
0.009632736206054688,
0.009563360214233398,
0.009443039894104005,
0.009509311676025391,
0.009022047996520996,
0.00928108787536621,
0.009309568405151368,
0.009511232376098633,
0.00913967990875244,
0.009235487937927247,
0.008987135887145996,
0.009006912231445313,
0.009015968322753906,
0.009113920211791993,
0.008955519676208496,
0.0089933443069458,
0.008991776466369629,
0.00902774429321289,
0.009006815910339356,
0.008990400314331055,
0.008993215560913086,
0.008978079795837403,
0.008983712196350097,
0.008942208290100097,
0.00902086353302002,
0.009291007995605468,
0.009007967948913575,
0.009118783950805663
]
},
"throughput": {
"unit": "tokens/s",
"value": 107.23202069730793
},
"energy": {
"unit": "kWh",
"cpu": 9.92507227908578e-08,
"ram": 5.4264663849705394e-08,
"gpu": 2.1096355298453765e-07,
"total": 3.6447893962510074e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 2743642.7493687007
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 54,
"total": 0.9907772502899173,
"mean": 0.018347726857220685,
"stdev": 0.0005187384513309749,
"p50": 0.01834391975402832,
"p90": 0.018907625007629394,
"p95": 0.01911180019378662,
"p99": 0.01982682149887085,
"values": [
0.019200927734375,
0.0189040641784668,
0.018511871337890624,
0.01840742492675781,
0.018176000595092775,
0.01836953544616699,
0.018524160385131837,
0.018412544250488282,
0.018472959518432617,
0.018475040435791016,
0.01834185600280762,
0.01863884735107422,
0.018183168411254884,
0.018312192916870116,
0.018295808792114256,
0.01865727996826172,
0.018465791702270508,
0.018345983505249023,
0.020358144760131838,
0.018982912063598634,
0.018747423171997072,
0.01890915107727051,
0.01866649627685547,
0.018696191787719727,
0.018758655548095703,
0.019355648040771483,
0.01906380844116211,
0.01889587211608887,
0.01867580795288086,
0.018523040771484374,
0.018197504043579102,
0.018249727249145507,
0.018412544250488282,
0.018782207489013672,
0.01821286392211914,
0.018113536834716795,
0.018129919052124025,
0.017765375137329103,
0.01783296012878418,
0.017904640197753906,
0.017740800857543947,
0.017710079193115236,
0.017762304306030274,
0.01780531120300293,
0.017778688430786133,
0.017755136489868165,
0.017727487564086913,
0.017709056854248048,
0.01769267272949219,
0.017679359436035155,
0.017735679626464843,
0.018050048828125,
0.01782579231262207,
0.01787494468688965
]
},
"throughput": {
"unit": "tokens/s",
"value": 54.502664432594464
},
"energy": null,
"efficiency": null
}
}
}