IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
989cea3
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+rocm6.1", | |
"_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 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1386.094592, | |
"max_global_vram": 0.0, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.66913232421875, | |
"mean": 7.66913232421875, | |
"stdev": 0.0, | |
"p50": 7.66913232421875, | |
"p90": 7.66913232421875, | |
"p95": 7.66913232421875, | |
"p99": 7.66913232421875, | |
"values": [ | |
7.66913232421875 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1545.27744, | |
"max_global_vram": 0.0, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 67, | |
"total": 0.4873918380737304, | |
"mean": 0.007274505045876575, | |
"stdev": 0.00039732943301317493, | |
"p50": 0.007127338886260986, | |
"p90": 0.007846953105926514, | |
"p95": 0.007916919803619386, | |
"p99": 0.008539821949005127, | |
"values": [ | |
0.007961736202239991, | |
0.00782893705368042, | |
0.007831976890563965, | |
0.007538057804107666, | |
0.007689737796783448, | |
0.007553418159484863, | |
0.007265738964080811, | |
0.007414698123931885, | |
0.007299818992614746, | |
0.007325418949127197, | |
0.007237738132476807, | |
0.008395336151123046, | |
0.007308137893676758, | |
0.007356298923492432, | |
0.007361577987670898, | |
0.007309578895568848, | |
0.0072199788093566895, | |
0.008820294380187988, | |
0.007361897945404053, | |
0.00791053581237793, | |
0.007841577053070068, | |
0.007246538162231446, | |
0.007322858810424804, | |
0.007388298034667969, | |
0.00788893699645996, | |
0.007155338764190674, | |
0.006982378959655762, | |
0.006983819007873535, | |
0.007027178764343262, | |
0.007127338886260986, | |
0.007771817207336426, | |
0.007567818164825439, | |
0.006987178802490234, | |
0.0073454189300537105, | |
0.006975978851318359, | |
0.0069942188262939456, | |
0.007006858825683594, | |
0.006987178802490234, | |
0.006964138984680176, | |
0.006954219818115235, | |
0.006971339225769043, | |
0.006983979225158692, | |
0.0069590191841125484, | |
0.0069825401306152345, | |
0.006989899158477783, | |
0.006956298828125, | |
0.007096619129180908, | |
0.006967978954315186, | |
0.006947819232940674, | |
0.006971020221710205, | |
0.006961099147796631, | |
0.00695245885848999, | |
0.006949900150299072, | |
0.00693149995803833, | |
0.006957099914550781, | |
0.006940938949584961, | |
0.006938539028167725, | |
0.0069783787727355955, | |
0.0069446201324462895, | |
0.006941259860992432, | |
0.006958378791809082, | |
0.00693821907043457, | |
0.006932459831237793, | |
0.007636776924133301, | |
0.007855017185211182, | |
0.007919655799865723, | |
0.007319017887115479 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 274.9327943807895 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1545.465856, | |
"max_global_vram": 0.0, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 67, | |
"total": 0.5123525643348693, | |
"mean": 0.0076470531990279, | |
"stdev": 0.001036013486139861, | |
"p50": 0.007416937828063965, | |
"p90": 0.008121159744262696, | |
"p95": 0.008202312088012694, | |
"p99": 0.01076658927917483, | |
"values": [ | |
0.00822045612335205, | |
0.008128934860229493, | |
0.008004936218261718, | |
0.00789005708694458, | |
0.007877255916595459, | |
0.007954376220703125, | |
0.007718536853790283, | |
0.007453258037567139, | |
0.007579337120056153, | |
0.007753417015075683, | |
0.015672433853149415, | |
0.007639017105102539, | |
0.007671018123626709, | |
0.00761165714263916, | |
0.007598378181457519, | |
0.0076236572265625, | |
0.0074794979095458985, | |
0.007757096767425537, | |
0.008239336013793945, | |
0.008232295989990234, | |
0.007480298042297363, | |
0.007595657825469971, | |
0.0077991771697998044, | |
0.008138216018676758, | |
0.007724297046661377, | |
0.007463498115539551, | |
0.007416937828063965, | |
0.007260138988494873, | |
0.007528297901153565, | |
0.007263659000396728, | |
0.008159976005554199, | |
0.007468297958374024, | |
0.0072882981300354, | |
0.007272617816925049, | |
0.0072481389045715335, | |
0.007345898151397705, | |
0.0072414188385009765, | |
0.007273259162902832, | |
0.007263978004455566, | |
0.007298858165740967, | |
0.00722477912902832, | |
0.007261098861694336, | |
0.007262378215789795, | |
0.007222218036651611, | |
0.007245578765869141, | |
0.0072598190307617185, | |
0.007323338031768799, | |
0.007261579036712647, | |
0.007351498126983643, | |
0.007284778118133545, | |
0.0072788591384887694, | |
0.007235498905181885, | |
0.007213257789611817, | |
0.007273258209228516, | |
0.007260138034820556, | |
0.0072414188385009765, | |
0.007278219223022461, | |
0.007236938953399658, | |
0.007293258190155029, | |
0.0072567777633666996, | |
0.007281418800354004, | |
0.007369738101959228, | |
0.007295018196105957, | |
0.008102055549621581, | |
0.008115976333618165, | |
0.007652777194976807, | |
0.007635016918182373 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 130.76932695160548 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 67, | |
"total": 0.47884129905700656, | |
"mean": 0.0071468850605523404, | |
"stdev": 0.0010226926848743909, | |
"p50": 0.006956139087677002, | |
"p90": 0.007590441799163818, | |
"p95": 0.007640793466567993, | |
"p99": 0.010240539722442652, | |
"values": [ | |
0.0075762982368469236, | |
0.007511497020721436, | |
0.007401577949523926, | |
0.007319657802581787, | |
0.00730637788772583, | |
0.007453258037567139, | |
0.007175017833709716, | |
0.006958378791809082, | |
0.007052779197692871, | |
0.007202698230743408, | |
0.015112275123596192, | |
0.007132137775421142, | |
0.007111659049987793, | |
0.00706813907623291, | |
0.00704413890838623, | |
0.0070865387916564946, | |
0.006970058917999267, | |
0.007263498783111572, | |
0.007727818012237549, | |
0.007730857849121094, | |
0.006996459007263184, | |
0.007127179145812988, | |
0.007330217838287354, | |
0.00761165714263916, | |
0.00725757884979248, | |
0.006997899055480957, | |
0.006956139087677002, | |
0.006791339874267578, | |
0.00704957914352417, | |
0.00679725980758667, | |
0.007651017189025879, | |
0.006986538887023926, | |
0.006780300140380859, | |
0.006782060146331787, | |
0.0067606201171875, | |
0.006871019840240479, | |
0.006767819881439209, | |
0.006775499820709229, | |
0.006781740188598633, | |
0.0068154997825622555, | |
0.0067654199600219725, | |
0.006783500194549561, | |
0.0068076601028442384, | |
0.006758540153503418, | |
0.006782539844512939, | |
0.006764619827270508, | |
0.006825738906860351, | |
0.006768620014190674, | |
0.0068913397789001464, | |
0.006771978855133057, | |
0.0067866997718811035, | |
0.0067526202201843265, | |
0.006739980220794678, | |
0.0067812600135803225, | |
0.0067948589324951176, | |
0.006756460189819336, | |
0.006809579849243164, | |
0.006775660037994385, | |
0.006798059940338135, | |
0.006761419773101807, | |
0.006794219970703125, | |
0.006888780117034912, | |
0.006809420108795166, | |
0.00761693811416626, | |
0.007615498065948486, | |
0.007180298805236816, | |
0.0071674990653991695 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.92109730707156 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |