IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b324dbe verified
raw
history blame
15.4 kB
{
"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_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": 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 7643 48-Core Processor",
"cpu_count": 96,
"cpu_ram_mb": 1082028.982272,
"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.1",
"optimum_benchmark_commit": "91971089040d6dac4da0f6b0a30eec8415a34544",
"transformers_version": "4.43.3",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 901.844992,
"max_global_vram": 1011.728384,
"max_process_vram": 43130.4704,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 6.83491650390625,
"mean": 6.83491650390625,
"stdev": 0.0,
"p50": 6.83491650390625,
"p90": 6.83491650390625,
"p95": 6.83491650390625,
"p99": 6.83491650390625,
"values": [
6.83491650390625
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1056.243712,
"max_global_vram": 1107.464192,
"max_process_vram": 266686.01344,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 65,
"total": 0.529808654308319,
"mean": 0.008150902373974141,
"stdev": 0.0017717187475899219,
"p50": 0.007824839115142822,
"p90": 0.00823751163482666,
"p95": 0.008517545700073242,
"p99": 0.014966965103149408,
"values": [
0.008575881958007812,
0.008606922149658204,
0.008257479667663574,
0.008270440101623535,
0.008170598983764649,
0.00790915822982788,
0.008207559585571289,
0.007939077854156495,
0.007909318923950196,
0.011081653594970703,
0.007809157848358154,
0.007824839115142822,
0.007975399017333984,
0.008123719215393066,
0.008021638870239258,
0.007962278842926026,
0.00799747896194458,
0.00799907922744751,
0.007988839149475098,
0.007992359161376953,
0.007970438957214356,
0.007992679119110108,
0.008009638786315918,
0.007982278823852539,
0.007988839149475098,
0.007998919010162354,
0.02187418556213379,
0.007870597839355469,
0.007811078071594238,
0.007690756797790527,
0.007718758106231689,
0.0077411580085754396,
0.007721158027648925,
0.0077577967643737795,
0.007826757907867432,
0.0077840380668640135,
0.007775238037109375,
0.007704517841339111,
0.0077401971817016605,
0.007664677143096924,
0.0077029170989990235,
0.007744678020477295,
0.00772771692276001,
0.007998758792877198,
0.007924519062042236,
0.00828420066833496,
0.007966438770294189,
0.007950277805328369,
0.007797798156738281,
0.007811078071594238,
0.007728837013244629,
0.007724037170410156,
0.0076947579383850094,
0.0076814770698547365,
0.007679717063903808,
0.007718277931213379,
0.007727397918701172,
0.007797478199005127,
0.007730278015136718,
0.007685476779937744,
0.007772837162017822,
0.0076488380432128905,
0.007754597187042236,
0.007639876842498779,
0.007669796943664551
]
},
"throughput": {
"unit": "tokens/s",
"value": 245.371605282135
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1056.243712,
"max_global_vram": 1107.509248,
"max_process_vram": 270409.064448,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 65,
"total": 0.4781047344207763,
"mean": 0.007355457452627328,
"stdev": 0.00015613693463807632,
"p50": 0.007321475028991699,
"p90": 0.007491268920898438,
"p95": 0.007647525119781493,
"p99": 0.007884755020141602,
"values": [
0.007971078872680663,
0.007836197853088379,
0.0076625971794128415,
0.007689957141876221,
0.00741875696182251,
0.007372675895690918,
0.007398437023162842,
0.007476356983184815,
0.00735251522064209,
0.007410275936126709,
0.00722643518447876,
0.007282754898071289,
0.007453317165374756,
0.007423717021942139,
0.007444995880126953,
0.0075872368812561035,
0.0074448370933532714,
0.007453795909881592,
0.007458597183227539,
0.007444675922393799,
0.007497797012329102,
0.007470915794372559,
0.007454596996307373,
0.00746419620513916,
0.007542437076568604,
0.007459716796875,
0.007363716125488281,
0.00722099494934082,
0.007165794849395752,
0.007235714912414551,
0.007197955131530762,
0.007213475227355957,
0.007248674869537354,
0.007329795837402344,
0.007211875915527344,
0.007237635135650635,
0.007219234943389893,
0.007252194881439209,
0.007228675842285156,
0.007246115207672119,
0.007190595149993897,
0.007252514839172363,
0.007281956195831299,
0.007442756175994873,
0.007218595027923584,
0.007430116176605225,
0.007481476783752441,
0.007338756084442138,
0.007283236026763916,
0.007241796016693116,
0.0072142758369445805,
0.0073427557945251465,
0.007285154819488525,
0.007248354911804199,
0.00724115514755249,
0.007157955169677734,
0.0072286748886108395,
0.0072022747993469236,
0.007247235774993897,
0.007218595027923584,
0.007321475028991699,
0.007333795070648194,
0.007225955963134766,
0.007298595905303955,
0.007305955886840821
]
},
"throughput": {
"unit": "tokens/s",
"value": 135.95347487773253
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 65,
"total": 0.44822874784469596,
"mean": 0.0068958268899184,
"stdev": 0.00014074750364111553,
"p50": 0.006848352909088135,
"p90": 0.007043841934204102,
"p95": 0.007126371192932129,
"p99": 0.007342903118133545,
"values": [
0.007411715984344483,
0.007304195880889893,
0.0071270751953125,
0.007169954776763916,
0.0069597139358520506,
0.006913474082946777,
0.006936193943023682,
0.007016674995422363,
0.0068883528709411624,
0.006944513797760009,
0.006796513080596924,
0.006828672885894775,
0.006997474193572998,
0.006971874237060547,
0.0069878740310668945,
0.0071235551834106445,
0.00699411392211914,
0.007002913951873779,
0.0070000338554382325,
0.006998114109039307,
0.007043553829193115,
0.007020514011383056,
0.006994433879852295,
0.0069976339340209965,
0.007072354793548584,
0.006996833801269532,
0.006903873920440674,
0.006780992984771728,
0.006740673065185547,
0.006808833122253418,
0.0067537927627563474,
0.006754592895507812,
0.006813473224639892,
0.006878273963928223,
0.0067811541557312015,
0.00679123306274414,
0.006781153202056885,
0.006818752765655517,
0.006797313213348389,
0.006816513061523437,
0.006725953102111816,
0.0068192329406738285,
0.006826434135437012,
0.006988354206085205,
0.00678803300857544,
0.006976513862609863,
0.007044034004211426,
0.006902594089508057,
0.006830594062805176,
0.006795553207397461,
0.00676403284072876,
0.006903553962707519,
0.006842273235321045,
0.006775393009185791,
0.006798112869262695,
0.006705633163452148,
0.0067600331306457515,
0.0067390727996826175,
0.006796352863311768,
0.006767713069915772,
0.006852354049682617,
0.006848352909088135,
0.006715713024139404,
0.006774912834167481,
0.006768992900848389
]
},
"throughput": {
"unit": "tokens/s",
"value": 145.01524124133476
},
"energy": null,
"efficiency": null
}
}
}