
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6a4df67
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cu121", | |
"_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": true, | |
"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 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": null, | |
"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": 1095.401472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.4919539480209351, | |
"mean": 0.009110258296683982, | |
"stdev": 0.00028148926020561536, | |
"p50": 0.009100895881652832, | |
"p90": 0.009415314960479737, | |
"p95": 0.009497433471679688, | |
"p99": 0.009867207717895506, | |
"values": [ | |
0.010109600067138671, | |
0.009495327949523926, | |
0.009402591705322266, | |
0.009172512054443359, | |
0.009146047592163085, | |
0.009047648429870606, | |
0.009078720092773437, | |
0.009255104064941407, | |
0.009047807693481446, | |
0.009252351760864258, | |
0.009198016166687011, | |
0.009169024467468262, | |
0.009192511558532715, | |
0.009280735969543458, | |
0.00945577621459961, | |
0.009501343727111816, | |
0.009342335700988769, | |
0.009232352256774903, | |
0.009207455635070801, | |
0.009242367744445801, | |
0.009057024002075195, | |
0.009097567558288574, | |
0.009227423667907715, | |
0.009043295860290528, | |
0.009054400444030762, | |
0.00910422420501709, | |
0.00925068759918213, | |
0.009128128051757813, | |
0.00906611156463623, | |
0.009095168113708496, | |
0.009021696090698242, | |
0.008796928405761718, | |
0.009272159576416016, | |
0.009420767784118652, | |
0.00965225601196289, | |
0.009243071556091309, | |
0.009233535766601563, | |
0.009108768463134766, | |
0.009070752143859863, | |
0.008981311798095703, | |
0.008981247901916505, | |
0.00905401611328125, | |
0.009016415596008302, | |
0.008605279922485352, | |
0.008584511756896973, | |
0.008895071983337402, | |
0.009062272071838379, | |
0.009055520057678223, | |
0.008954015731811524, | |
0.008680031776428223, | |
0.008593119621276856, | |
0.008563872337341308, | |
0.008577759742736817, | |
0.008575903892517089 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 219.53274373438725 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0611340255727844e-07, | |
"ram": 5.801484244654732e-08, | |
"gpu": 1.7995054078571292e-07, | |
"total": 3.4407878578953866e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5812622.23246548 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1095.401472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.5084164180755615, | |
"mean": 0.00941511885325114, | |
"stdev": 0.0002835541962996704, | |
"p50": 0.00944910430908203, | |
"p90": 0.00977648344039917, | |
"p95": 0.009834695911407471, | |
"p99": 0.009933484334945678, | |
"values": [ | |
0.009699071884155273, | |
0.009788224220275879, | |
0.009505760192871094, | |
0.009620256423950195, | |
0.00946448040008545, | |
0.009397600173950195, | |
0.009518976211547852, | |
0.009499168395996094, | |
0.009418975830078126, | |
0.009486144065856933, | |
0.00949824047088623, | |
0.009472000122070312, | |
0.009572640419006347, | |
0.009834079742431641, | |
0.009835840225219727, | |
0.009919391632080079, | |
0.009558272361755372, | |
0.009401791572570801, | |
0.009543583869934083, | |
0.009949376106262207, | |
0.009447872161865234, | |
0.009541600227355958, | |
0.009421152114868164, | |
0.009435711860656738, | |
0.009403072357177734, | |
0.009686400413513183, | |
0.009749088287353515, | |
0.009458656311035157, | |
0.009648351669311524, | |
0.00920025634765625, | |
0.009338720321655274, | |
0.008982463836669922, | |
0.009646080017089843, | |
0.009823552131652832, | |
0.009547743797302246, | |
0.009557503700256348, | |
0.009450336456298829, | |
0.009285311698913574, | |
0.00934943962097168, | |
0.009353504180908204, | |
0.009401503562927247, | |
0.009316800117492675, | |
0.00922537612915039, | |
0.008865663528442383, | |
0.008863519668579102, | |
0.009322624206542968, | |
0.009251199722290038, | |
0.009251423835754394, | |
0.009341216087341309, | |
0.008870112419128417, | |
0.008846528053283691, | |
0.00886847972869873, | |
0.008831263542175293, | |
0.00885001564025879 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 106.21214831023502 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.023740273729419e-07, | |
"ram": 5.590155840104158e-08, | |
"gpu": 1.744405809335849e-07, | |
"total": 3.327161667075685e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3005564.802863703 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.9824092159271236, | |
"mean": 0.018536022942021207, | |
"stdev": 0.0005148210553615623, | |
"p50": 0.018661376953125, | |
"p90": 0.019209215545654298, | |
"p95": 0.019313087463378908, | |
"p99": 0.019365928955078125, | |
"values": [ | |
0.019304447174072266, | |
0.018990079879760743, | |
0.018795551300048827, | |
0.018672607421875, | |
0.018486272811889647, | |
0.01862041664123535, | |
0.018795520782470702, | |
0.01848422431945801, | |
0.01878937530517578, | |
0.018763776779174804, | |
0.018671615600585938, | |
0.018784255981445314, | |
0.019139583587646485, | |
0.019330047607421876, | |
0.019404800415039062, | |
0.018982912063598634, | |
0.01869824028015137, | |
0.018761728286743166, | |
0.01922662353515625, | |
0.018526208877563476, | |
0.018677759170532226, | |
0.018705408096313478, | |
0.01847603225708008, | |
0.018521087646484375, | |
0.018799615859985352, | |
0.01901568031311035, | |
0.018661376953125, | |
0.018707456588745116, | |
0.018408447265625, | |
0.018388992309570314, | |
0.017829887390136717, | |
0.0189040641784668, | |
0.01924095916748047, | |
0.01932604789733887, | |
0.018826143264770508, | |
0.018745344161987306, | |
0.01844121551513672, | |
0.01841868782043457, | |
0.018380863189697266, | |
0.018414527893066406, | |
0.01839923286437988, | |
0.01827020835876465, | |
0.017516544342041016, | |
0.017475584030151366, | |
0.01821900749206543, | |
0.018342912673950194, | |
0.01833683204650879, | |
0.018290624618530274, | |
0.01762303924560547, | |
0.017474559783935546, | |
0.017435647964477538, | |
0.01745408058166504, | |
0.01745305633544922 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 53.949005303235666 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |