IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
59190c4 verified
raw
history blame
13.6 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": "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.2.1",
"optimum_benchmark_commit": "d8da484bc148044dec1ba23c2d50d43cabd271ad",
"transformers_version": "4.41.0",
"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": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1047.187456,
"max_global_vram": 2087.616512,
"max_process_vram": 248050.139136,
"max_reserved": 725.614592,
"max_allocated": 512.83456
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.4929948692321778,
"mean": 0.008499911538485823,
"stdev": 0.0010591400438231952,
"p50": 0.008220088005065917,
"p90": 0.008914423942565919,
"p95": 0.009216672372817992,
"p99": 0.012417517070770262,
"values": [
0.01608257484436035,
0.00897120761871338,
0.008652168273925781,
0.008890088081359864,
0.008432168006896973,
0.00844272804260254,
0.008352807998657227,
0.008382568359375,
0.008365768432617188,
0.008354087829589844,
0.008402888298034667,
0.008468328475952148,
0.00965264892578125,
0.00842896842956543,
0.00846288776397705,
0.008110247611999511,
0.008132966995239257,
0.008159847259521484,
0.008199048042297364,
0.008142888069152832,
0.00811344814300537,
0.008154727935791016,
0.008158087730407715,
0.008144806861877442,
0.008129128456115723,
0.008164648056030274,
0.008158727645874024,
0.00822096824645996,
0.00815568733215332,
0.008150888442993163,
0.008141127586364746,
0.008747207641601562,
0.00852896785736084,
0.008594087600708008,
0.009303849220275879,
0.009201288223266602,
0.009166248321533203,
0.008632967948913575,
0.008612168312072755,
0.008449607849121094,
0.008209128379821778,
0.008155048370361328,
0.008188488006591797,
0.008253128051757812,
0.00811680793762207,
0.008211048126220703,
0.008309767723083497,
0.008119048118591309,
0.008056166648864747,
0.008125288009643555,
0.008244008064270019,
0.008219207763671875,
0.008277446746826171,
0.008120648384094238,
0.008078408241271973,
0.008104166984558105,
0.008069448471069336,
0.008122088432312012
]
},
"throughput": {
"unit": "tokens/s",
"value": 235.29656643418207
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1047.187456,
"max_global_vram": 2087.604224,
"max_process_vram": 216074.928128,
"max_reserved": 725.614592,
"max_allocated": 513.058304
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.5201368188858034,
"mean": 0.008967876187686262,
"stdev": 0.0003182008152303509,
"p50": 0.008857048511505126,
"p90": 0.009442136669158935,
"p95": 0.009647049713134766,
"p99": 0.009896809749603271,
"values": [
0.009687849998474121,
0.009436808586120605,
0.009639849662780762,
0.009405769348144532,
0.008980328559875489,
0.009037609100341798,
0.008932647705078125,
0.008957609176635743,
0.009107048988342286,
0.008881447792053222,
0.008797768592834473,
0.008915847778320312,
0.009005288124084472,
0.00886112880706787,
0.008697768211364747,
0.008675047874450684,
0.008719529151916504,
0.008676488876342774,
0.008625448226928711,
0.008717288017272949,
0.008748968124389649,
0.008677127838134766,
0.008655207633972168,
0.008845768928527831,
0.008628487586975098,
0.008836008071899415,
0.00870640754699707,
0.008729768753051757,
0.008785449028015136,
0.008832327842712403,
0.009184008598327636,
0.009225289344787597,
0.009227849006652833,
0.009227528572082519,
0.01000624942779541,
0.009814249992370605,
0.009548810005187989,
0.00945456886291504,
0.009331048965454102,
0.008899048805236816,
0.00911680793762207,
0.008895368576049804,
0.00878432846069336,
0.00879904842376709,
0.008838568687438965,
0.008707367897033691,
0.008918408393859864,
0.008910248756408692,
0.008672328948974609,
0.008763848304748535,
0.0086948881149292,
0.008705288887023925,
0.009002729415893555,
0.008852968215942383,
0.008852169036865235,
0.009065129280090333,
0.008668168067932129,
0.00876640796661377
]
},
"throughput": {
"unit": "tokens/s",
"value": 111.50912201186432
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 57,
"total": 0.9901410808563232,
"mean": 0.017370896155374092,
"stdev": 0.0005907726467302558,
"p50": 0.017099056243896484,
"p90": 0.018280111694335938,
"p95": 0.01870677032470703,
"p99": 0.019088114471435547,
"values": [
0.018261615753173827,
0.018363697052001953,
0.0183078556060791,
0.017487855911254884,
0.017529935836791993,
0.01749569511413574,
0.017310895919799806,
0.017452335357666014,
0.01744113540649414,
0.01730753517150879,
0.017440336227416992,
0.018651058197021484,
0.017380975723266603,
0.017173295974731446,
0.016903696060180665,
0.016788816452026366,
0.01692545509338379,
0.016903696060180665,
0.016838735580444335,
0.016953935623168947,
0.01689921569824219,
0.01684609603881836,
0.016933296203613283,
0.016973775863647463,
0.016951215744018554,
0.016894895553588866,
0.017038896560668947,
0.01691793632507324,
0.01698161506652832,
0.01735985565185547,
0.018012018203735353,
0.017810895919799806,
0.017919376373291017,
0.019158897399902345,
0.019032499313354493,
0.01892961883544922,
0.017956655502319337,
0.018233137130737306,
0.017332656860351563,
0.01717473602294922,
0.017302576065063476,
0.017099056243896484,
0.017058416366577147,
0.016836816787719727,
0.01718401527404785,
0.017024335861206056,
0.01703857612609863,
0.017028175354003906,
0.01697105598449707,
0.017058416366577147,
0.016980016708374023,
0.017069295883178712,
0.017088016510009765,
0.016988815307617186,
0.017172176361083983,
0.017000335693359375,
0.01696513557434082
]
},
"throughput": {
"unit": "tokens/s",
"value": 57.5675538587931
},
"energy": null,
"efficiency": null
}
}
}