
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
92bd879
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_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": 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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 720.03584, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.1670732421875, | |
"mean": 7.1670732421875, | |
"stdev": 0.0, | |
"p50": 7.1670732421875, | |
"p90": 7.1670732421875, | |
"p95": 7.1670732421875, | |
"p99": 7.1670732421875, | |
"values": [ | |
7.1670732421875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0044606195555793e-06, | |
"ram": 5.346853019513749e-07, | |
"gpu": 1.7019458059992776e-06, | |
"total": 3.2410917275062317e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1047.212032, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.48864640092849737, | |
"mean": 0.0065152853457132965, | |
"stdev": 0.00027138413545506503, | |
"p50": 0.006579296112060547, | |
"p90": 0.006822995281219482, | |
"p95": 0.006857686567306519, | |
"p99": 0.007025595645904542, | |
"values": [ | |
0.0071691198348999025, | |
0.006908224105834961, | |
0.0067439680099487306, | |
0.006678143978118897, | |
0.00665235185623169, | |
0.006579296112060547, | |
0.006708288192749023, | |
0.006848480224609375, | |
0.0067257280349731444, | |
0.006744895935058594, | |
0.0068083200454711916, | |
0.00682912015914917, | |
0.006684639930725098, | |
0.006740543842315674, | |
0.006599423885345459, | |
0.0065838398933410645, | |
0.006552768230438232, | |
0.006686495780944824, | |
0.00675270414352417, | |
0.0068091521263122555, | |
0.006759871959686279, | |
0.006653696060180664, | |
0.0068260798454284665, | |
0.006739071846008301, | |
0.0065188159942626955, | |
0.006599423885345459, | |
0.0068791680335998535, | |
0.006623263835906982, | |
0.0066481919288635255, | |
0.006606016159057617, | |
0.006824160099029541, | |
0.006815968036651611, | |
0.006821248054504394, | |
0.006749055862426758, | |
0.006666048049926758, | |
0.006571616172790527, | |
0.006369696140289306, | |
0.0066910400390625, | |
0.00626204776763916, | |
0.00623203182220459, | |
0.006586080074310303, | |
0.006812352180480957, | |
0.006815199851989746, | |
0.006975168228149414, | |
0.006449920177459717, | |
0.006359776020050049, | |
0.006423871994018554, | |
0.006345471858978271, | |
0.006400512218475342, | |
0.006390592098236084, | |
0.0063582401275634765, | |
0.006133344173431397, | |
0.0061528959274292, | |
0.006375296115875244, | |
0.006159135818481445, | |
0.006108704090118408, | |
0.006083775997161865, | |
0.006103456020355225, | |
0.006168352127075195, | |
0.006096255779266357, | |
0.006115359783172607, | |
0.006164159774780274, | |
0.006095839977264404, | |
0.006081376075744629, | |
0.006088575839996338, | |
0.006154496192932129, | |
0.006526463985443115, | |
0.006297952175140381, | |
0.006509439945220947, | |
0.0063697280883789065, | |
0.006391583919525146, | |
0.006112736225128174, | |
0.006126880168914795, | |
0.006369696140289306, | |
0.00628169584274292 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 306.970438572716 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.625409531966914e-08, | |
"ram": 4.169212523004845e-08, | |
"gpu": 1.5209770002564515e-07, | |
"total": 2.7004392057536273e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7406202.649327365 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1063.124992, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.5148748173713683, | |
"mean": 0.006864997564951579, | |
"stdev": 0.00028828634441222396, | |
"p50": 0.006902912139892578, | |
"p90": 0.007200896167755127, | |
"p95": 0.007246640110015869, | |
"p99": 0.0073438469600677495, | |
"values": [ | |
0.007339295864105225, | |
0.007235072135925293, | |
0.007138720035552978, | |
0.007142816066741943, | |
0.006902912139892578, | |
0.007054175853729248, | |
0.007163040161132813, | |
0.007150879859924316, | |
0.007149888038635254, | |
0.007189760208129883, | |
0.007103104114532471, | |
0.007127039909362793, | |
0.007317376136779785, | |
0.007126175880432129, | |
0.006873536109924317, | |
0.0070160961151123045, | |
0.0069771199226379395, | |
0.006996384143829346, | |
0.00721619176864624, | |
0.007130335807800293, | |
0.007061632156372071, | |
0.007233312129974365, | |
0.007076608180999756, | |
0.007131775856018066, | |
0.007119264125823975, | |
0.0070908799171447755, | |
0.006954336166381836, | |
0.007025536060333252, | |
0.006988895893096924, | |
0.007054399967193603, | |
0.007164224147796631, | |
0.007208320140838623, | |
0.0070611839294433595, | |
0.007056128025054931, | |
0.007273632049560547, | |
0.006882815837860107, | |
0.006791232109069824, | |
0.0066547198295593265, | |
0.006467455863952636, | |
0.006567264080047607, | |
0.0071495361328125, | |
0.00715667200088501, | |
0.007356800079345703, | |
0.006957119941711426, | |
0.0067255678176879885, | |
0.006687039852142334, | |
0.006737567901611328, | |
0.006870880126953125, | |
0.006672704219818115, | |
0.006681056022644043, | |
0.006710368156433106, | |
0.006465568065643311, | |
0.006553728103637696, | |
0.006646016120910645, | |
0.006453951835632324, | |
0.006448192119598389, | |
0.0064338879585266115, | |
0.006452191829681397, | |
0.006449984073638916, | |
0.006423903942108154, | |
0.006550111770629883, | |
0.006453536033630371, | |
0.006418464183807373, | |
0.006447872161865234, | |
0.0064683518409729005, | |
0.006464672088623047, | |
0.006705408096313477, | |
0.00666374397277832, | |
0.006705408096313477, | |
0.0066616001129150395, | |
0.006680736064910889, | |
0.00659555196762085, | |
0.0064245758056640625, | |
0.006841472148895264, | |
0.006547039985656739 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 145.66647555789095 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.190868024982275e-08, | |
"ram": 3.9318921206142303e-08, | |
"gpu": 1.4170461834935713e-07, | |
"total": 2.529322198053223e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3953628.370358206 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.480984002113342, | |
"mean": 0.006413120028177897, | |
"stdev": 0.0002370669934667943, | |
"p50": 0.006460415840148926, | |
"p90": 0.006684659194946289, | |
"p95": 0.006743859386444092, | |
"p99": 0.006812815437316895, | |
"values": [ | |
0.006802432060241699, | |
0.006729728221893311, | |
0.0066416640281677245, | |
0.0066406078338623045, | |
0.006396927833557129, | |
0.006556672096252441, | |
0.006653952121734619, | |
0.006642687797546387, | |
0.0066416640281677245, | |
0.006681568145751953, | |
0.006595583915710449, | |
0.006631423950195312, | |
0.006776832103729248, | |
0.006626304149627686, | |
0.006400000095367431, | |
0.006516736030578613, | |
0.006487040042877197, | |
0.006495232105255127, | |
0.006686719894409179, | |
0.006604800224304199, | |
0.006575104236602783, | |
0.006721536159515381, | |
0.006559743881225586, | |
0.006625279903411865, | |
0.006624288082122802, | |
0.0065771517753601075, | |
0.006472703933715821, | |
0.006536191940307618, | |
0.006460415840148926, | |
0.0065443840026855465, | |
0.006650879859924317, | |
0.006691840171813965, | |
0.006542335987091064, | |
0.006568960189819336, | |
0.006779903888702392, | |
0.0064174079895019534, | |
0.006312960147857666, | |
0.006254591941833496, | |
0.00607539176940918, | |
0.006168575763702393, | |
0.006673408031463623, | |
0.006665215969085693, | |
0.006842368125915528, | |
0.006546495914459228, | |
0.006336512088775635, | |
0.006289408206939697, | |
0.0063508481979370115, | |
0.00648086404800415, | |
0.006283199787139893, | |
0.006253568172454834, | |
0.006312960147857666, | |
0.006076416015625, | |
0.006153215885162353, | |
0.006243328094482422, | |
0.00603545618057251, | |
0.00606822395324707, | |
0.006054912090301514, | |
0.006073344230651856, | |
0.006053887844085694, | |
0.00603545618057251, | |
0.006166528224945069, | |
0.006073344230651856, | |
0.006041600227355957, | |
0.006065152168273926, | |
0.006089727878570556, | |
0.006082560062408447, | |
0.006266880035400391, | |
0.006280191898345947, | |
0.0063201279640197755, | |
0.006278143882751465, | |
0.006296576023101807, | |
0.006164480209350586, | |
0.006041600227355957, | |
0.0064542717933654785, | |
0.006165503978729248 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 155.93034211214055 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |