
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0fea117
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", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1083.183104, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.49553186988830583, | |
"mean": 0.00869354157698782, | |
"stdev": 0.0004117956486643135, | |
"p50": 0.008500224113464355, | |
"p90": 0.009076524543762206, | |
"p95": 0.00967279987335205, | |
"p99": 0.010119476203918456, | |
"values": [ | |
0.009712224006652831, | |
0.009520832061767579, | |
0.009662943840026856, | |
0.009886367797851563, | |
0.008773759841918945, | |
0.008614080429077148, | |
0.008423007965087891, | |
0.00845686435699463, | |
0.008444448471069337, | |
0.008422656059265137, | |
0.008538304328918457, | |
0.008452159881591797, | |
0.00861955165863037, | |
0.008500224113464355, | |
0.008680480003356934, | |
0.008405216217041015, | |
0.008420031547546386, | |
0.008427359580993653, | |
0.008413375854492188, | |
0.008424896240234375, | |
0.008399999618530274, | |
0.008741536140441895, | |
0.008420895576477051, | |
0.008598719596862793, | |
0.008473535537719727, | |
0.00847436809539795, | |
0.008481247901916504, | |
0.00846294403076172, | |
0.008681119918823242, | |
0.00869164752960205, | |
0.008435711860656739, | |
0.008449184417724609, | |
0.008568672180175782, | |
0.008415936470031738, | |
0.008502176284790039, | |
0.008442912101745605, | |
0.008409855842590332, | |
0.00846127986907959, | |
0.00862076759338379, | |
0.010416159629821778, | |
0.008860128402709961, | |
0.009137791633605957, | |
0.009035679817199707, | |
0.008915616035461425, | |
0.008888799667358399, | |
0.00891868782043457, | |
0.008452672004699707, | |
0.008511199951171874, | |
0.008854528427124024, | |
0.008479231834411622, | |
0.008498623847961425, | |
0.008488927841186523, | |
0.008434368133544921, | |
0.008402624130249024, | |
0.00893449592590332, | |
0.008885055541992188, | |
0.008885984420776366 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 230.05583884180027 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0512221234620732e-07, | |
"ram": 5.7475115553104e-08, | |
"gpu": 1.7917172642478e-07, | |
"total": 3.417690543240913e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5851904.889269022 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1083.183104, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.5117862091064452, | |
"mean": 0.008978705422920091, | |
"stdev": 0.000450511880293477, | |
"p50": 0.008789823532104493, | |
"p90": 0.009388633728027344, | |
"p95": 0.009900448417663575, | |
"p99": 0.010676427307128906, | |
"values": [ | |
0.009853887557983398, | |
0.009997088432312012, | |
0.009876288414001465, | |
0.00916755199432373, | |
0.008677568435668945, | |
0.008826208114624024, | |
0.008663488388061523, | |
0.008753472328186036, | |
0.00868006420135498, | |
0.008676575660705567, | |
0.008708319664001464, | |
0.00870032024383545, | |
0.008993056297302246, | |
0.008769696235656738, | |
0.008691743850708008, | |
0.008661919593811036, | |
0.008879743576049804, | |
0.008702655792236329, | |
0.008761887550354003, | |
0.008754655838012696, | |
0.008663328170776367, | |
0.00877292823791504, | |
0.008676671981811523, | |
0.00887343978881836, | |
0.008714079856872559, | |
0.008793312072753906, | |
0.008818400382995606, | |
0.00885097599029541, | |
0.008888192176818847, | |
0.008882111549377441, | |
0.008679360389709472, | |
0.008694496154785156, | |
0.00886854362487793, | |
0.008674336433410644, | |
0.008651935577392578, | |
0.008661696434020996, | |
0.008789823532104493, | |
0.008715328216552734, | |
0.01067580795288086, | |
0.010677215576171874, | |
0.009475551605224609, | |
0.00925977611541748, | |
0.009190208435058593, | |
0.00914089584350586, | |
0.009170880317687988, | |
0.009189215660095215, | |
0.008734368324279785, | |
0.009243200302124024, | |
0.009146495819091797, | |
0.008731616020202638, | |
0.008709216117858886, | |
0.008704383850097657, | |
0.008797951698303223, | |
0.00874182415008545, | |
0.0093306884765625, | |
0.00916476821899414, | |
0.009236991882324219 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 111.37463062851837 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.974090716738841e-08, | |
"ram": 5.4104518021198554e-08, | |
"gpu": 1.7164751974763274e-07, | |
"total": 3.2549294493621956e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3072263.2104851007 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.9894973449707032, | |
"mean": 0.017669595445905413, | |
"stdev": 0.0007823419691342043, | |
"p50": 0.017311744689941407, | |
"p90": 0.01844991970062256, | |
"p95": 0.019309824466705323, | |
"p99": 0.02027919321060181, | |
"values": [ | |
0.019571712493896484, | |
0.019577856063842772, | |
0.0192225284576416, | |
0.017510400772094727, | |
0.0174704647064209, | |
0.017114112854003907, | |
0.0172359676361084, | |
0.017144832611083984, | |
0.017126399993896483, | |
0.017277952194213866, | |
0.01716531181335449, | |
0.01763839912414551, | |
0.017303552627563477, | |
0.01739366340637207, | |
0.017105920791625977, | |
0.017327104568481445, | |
0.01715814399719238, | |
0.017200159072875976, | |
0.017179616928100584, | |
0.017121280670166016, | |
0.017538047790527343, | |
0.01712544059753418, | |
0.01749190330505371, | |
0.01721958351135254, | |
0.017294336318969726, | |
0.017319936752319336, | |
0.017337343215942384, | |
0.017574911117553712, | |
0.01763532829284668, | |
0.017146879196166993, | |
0.017147903442382813, | |
0.017449983596801756, | |
0.017154048919677735, | |
0.01718169593811035, | |
0.017131519317626954, | |
0.01722163200378418, | |
0.01720012855529785, | |
0.01920512008666992, | |
0.021136383056640624, | |
0.01839206314086914, | |
0.018507776260375978, | |
0.01824665641784668, | |
0.018085887908935547, | |
0.018089984893798827, | |
0.018140159606933593, | |
0.01721855926513672, | |
0.017760255813598632, | |
0.018052095413208007, | |
0.01725644874572754, | |
0.01723391914367676, | |
0.01721241569519043, | |
0.01726361656188965, | |
0.017153024673461914, | |
0.018294815063476563, | |
0.01808176040649414, | |
0.018150400161743165 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 56.594391369143125 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |