IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2d17980
verified
{ | |
"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", | |
"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": "1ba65d84c92c93ea19ab2d2293c92bced987bae2", | |
"transformers_version": "4.40.2", | |
"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": 1049.534464, | |
"max_global_vram": 2098.786304, | |
"max_process_vram": 287177.478144, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.832512 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.49893225145339976, | |
"mean": 0.008753197393919294, | |
"stdev": 0.0006123517534967622, | |
"p50": 0.00897713565826416, | |
"p90": 0.0091133602142334, | |
"p95": 0.00960996913909912, | |
"p99": 0.01053274864196777, | |
"values": [ | |
0.011332340240478515, | |
0.009570736885070801, | |
0.009904498100280762, | |
0.009766898155212402, | |
0.009308656692504884, | |
0.009066576004028321, | |
0.00907249641418457, | |
0.009045136451721192, | |
0.00901921558380127, | |
0.008995856285095215, | |
0.008962096214294434, | |
0.008984175682067871, | |
0.008969615936279297, | |
0.009147536277770997, | |
0.008658095359802246, | |
0.008135695457458497, | |
0.007944014072418213, | |
0.007936813831329347, | |
0.007943055152893067, | |
0.007949773788452148, | |
0.00796769380569458, | |
0.007970254898071289, | |
0.007953293800354004, | |
0.008652814865112305, | |
0.008974255561828614, | |
0.00897713565826416, | |
0.009021137237548828, | |
0.009047856330871582, | |
0.00902625560760498, | |
0.00901137638092041, | |
0.009005295753479003, | |
0.00900273609161377, | |
0.008998416900634765, | |
0.008989935874938964, | |
0.009041775703430175, | |
0.009020015716552735, | |
0.009034735679626465, | |
0.00902945613861084, | |
0.009015376091003419, | |
0.008977935791015626, | |
0.008752015113830567, | |
0.008644175529479981, | |
0.00907585620880127, | |
0.008619375228881836, | |
0.008635855674743653, | |
0.009090576171875, | |
0.008401775360107422, | |
0.008364495277404784, | |
0.008402734756469727, | |
0.0079785737991333, | |
0.008501456260681153, | |
0.008104494094848633, | |
0.007922574043273926, | |
0.007959374904632568, | |
0.007945933818817138, | |
0.008130254745483399, | |
0.007971693992614746 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 228.4879353217109 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.534464, | |
"max_global_vram": 2098.794496, | |
"max_process_vram": 291098.025984, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.056256 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.50274697971344, | |
"mean": 0.008820122451112982, | |
"stdev": 0.0006229528077798768, | |
"p50": 0.009049137115478516, | |
"p90": 0.009169200706481933, | |
"p95": 0.009814257431030272, | |
"p99": 0.01056204090118408, | |
"values": [ | |
0.009631537437438964, | |
0.010031858444213866, | |
0.010045937538146973, | |
0.011218899726867676, | |
0.009095215797424316, | |
0.009085617065429687, | |
0.009086576461791993, | |
0.00909361743927002, | |
0.009058735847473144, | |
0.009057295799255372, | |
0.009039695739746095, | |
0.009051535606384277, | |
0.009193297386169433, | |
0.009102256774902343, | |
0.00828017520904541, | |
0.008019373893737794, | |
0.008043695449829101, | |
0.008042413711547852, | |
0.008003693580627441, | |
0.008040175437927247, | |
0.008033774375915527, | |
0.00806545352935791, | |
0.008034255027770996, | |
0.009049137115478516, | |
0.009094575881958007, | |
0.009056976318359375, | |
0.009759857177734374, | |
0.009067377090454102, | |
0.009067055702209472, | |
0.009060815811157226, | |
0.009089136123657226, | |
0.009080975532531739, | |
0.009076656341552735, | |
0.009048656463623047, | |
0.009069936752319336, | |
0.009038415908813477, | |
0.009094416618347168, | |
0.009056495666503907, | |
0.00906977653503418, | |
0.00890833568572998, | |
0.008896016120910644, | |
0.00878929615020752, | |
0.008744815826416015, | |
0.008878095626831055, | |
0.009153136253356934, | |
0.009132177352905273, | |
0.008467374801635742, | |
0.008503854751586914, | |
0.008472334861755372, | |
0.008063533782958984, | |
0.008019213676452636, | |
0.008028974533081054, | |
0.008015213966369629, | |
0.00803857421875, | |
0.008163695335388183, | |
0.008056173324584961, | |
0.008280815124511719 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 113.37711075358294 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.9826199884414674, | |
"mean": 0.017546785507883345, | |
"stdev": 0.0011065893584296588, | |
"p50": 0.018052512168884278, | |
"p90": 0.018273632049560548, | |
"p95": 0.01898367214202881, | |
"p99": 0.020483500862121588, | |
"values": [ | |
0.019510595321655274, | |
0.020014276504516603, | |
0.021056997299194337, | |
0.01859859275817871, | |
0.01818547248840332, | |
0.01819411277770996, | |
0.018181312561035157, | |
0.018108352661132813, | |
0.018091392517089844, | |
0.018036352157592774, | |
0.01806867218017578, | |
0.01819363212585449, | |
0.01828531265258789, | |
0.016998109817504884, | |
0.016187068939208984, | |
0.01601778984069824, | |
0.016005468368530274, | |
0.015973947525024415, | |
0.016019548416137695, | |
0.01602850914001465, | |
0.01606466865539551, | |
0.01601618957519531, | |
0.017697151184082032, | |
0.018088991165161133, | |
0.018078432083129883, | |
0.01880803108215332, | |
0.018152191162109376, | |
0.01812371253967285, | |
0.018109472274780273, | |
0.018114431381225586, | |
0.018105791091918944, | |
0.018115392684936525, | |
0.018073631286621095, | |
0.01814531135559082, | |
0.018087072372436522, | |
0.01816531181335449, | |
0.018102432250976564, | |
0.01812883186340332, | |
0.017943231582641602, | |
0.017690752029418947, | |
0.01743027114868164, | |
0.017848192214965822, | |
0.017570911407470705, | |
0.017779071807861327, | |
0.018261951446533205, | |
0.01694594955444336, | |
0.016844030380249023, | |
0.016913631439208984, | |
0.01609330940246582, | |
0.01658194923400879, | |
0.01616338920593262, | |
0.0159656286239624, | |
0.01602898979187012, | |
0.016127227783203125, | |
0.016221309661865236, | |
0.01627762985229492 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 56.99049546999502 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |