IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b934f38 verified
raw
history blame
15.5 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": "c8d76f6e24e813974534bb204a76658d503b7b1f",
"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.943296,
"max_global_vram": 1011.757056,
"max_process_vram": 42194.939904,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 6.75568310546875,
"mean": 6.75568310546875,
"stdev": 0.0,
"p50": 6.75568310546875,
"p90": 6.75568310546875,
"p95": 6.75568310546875,
"p99": 6.75568310546875,
"values": [
6.75568310546875
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1056.333824,
"max_global_vram": 1107.492864,
"max_process_vram": 270323.474432,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 66,
"total": 0.5134162440299986,
"mean": 0.007779034000454525,
"stdev": 0.0004951986887997471,
"p50": 0.0076209230422973635,
"p90": 0.008009721040725708,
"p95": 0.008436519384384155,
"p99": 0.009501753854751572,
"values": [
0.008512759208679199,
0.008537718772888184,
0.008237560272216797,
0.007973560810089111,
0.007879002094268799,
0.0077983632087707516,
0.00803580093383789,
0.007925082206726074,
0.00780860185623169,
0.007845242023468018,
0.007983641147613525,
0.00785868215560913,
0.007785402774810791,
0.007880122184753417,
0.007412124156951905,
0.007399963855743408,
0.011292104721069335,
0.007675803184509277,
0.007706361770629883,
0.0076330828666687014,
0.00774748182296753,
0.007728282928466797,
0.008502839088439941,
0.0076306829452514645,
0.0075663628578186036,
0.00759980297088623,
0.007604123115539551,
0.00763564395904541,
0.0076111631393432615,
0.007575324058532715,
0.007590363025665283,
0.007592924118041992,
0.007590843200683594,
0.007592604160308838,
0.007610044002532959,
0.007571642875671387,
0.007605723857879639,
0.0075946831703186035,
0.007577562808990478,
0.007647003173828125,
0.007606203079223633,
0.0075873231887817385,
0.007591164112091065,
0.00810796070098877,
0.007969720840454102,
0.007826201915740967,
0.007750843048095703,
0.007905241966247558,
0.007704123020172119,
0.007670523166656494,
0.00767676305770874,
0.007578204154968262,
0.007579322814941406,
0.007579483985900879,
0.007568122863769532,
0.007566203117370605,
0.007555004119873047,
0.007551164150238037,
0.007566042900085449,
0.007705883026123047,
0.00760076379776001,
0.007572604179382324,
0.007549243927001953,
0.007547643184661865,
0.00756412410736084,
0.007580284118652344
]
},
"throughput": {
"unit": "tokens/s",
"value": 257.1013315899045
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1056.3584,
"max_global_vram": 1107.53792,
"max_process_vram": 264601.608192,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 66,
"total": 0.4941088128089904,
"mean": 0.007486497163772582,
"stdev": 0.0015163459787590182,
"p50": 0.007228285074234009,
"p90": 0.0075191640853881836,
"p95": 0.007806282043457031,
"p99": 0.01329934434890742,
"values": [
0.007910361766815185,
0.007870681762695312,
0.0075625238418579105,
0.0074366040229797365,
0.007371324062347412,
0.007385883808135986,
0.007613082885742187,
0.007412923812866211,
0.007521724224090576,
0.007487324237823487,
0.007480284214019775,
0.0073943638801574705,
0.010069391250610352,
0.0067055668830871586,
0.0067274880409240725,
0.006892446994781494,
0.007516603946685791,
0.0072418851852417,
0.0071817259788513185,
0.007272124767303467,
0.007255644798278809,
0.019297828674316408,
0.007272765159606933,
0.007160766124725342,
0.007244764804840088,
0.007175486087799072,
0.007136125087738037,
0.007206844806671143,
0.0071506848335266115,
0.00719436502456665,
0.007199645042419434,
0.007200765132904053,
0.007190684795379639,
0.007275643825531006,
0.007179804801940918,
0.007202526092529297,
0.007234364986419678,
0.007227805137634278,
0.007172125816345215,
0.007146365165710449,
0.007163486003875732,
0.00715324592590332,
0.0072639651298522945,
0.0073705239295959474,
0.007298365116119385,
0.007243645191192627,
0.007449083805084229,
0.00733868408203125,
0.007169565200805664,
0.007265085220336914,
0.007264925003051758,
0.007243165016174316,
0.00722876501083374,
0.00719388484954834,
0.007145246028900146,
0.007189404964447021,
0.007193725109100341,
0.0071758050918579105,
0.00719964599609375,
0.007189085006713867,
0.007286684036254883,
0.007175644874572754,
0.0071687641143798825,
0.0072050862312316895,
0.0071788449287414555,
0.007175165176391602
]
},
"throughput": {
"unit": "tokens/s",
"value": 133.5738167161853
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 66,
"total": 0.4610236945152281,
"mean": 0.006985207492654975,
"stdev": 0.0015234130307230798,
"p50": 0.006715967655181884,
"p90": 0.006981246948242188,
"p95": 0.007196725249290466,
"p99": 0.012849393749237008,
"values": [
0.007338203907012939,
0.007246685028076172,
0.006986846923828125,
0.006915647029876709,
0.006874846935272217,
0.006856287002563476,
0.00704684591293335,
0.006861886978149414,
0.006980766773223877,
0.0069430069923400875,
0.006940927028656006,
0.006880126953125,
0.009603313446044922,
0.006366048812866211,
0.006371970176696777,
0.006548449039459229,
0.006981727123260498,
0.00678620719909668,
0.006686848163604736,
0.0067700471878051754,
0.006746528148651123,
0.01887782859802246,
0.006736127853393554,
0.006671967983245849,
0.006739488124847412,
0.006693568229675293,
0.006662367820739746,
0.006693087100982666,
0.0066626877784729,
0.006674686908721924,
0.006698847770690918,
0.00668476676940918,
0.006714208126068115,
0.006767967224121094,
0.006681247234344483,
0.006702688217163086,
0.006717727184295654,
0.006700448036193848,
0.006686367988586426,
0.00667084789276123,
0.006653728008270264,
0.006650368213653565,
0.006740127086639404,
0.006930525779724121,
0.006779007911682129,
0.006746367931365967,
0.006962686061859131,
0.00689836597442627,
0.006718846797943115,
0.006746847152709961,
0.006767807006835938,
0.006752606868743897,
0.006679327964782715,
0.006672286987304687,
0.0066711678504943845,
0.006660927772521972,
0.0066498880386352535,
0.006681247234344483,
0.006672128200531006,
0.006686528205871582,
0.006733726978302002,
0.0066724481582641606,
0.00667180585861206,
0.006695807933807373,
0.006681727886199951,
0.006677247047424316
]
},
"throughput": {
"unit": "tokens/s",
"value": 143.1596700672831
},
"energy": null,
"efficiency": null
}
}
}