
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3c1f5ed
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+cu124", | |
"_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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.225-213.878.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.5.0.dev0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"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.13.0", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 805.163008, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.07892479705810547 | |
], | |
"count": 1, | |
"total": 0.07892479705810547, | |
"mean": 0.07892479705810547, | |
"p50": 0.07892479705810547, | |
"p90": 0.07892479705810547, | |
"p95": 0.07892479705810547, | |
"p99": 0.07892479705810547, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1225.650176, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.410496 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.0074050240516662594, | |
0.007383711814880371, | |
0.006944191932678223, | |
0.006967040061950683, | |
0.007341440200805664, | |
0.007067135810852051, | |
0.007099552154541016, | |
0.007262176036834717, | |
0.007382976055145264, | |
0.007289696216583252, | |
0.007113759994506836, | |
0.007037951946258545, | |
0.007234591960906983, | |
0.0070904002189636234, | |
0.007150176048278808, | |
0.006905727863311768, | |
0.00702950382232666, | |
0.007227071762084961, | |
0.006999711990356445, | |
0.007375616073608399, | |
0.007114399909973144, | |
0.007006175994873047, | |
0.0074141759872436526, | |
0.007755807876586914, | |
0.007677343845367432, | |
0.0075066561698913575, | |
0.0071348161697387695, | |
0.00728550386428833, | |
0.007224768161773682, | |
0.007098559856414795, | |
0.007026463985443115, | |
0.007324704170227051, | |
0.006809408187866211, | |
0.0068865280151367185, | |
0.007082367897033691, | |
0.007076735973358154, | |
0.0075450558662414555, | |
0.0069740481376647945, | |
0.007155104160308838, | |
0.006911104202270508, | |
0.006864960193634033, | |
0.006665023803710937, | |
0.006622911930084229, | |
0.006739935874938965, | |
0.006762368202209473, | |
0.006421311855316162, | |
0.00640447998046875, | |
0.0065788478851318355, | |
0.007063424110412598, | |
0.006974656105041504, | |
0.0065717120170593266, | |
0.006508448123931885, | |
0.006641215801239013, | |
0.006477248191833496, | |
0.006663360118865967, | |
0.006899968147277832, | |
0.006432191848754883, | |
0.006629663944244385, | |
0.006672351837158203, | |
0.006610367774963379, | |
0.0077942080497741695, | |
0.006687359809875488, | |
0.0065965762138366696, | |
0.006584640026092529, | |
0.006439583778381348, | |
0.006394112110137939, | |
0.006447167873382569, | |
0.0064683837890625, | |
0.006389791965484619, | |
0.006521183967590332, | |
0.006587071895599365 | |
], | |
"count": 71, | |
"total": 0.49343171167373656, | |
"mean": 0.006949742417939953, | |
"p50": 0.006974656105041504, | |
"p90": 0.007383711814880371, | |
"p95": 0.007525856018066407, | |
"p99": 0.007767327928543091, | |
"stdev": 0.0003568406664513821, | |
"stdev_": 5.134588377408628 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 287.7804499397319 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.125872265504255e-08, | |
"ram": 4.435279314527933e-08, | |
"gpu": 1.5030072906846722e-07, | |
"total": 2.759122448687891e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7248681.554351116 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1225.650176, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.458112 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007367616176605225, | |
0.008449055671691895, | |
0.007271872043609619, | |
0.007265632152557373, | |
0.0075324797630310055, | |
0.007328512191772461, | |
0.007297408103942871, | |
0.007395328044891358, | |
0.007601920127868652, | |
0.00731283187866211, | |
0.007199615955352783, | |
0.0074572482109069825, | |
0.007280096054077149, | |
0.007276927947998047, | |
0.0071943359375, | |
0.007525568008422852, | |
0.007480735778808594, | |
0.00767903995513916, | |
0.0072061758041381836, | |
0.007472832202911377, | |
0.007223743915557862, | |
0.00724022388458252, | |
0.007605567932128906, | |
0.0075989761352539065, | |
0.007738207817077637, | |
0.00745356798171997, | |
0.007544159889221191, | |
0.007421216011047363, | |
0.007343967914581299, | |
0.007349535942077636, | |
0.007509183883666992, | |
0.007046016216278076, | |
0.007019904136657715, | |
0.007030752182006836, | |
0.007154880046844482, | |
0.007451263904571534, | |
0.007087103843688965, | |
0.006937151908874512, | |
0.006981152057647705, | |
0.007185728073120117, | |
0.0067870402336120605, | |
0.0069008002281188965, | |
0.0067918400764465335, | |
0.006799488067626953, | |
0.006620831966400146, | |
0.006578783988952636, | |
0.006557727813720703, | |
0.006722623825073242, | |
0.006849088191986084, | |
0.006632063865661621, | |
0.006834208011627197, | |
0.006920576095581055, | |
0.0068793601989746095, | |
0.006775135993957519, | |
0.006885024070739746, | |
0.006863935947418213, | |
0.006713727951049805, | |
0.006824128150939942, | |
0.006833119869232178, | |
0.006796319961547851, | |
0.006818687915802002, | |
0.006617055892944336, | |
0.007035679817199707, | |
0.006793824195861817, | |
0.006556960105895996, | |
0.006577568054199219, | |
0.006921919822692871, | |
0.006948224067687988, | |
0.0066323838233947755, | |
0.006666079998016357, | |
0.006813407897949219 | |
], | |
"count": 71, | |
"total": 0.5044651517868042, | |
"mean": 0.007105142982912735, | |
"p50": 0.007046016216278076, | |
"p90": 0.0075324797630310055, | |
"p95": 0.007603744029998779, | |
"p99": 0.007951462173461913, | |
"stdev": 0.00036179537846792143, | |
"stdev_": 5.092021080195129 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 140.74312120177103 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.542865377036481e-08, | |
"ram": 4.1256079390725245e-08, | |
"gpu": 1.36764559063107e-07, | |
"total": 2.5344929222419687e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3945562.4090495277 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.006858751773834228, | |
0.007926591873168945, | |
0.006772736072540283, | |
0.00674508810043335, | |
0.006982656002044678, | |
0.006821023941040039, | |
0.006789120197296142, | |
0.00683516788482666, | |
0.007060480117797851, | |
0.00676966381072998, | |
0.006694911956787109, | |
0.006922239780426025, | |
0.006762495994567871, | |
0.006756351947784424, | |
0.006708223819732666, | |
0.006944863796234131, | |
0.0069120960235595705, | |
0.007146463871002197, | |
0.00667852783203125, | |
0.006948863983154297, | |
0.006715392112731934, | |
0.006741888046264648, | |
0.007060480117797851, | |
0.007071936130523681, | |
0.0071833600997924804, | |
0.006927360057830811, | |
0.007024640083312988, | |
0.006910975933074951, | |
0.006830111980438232, | |
0.006862847805023193, | |
0.006996960163116455, | |
0.006574079990386963, | |
0.0065781760215759275, | |
0.00658841609954834, | |
0.006702079772949219, | |
0.006859776020050049, | |
0.006667263984680176, | |
0.006512639999389648, | |
0.006553599834442139, | |
0.0067348480224609375, | |
0.006396927833557129, | |
0.006512639999389648, | |
0.006398975849151611, | |
0.0064133119583129885, | |
0.00624128007888794, | |
0.006198272228240966, | |
0.006170623779296875, | |
0.006333439826965332, | |
0.006452223777770996, | |
0.006223872184753418, | |
0.006447167873382569, | |
0.006511616230010986, | |
0.006466559886932373, | |
0.0063660798072814944, | |
0.006492159843444824, | |
0.006436927795410156, | |
0.00632422399520874, | |
0.006416384220123291, | |
0.006434815883636475, | |
0.006390848159790039, | |
0.00643174409866333, | |
0.006232063770294189, | |
0.006648831844329834, | |
0.006394879817962646, | |
0.006178815841674804, | |
0.006171648025512695, | |
0.006529024124145508, | |
0.00655683183670044, | |
0.006236159801483154, | |
0.006275072097778321, | |
0.0064328317642211915 | |
], | |
"count": 71, | |
"total": 0.47184940528869634, | |
"mean": 0.00664576627167178, | |
"p50": 0.006648831844329834, | |
"p90": 0.006996960163116455, | |
"p95": 0.007066208124160766, | |
"p99": 0.007406329631805418, | |
"stdev": 0.0003061774920858757, | |
"stdev_": 4.607105931350413 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.47173781338 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |