
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
488ad2e
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.224-212.876.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.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": 800.54272, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.04646728515625, | |
"mean": 8.04646728515625, | |
"stdev": 0.0, | |
"p50": 8.04646728515625, | |
"p90": 8.04646728515625, | |
"p95": 8.04646728515625, | |
"p99": 8.04646728515625, | |
"values": [ | |
8.04646728515625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 2.4855243125000945e-06, | |
"ram": 1.3421952057982338e-06, | |
"gpu": 3.2816692920000206e-06, | |
"total": 7.109388810298349e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1224.093696, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.49149065780639634, | |
"mean": 0.006826259136199951, | |
"stdev": 0.000263579961917705, | |
"p50": 0.0068819839954376225, | |
"p90": 0.007094569587707519, | |
"p95": 0.00720875985622406, | |
"p99": 0.007321497297286988, | |
"values": [ | |
0.0073658242225646976, | |
0.0072085437774658204, | |
0.007252287864685058, | |
0.006921631813049316, | |
0.006950463771820068, | |
0.007209023952484131, | |
0.006789728164672852, | |
0.006884768009185791, | |
0.007068640232086182, | |
0.007036191940307617, | |
0.006821280002593994, | |
0.006891392230987549, | |
0.007070816040039062, | |
0.00704201602935791, | |
0.007021152019500733, | |
0.0069510722160339355, | |
0.00699728012084961, | |
0.006770431995391846, | |
0.006798208236694336, | |
0.006937248229980469, | |
0.006868288040161132, | |
0.0068917121887207035, | |
0.00709600019454956, | |
0.007094655990600586, | |
0.007043519973754883, | |
0.0068406081199646, | |
0.007045728206634521, | |
0.006887263774871826, | |
0.006979072093963623, | |
0.006776959896087647, | |
0.00693065595626831, | |
0.0070696001052856445, | |
0.006778687953948975, | |
0.006912032127380371, | |
0.006864352226257324, | |
0.006879199981689453, | |
0.007093760013580322, | |
0.007075712203979492, | |
0.007093791961669922, | |
0.0069352960586547855, | |
0.006890687942504883, | |
0.006906559944152832, | |
0.006742176055908203, | |
0.006528223991394043, | |
0.006853759765625, | |
0.0064011201858520505, | |
0.006909599781036377, | |
0.007089439868927002, | |
0.0071983041763305665, | |
0.007303391933441162, | |
0.006786752223968506, | |
0.006752480030059815, | |
0.006676703929901123, | |
0.0065354881286621095, | |
0.006634335994720459, | |
0.0065780158042907716, | |
0.006524415969848632, | |
0.006574399948120117, | |
0.006302656173706055, | |
0.006300127983093261, | |
0.00632316780090332, | |
0.006359839916229248, | |
0.006319776058197022, | |
0.006321728229522705, | |
0.006344736099243164, | |
0.006420576095581055, | |
0.006759071826934814, | |
0.006765376091003418, | |
0.006533279895782471, | |
0.006565663814544678, | |
0.006559584140777588, | |
0.006584320068359375 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 292.9862403543857 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.850322162895757e-08, | |
"ram": 4.289703199222162e-08, | |
"gpu": 1.5165023169536344e-07, | |
"total": 2.730504853165426e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7324652.793352245 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1242.43968, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5168103032112122, | |
"mean": 0.007177920877933502, | |
"stdev": 0.00028965879855993973, | |
"p50": 0.0072418878078460685, | |
"p90": 0.007485193634033203, | |
"p95": 0.007584815907478333, | |
"p99": 0.007821491189002992, | |
"values": [ | |
0.007545567989349365, | |
0.007463391780853272, | |
0.007462624073028564, | |
0.007289120197296143, | |
0.007782144069671631, | |
0.0074143681526184085, | |
0.007201632022857666, | |
0.007311520099639893, | |
0.007587967872619629, | |
0.00735145616531372, | |
0.007216351985931397, | |
0.0074239039421081544, | |
0.007400479793548584, | |
0.007373536109924316, | |
0.007278111934661866, | |
0.00728223991394043, | |
0.007332159996032715, | |
0.007124127864837647, | |
0.007248799800872802, | |
0.0072531838417053225, | |
0.0072928318977355956, | |
0.007524352073669433, | |
0.007395967960357666, | |
0.007426591873168945, | |
0.007309408187866211, | |
0.0072986559867858885, | |
0.007420191764831543, | |
0.007295296192169189, | |
0.0072349758148193355, | |
0.007175680160522461, | |
0.007233119964599609, | |
0.0072633600234985355, | |
0.007233952045440674, | |
0.0072202558517456055, | |
0.0073658242225646976, | |
0.0073274879455566405, | |
0.00741644811630249, | |
0.007487616062164307, | |
0.007307328224182129, | |
0.007341023921966553, | |
0.0071874880790710445, | |
0.007195328235626221, | |
0.007059936046600342, | |
0.007045087814331055, | |
0.006837471961975098, | |
0.006642399787902832, | |
0.007330624103546143, | |
0.007585343837738037, | |
0.007584383964538574, | |
0.007116096019744873, | |
0.007055391788482666, | |
0.00698476791381836, | |
0.006908256053924561, | |
0.006950719833374024, | |
0.0068839359283447265, | |
0.0069136319160461425, | |
0.006901216030120849, | |
0.006879839897155762, | |
0.0066789441108703615, | |
0.006669248104095459, | |
0.0067116479873657224, | |
0.006646368026733398, | |
0.006684959888458252, | |
0.006687520027160644, | |
0.006656159877777099, | |
0.006669695854187012, | |
0.007917823791503907, | |
0.006957248210906982, | |
0.006861184120178223, | |
0.006827968120574951, | |
0.007017343997955322, | |
0.006849215984344482 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.3161079657786 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.438987588706782e-08, | |
"ram": 4.065427507639188e-08, | |
"gpu": 1.4344615822771418e-07, | |
"total": 2.584903091911738e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3868616.9826986506 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.48236847972869873, | |
"mean": 0.006699562218454149, | |
"stdev": 0.00024245577390400372, | |
"p50": 0.006737951993942261, | |
"p90": 0.006952345609664917, | |
"p95": 0.0070492671012878415, | |
"p99": 0.007311626186370851, | |
"values": [ | |
0.007010303974151612, | |
0.006931456089019775, | |
0.006946815967559815, | |
0.006783999919891357, | |
0.0072540159225463864, | |
0.006874112129211426, | |
0.0067010560035705566, | |
0.006788095951080322, | |
0.007054336071014404, | |
0.0068321280479431154, | |
0.0067051520347595215, | |
0.006905856132507324, | |
0.00687718391418457, | |
0.0068392958641052244, | |
0.006755328178405762, | |
0.006760447978973389, | |
0.006834176063537598, | |
0.006598656177520752, | |
0.006746111869812011, | |
0.006704063892364502, | |
0.006779903888702392, | |
0.0069847040176391605, | |
0.006872064113616944, | |
0.0069027838706970214, | |
0.006772736072540283, | |
0.00676966381072998, | |
0.006895616054534912, | |
0.006781951904296875, | |
0.006750207901000976, | |
0.006663167953491211, | |
0.00672979211807251, | |
0.006746111869812011, | |
0.006713344097137451, | |
0.006672383785247803, | |
0.006860799789428711, | |
0.006790143966674805, | |
0.006890495777130127, | |
0.006952960014343262, | |
0.006766655921936035, | |
0.0068321280479431154, | |
0.006683648109436035, | |
0.006707200050354004, | |
0.006586368083953857, | |
0.006552576065063476, | |
0.006415359973907471, | |
0.006247424125671387, | |
0.006850560188293457, | |
0.007085055828094483, | |
0.007045119762420654, | |
0.0066979842185974124, | |
0.006622208118438721, | |
0.006564864158630371, | |
0.006511616230010986, | |
0.006554624080657959, | |
0.0064880638122558594, | |
0.006510591983795166, | |
0.006491136074066162, | |
0.006456319808959961, | |
0.0062975997924804685, | |
0.0062873601913452145, | |
0.0063211522102355954, | |
0.0062638077735900875, | |
0.006302720069885254, | |
0.006302720069885254, | |
0.006254528045654297, | |
0.00628223991394043, | |
0.007452672004699707, | |
0.0065372161865234375, | |
0.006467584133148193, | |
0.00643071985244751, | |
0.006617055892944336, | |
0.006450175762176514 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 149.26348429834258 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |