IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
36753e6
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+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": "6", | |
"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": "warn", | |
"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]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1078.820864, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 46940.127232, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.61075390625, | |
"mean": 8.61075390625, | |
"stdev": 0.0, | |
"p50": 8.61075390625, | |
"p90": 8.61075390625, | |
"p95": 8.61075390625, | |
"p99": 8.61075390625, | |
"values": [ | |
8.61075390625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1248.096256, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 303490.330624, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.5177731704711915, | |
"mean": 0.009245949472699846, | |
"stdev": 0.001904661602611506, | |
"p50": 0.008795773983001708, | |
"p90": 0.009208575248718261, | |
"p95": 0.010628657579421998, | |
"p99": 0.018428494548797622, | |
"values": [ | |
0.00866513442993164, | |
0.009146414756774902, | |
0.008638894081115723, | |
0.008700334548950195, | |
0.008769774436950683, | |
0.009188815116882324, | |
0.0094345760345459, | |
0.008510093688964843, | |
0.008834254264831544, | |
0.008757933616638184, | |
0.008557773590087891, | |
0.00876513385772705, | |
0.01055041790008545, | |
0.00907281494140625, | |
0.008790094375610352, | |
0.008752814292907715, | |
0.008804014205932617, | |
0.008830254554748534, | |
0.008794415473937988, | |
0.008821934700012206, | |
0.008805134773254394, | |
0.008791213989257812, | |
0.0087676944732666, | |
0.008791854858398437, | |
0.008813454627990722, | |
0.008766414642333985, | |
0.02101939582824707, | |
0.008884973526000976, | |
0.008777613639831544, | |
0.008766094207763671, | |
0.008757453918457031, | |
0.0092283353805542, | |
0.008825135231018067, | |
0.008795213699340821, | |
0.008795694351196289, | |
0.008800494194030761, | |
0.008844175338745118, | |
0.008824653625488281, | |
0.008770894050598145, | |
0.008781293869018554, | |
0.008792654991149902, | |
0.00878177547454834, | |
0.008777134895324707, | |
0.008753934860229491, | |
0.008767535209655761, | |
0.016308666229248047, | |
0.008944655418395996, | |
0.008795853614807128, | |
0.00884465503692627, | |
0.0087676944732666, | |
0.008807534217834473, | |
0.008861294746398926, | |
0.008810414314270019, | |
0.008806734085083008, | |
0.009096175193786622, | |
0.01086337661743164 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 216.3109376603584 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1248.19456, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 301795.520512, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.4835799961090088, | |
"mean": 0.008635357073375156, | |
"stdev": 0.002027905484128914, | |
"p50": 0.008302653312683105, | |
"p90": 0.008604413986206056, | |
"p95": 0.00902809500694275, | |
"p99": 0.015881938934326212, | |
"values": [ | |
0.008231213569641113, | |
0.008012972831726074, | |
0.007986573219299317, | |
0.008132493019104004, | |
0.008839215278625488, | |
0.008435214042663574, | |
0.008201772689819337, | |
0.023526599884033203, | |
0.008091374397277832, | |
0.008494573593139649, | |
0.00813473415374756, | |
0.008674734115600586, | |
0.009565935134887696, | |
0.008234414100646972, | |
0.008275053977966308, | |
0.008247214317321777, | |
0.008279534339904785, | |
0.00825937271118164, | |
0.008282093048095704, | |
0.008299213409423828, | |
0.008305133819580078, | |
0.008330734252929687, | |
0.008477293968200683, | |
0.008239052772521972, | |
0.008300172805786132, | |
0.008287053108215332, | |
0.008321614265441894, | |
0.008291534423828125, | |
0.008261613845825196, | |
0.008244653701782227, | |
0.009627216339111328, | |
0.008375853538513183, | |
0.008337133407592774, | |
0.008335373878479003, | |
0.008334094047546387, | |
0.008534093856811524, | |
0.008324013710021973, | |
0.008300013542175293, | |
0.0083225736618042, | |
0.008314093589782716, | |
0.008293613433837891, | |
0.008278093338012694, | |
0.008288812637329102, | |
0.008291533470153808, | |
0.008281932830810548, | |
0.0079569730758667, | |
0.008380973815917969, | |
0.008393774032592774, | |
0.008481134414672851, | |
0.00835297393798828, | |
0.008344654083251954, | |
0.008348012924194336, | |
0.008324813842773438, | |
0.00836689281463623, | |
0.008279374122619629, | |
0.008848814964294434 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 115.80297045078031 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.45449563074111937, | |
"mean": 0.008115993406091418, | |
"stdev": 0.0019985757761901337, | |
"p50": 0.007797373056411743, | |
"p90": 0.008064253330230713, | |
"p95": 0.008472374439239502, | |
"p99": 0.015240264940261879, | |
"values": [ | |
0.007705613136291504, | |
0.0075398521423339845, | |
0.007611052989959717, | |
0.007736011981964112, | |
0.008206733703613281, | |
0.007998093128204346, | |
0.007677772045135498, | |
0.02280915832519531, | |
0.007560812950134278, | |
0.007948332786560059, | |
0.007566412925720215, | |
0.008126253128051758, | |
0.009047533988952637, | |
0.00773857307434082, | |
0.00776481294631958, | |
0.007748013019561768, | |
0.007766252994537354, | |
0.007757932186126709, | |
0.007786411762237549, | |
0.007801133155822754, | |
0.0078105731010437015, | |
0.00781825304031372, | |
0.0079732928276062, | |
0.0077348918914794925, | |
0.007784011840820312, | |
0.007780813217163086, | |
0.007804172992706299, | |
0.0077824130058288575, | |
0.007764653205871582, | |
0.007751213073730469, | |
0.00896257495880127, | |
0.007855372905731201, | |
0.007825293064117432, | |
0.00781825304031372, | |
0.007815692901611328, | |
0.008002253532409668, | |
0.007816332817077637, | |
0.007792333126068115, | |
0.007796173095703125, | |
0.007798573017120361, | |
0.007783212184906006, | |
0.007784011840820312, | |
0.0077542529106140136, | |
0.007793292999267578, | |
0.007776332855224609, | |
0.007465773105621338, | |
0.007811693191528321, | |
0.007886413097381592, | |
0.007955213069915772, | |
0.007826572895050048, | |
0.00781825304031372, | |
0.007824653148651124, | |
0.007811693191528321, | |
0.007813932895660401, | |
0.0076974530220031735, | |
0.008308974266052246 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 123.21350572432145 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |