IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a5cbfad verified
raw
history blame
17.1 kB
{
"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.1",
"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.13.0",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 804.814848,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.20681114196777345
],
"count": 1,
"total": 0.20681114196777345,
"mean": 0.20681114196777345,
"p50": 0.20681114196777345,
"p90": 0.20681114196777345,
"p95": 0.20681114196777345,
"p99": 0.20681114196777345,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1231.990784,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.410496
},
"latency": {
"unit": "s",
"values": [
0.007551008224487304,
0.00733673620223999,
0.00895036792755127,
0.007392960071563721,
0.007536479949951172,
0.007237855911254883,
0.007098688125610352,
0.007381951808929444,
0.0074642238616943355,
0.007451039791107178,
0.007187424182891845,
0.007302879810333252,
0.007094655990600586,
0.0069592962265014645,
0.007370687961578369,
0.007466335773468017,
0.007341440200805664,
0.00745027208328247,
0.007265183925628662,
0.007325632095336914,
0.007106272220611573,
0.007147999763488769,
0.007058303833007812,
0.006971199989318847,
0.006819744110107422,
0.006992447853088379,
0.006657567977905274,
0.007032127857208252,
0.007228127956390381,
0.0072991042137146,
0.007309343814849854,
0.0073373122215271,
0.006943999767303467,
0.007064127922058105,
0.006838592052459716,
0.006626880168914795,
0.007083456039428711,
0.006672639846801758,
0.006485055923461914,
0.006487199783325195,
0.00651478385925293,
0.006525887966156006,
0.0064651517868042,
0.006504896163940429,
0.006494400024414063,
0.006458655834197998,
0.006476831912994385,
0.00642416000366211,
0.006454239845275879,
0.006482687950134278,
0.0068419198989868165,
0.0067348480224609375,
0.006731135845184326,
0.006763455867767334,
0.006709023952484131,
0.006505919933319092,
0.006487648010253907,
0.006485919952392578,
0.006510528087615966,
0.0064971837997436525,
0.006483232021331787,
0.0065040640830993654,
0.006411968231201172,
0.006396959781646729,
0.006460864067077637,
0.006639391899108887,
0.006498400211334228,
0.006485407829284668,
0.006490272045135498,
0.006478240013122558,
0.006477888107299805,
0.007089024066925049
],
"count": 72,
"total": 0.4968116145133973,
"mean": 0.006900161312686072,
"p50": 0.006829168081283569,
"p90": 0.007391859245300293,
"p95": 0.007465174221992493,
"p99": 0.007956822538375864,
"stdev": 0.00044367777802588874,
"stdev_": 6.429962401171392
},
"throughput": {
"unit": "tokens/s",
"value": 289.8482962018531
},
"energy": {
"unit": "kWh",
"cpu": 8.075474792139834e-08,
"ram": 4.4126597680016456e-08,
"gpu": 1.5425938266665973e-07,
"total": 2.7914072826807454e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7164844.816480122
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1231.990784,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.458112
},
"latency": {
"unit": "s",
"values": [
0.007809023857116699,
0.007739295959472656,
0.008817760467529297,
0.0077003521919250485,
0.007332608222961425,
0.007367199897766114,
0.0072576642036437985,
0.007831711769104004,
0.007591296195983887,
0.007637887954711914,
0.007385087966918945,
0.00747756814956665,
0.007412703990936279,
0.007438399791717529,
0.007585408210754395,
0.007556479930877685,
0.007566815853118897,
0.007751743793487548,
0.007388671875,
0.007329343795776367,
0.007292960166931152,
0.007133247852325439,
0.007210048198699951,
0.007070144176483154,
0.007070752143859863,
0.006821184158325195,
0.007246560096740723,
0.007219456195831299,
0.007308800220489502,
0.007521024227142334,
0.007214144229888916,
0.0071372160911560055,
0.007087264060974121,
0.007132544040679932,
0.006901504039764405,
0.00704966402053833,
0.00706063985824585,
0.006934656143188477,
0.006685728073120117,
0.006774432182312011,
0.00664463996887207,
0.006646080017089844,
0.006646304130554199,
0.006639359951019287,
0.006656032085418701,
0.006653632164001465,
0.006610591888427734,
0.00657590389251709,
0.006665503978729248,
0.0067259521484375,
0.006909952163696289,
0.0069129281044006344,
0.006981760025024414,
0.006925727844238281,
0.006914144039154053,
0.006619999885559082,
0.006658880233764648,
0.006632480144500732,
0.006644768238067627,
0.0066481919288635255,
0.006664576053619385,
0.006625440120697022,
0.0065510721206665035,
0.006649280071258545,
0.006674623966217041,
0.0069604477882385255,
0.006699456214904785,
0.00667852783203125,
0.006658080101013183,
0.006671199798583985,
0.006661791801452637,
0.007012671947479248
],
"count": 72,
"total": 0.5086689949035644,
"mean": 0.007064847151438395,
"p50": 0.006997215986251831,
"p90": 0.007590707397460938,
"p95": 0.007744897484779358,
"p99": 0.008117665891647346,
"stdev": 0.0004260863979527083,
"stdev_": 6.031077372508442
},
"throughput": {
"unit": "tokens/s",
"value": 141.54587899278206
},
"energy": {
"unit": "kWh",
"cpu": 7.435266486720137e-08,
"ram": 4.063311178563291e-08,
"gpu": 1.425626441125612e-07,
"total": 2.5754842076539545e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3882765.023478495
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.007293951988220215,
0.007222271919250488,
0.008177663803100586,
0.007161856174468994,
0.006818816184997558,
0.006858751773834228,
0.006751232147216797,
0.007308288097381592,
0.007076863765716553,
0.007126016139984131,
0.006882304191589355,
0.006968319892883301,
0.006905856132507324,
0.006894591808319092,
0.007058432102203369,
0.007046144008636474,
0.007007232189178467,
0.007215104103088379,
0.006867968082427979,
0.006825984001159668,
0.006770688056945801,
0.006656000137329102,
0.0067276802062988285,
0.006606847763061524,
0.00657919979095459,
0.0064174079895019534,
0.006825984001159668,
0.006772736072540283,
0.006767615795135498,
0.007009280204772949,
0.006781951904296875,
0.006662144184112549,
0.006668288230895996,
0.006717440128326416,
0.006503424167633057,
0.00653107213973999,
0.006649856090545654,
0.006511648178100586,
0.006299647808074951,
0.006386688232421875,
0.006253568172454834,
0.006260735988616943,
0.006262784004211426,
0.006253600120544434,
0.006237184047698975,
0.006259712219238281,
0.006213632106781006,
0.00619212818145752,
0.00628223991394043,
0.006334464073181153,
0.006516736030578613,
0.006518784046173095,
0.006585343837738037,
0.006534143924713135,
0.006519807815551758,
0.0062259202003479,
0.006275072097778321,
0.006248447895050049,
0.006256671905517578,
0.0062566399574279785,
0.006266880035400391,
0.006245376110076905,
0.006162432193756104,
0.006254591941833496,
0.006291456222534179,
0.0065710082054138185,
0.006315008163452148,
0.006284192085266114,
0.006261760234832763,
0.006259712219238281,
0.0062740478515625,
0.006604800224304199
],
"count": 72,
"total": 0.47659213161468506,
"mean": 0.00661933516131507,
"p50": 0.006575103998184204,
"p90": 0.007075020599365234,
"p95": 0.007218329620361328,
"p99": 0.007560407052040106,
"stdev": 0.0003694992916823784,
"stdev_": 5.582120903045036
},
"throughput": {
"unit": "tokens/s",
"value": 151.07257385065375
},
"energy": null,
"efficiency": null
}
}
}