
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
45d9420
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": {}, | |
"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", | |
"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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1032.679424, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210816 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.49178739261627197, | |
"mean": 0.006736813597483178, | |
"stdev": 0.00044623090646117694, | |
"p50": 0.006724063873291016, | |
"p90": 0.007212147235870361, | |
"p95": 0.007368377590179443, | |
"p99": 0.008107169380187988, | |
"values": [ | |
0.008352959632873535, | |
0.007622528076171875, | |
0.007375904083251953, | |
0.007363359928131103, | |
0.007160128116607666, | |
0.007125951766967773, | |
0.007140192031860351, | |
0.006572768211364746, | |
0.006685791969299316, | |
0.0069946560859680176, | |
0.006948544025421143, | |
0.006724063873291016, | |
0.006956768035888672, | |
0.006820864200592041, | |
0.006839935779571533, | |
0.006750432014465332, | |
0.006780288219451904, | |
0.0067717118263244626, | |
0.006540512084960938, | |
0.006645631790161133, | |
0.006664896011352539, | |
0.0066705279350280765, | |
0.0069203519821166995, | |
0.006827936172485351, | |
0.006776832103729248, | |
0.006766848087310791, | |
0.006726304054260254, | |
0.006734272003173828, | |
0.006581088066101074, | |
0.006692671775817871, | |
0.0069378561973571775, | |
0.006951871871948242, | |
0.007022175788879394, | |
0.007012928009033203, | |
0.007180287837982178, | |
0.007211840152740479, | |
0.00729747200012207, | |
0.00727023983001709, | |
0.006964352130889893, | |
0.008011584281921386, | |
0.007085792064666748, | |
0.007212224006652832, | |
0.006713727951049805, | |
0.006582208156585693, | |
0.007045631885528565, | |
0.006945536136627197, | |
0.007033120155334473, | |
0.006608767986297608, | |
0.006426591873168946, | |
0.006427999973297119, | |
0.006456960201263428, | |
0.0065747518539428715, | |
0.006434016227722168, | |
0.006470560073852539, | |
0.006409440040588379, | |
0.006458879947662354, | |
0.006130271911621093, | |
0.006092671871185303, | |
0.006139520168304443, | |
0.006077023983001709, | |
0.006244160175323486, | |
0.006607264041900635, | |
0.006470143795013428, | |
0.006605247974395752, | |
0.006124991893768311, | |
0.006098879814147949, | |
0.006093791961669922, | |
0.006087232112884522, | |
0.0060973758697509765, | |
0.006087935924530029, | |
0.0060780482292175295, | |
0.00625705623626709, | |
0.006214240074157715 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 296.8762562685696 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.58214487897869e-08, | |
"ram": 4.145905510762558e-08, | |
"gpu": 1.4970464913375865e-07, | |
"total": 2.669851530311711e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7491053.256307835 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1032.679424, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.43456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.5164654722213746, | |
"mean": 0.007074869482484581, | |
"stdev": 0.00042907344146318884, | |
"p50": 0.007118559837341308, | |
"p90": 0.007625638484954834, | |
"p95": 0.007756863975524902, | |
"p99": 0.007976249580383302, | |
"values": [ | |
0.007643968105316162, | |
0.007929120063781738, | |
0.007733344078063965, | |
0.007546207904815674, | |
0.007447487831115722, | |
0.007530720233917237, | |
0.0073491201400756835, | |
0.006943391799926758, | |
0.007268352031707764, | |
0.0072527041435241696, | |
0.007118559837341308, | |
0.00714412784576416, | |
0.007147935867309571, | |
0.007136288166046142, | |
0.007101408004760742, | |
0.0070926079750061035, | |
0.007161312103271485, | |
0.007028512001037598, | |
0.006979775905609131, | |
0.006927743911743164, | |
0.00701907205581665, | |
0.007177023887634277, | |
0.007189184188842773, | |
0.007155680179595948, | |
0.007239327907562256, | |
0.007170112133026123, | |
0.007035488128662109, | |
0.007230591773986816, | |
0.006969888210296631, | |
0.007532256126403809, | |
0.007284031867980957, | |
0.007444928169250489, | |
0.0074481601715087895, | |
0.007487008094787598, | |
0.007775487899780273, | |
0.007552320003509521, | |
0.007456704139709473, | |
0.007686528205871582, | |
0.007763391971588135, | |
0.008097439765930177, | |
0.007330111980438233, | |
0.007752511978149414, | |
0.0068724479675292965, | |
0.0073079361915588375, | |
0.007331264019012451, | |
0.0074033279418945315, | |
0.007398591995239258, | |
0.006926591873168945, | |
0.006791552066802978, | |
0.006781216144561768, | |
0.006905695915222168, | |
0.006796703815460205, | |
0.006902048110961914, | |
0.00678607988357544, | |
0.006771168231964111, | |
0.006758143901824951, | |
0.006394207954406738, | |
0.006393055915832519, | |
0.006431871891021728, | |
0.006445695877075195, | |
0.006748511791229248, | |
0.006693280220031738, | |
0.006790207862854004, | |
0.00687283182144165, | |
0.006397215843200683, | |
0.006395904064178467, | |
0.006404543876647949, | |
0.006455296039581298, | |
0.00642848014831543, | |
0.006405856132507324, | |
0.006418303966522217, | |
0.006386047840118409, | |
0.006391456127166748 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.34536368136872 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.178518396550311e-08, | |
"ram": 3.909739401377871e-08, | |
"gpu": 1.4150957560698034e-07, | |
"total": 2.52392153586262e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3962088.30500835 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.4818792948722839, | |
"mean": 0.006601086231127177, | |
"stdev": 0.00036936904159541215, | |
"p50": 0.006602752208709717, | |
"p90": 0.007051852703094483, | |
"p95": 0.007202419185638427, | |
"p99": 0.007388605480194091, | |
"values": [ | |
0.007061503887176514, | |
0.007340991973876953, | |
0.0071833600997924804, | |
0.007007199764251709, | |
0.006938623905181885, | |
0.007003136157989502, | |
0.0068577280044555666, | |
0.006446080207824707, | |
0.006752255916595459, | |
0.006690815925598144, | |
0.006625152111053466, | |
0.0066078720092773435, | |
0.0066304001808166506, | |
0.006597631931304931, | |
0.006602752208709717, | |
0.006568960189819336, | |
0.006652927875518798, | |
0.006550528049468994, | |
0.006494207859039307, | |
0.006428671836853027, | |
0.006532000064849853, | |
0.006635519981384277, | |
0.006672383785247803, | |
0.006628287792205811, | |
0.00674508810043335, | |
0.006645823955535889, | |
0.006533120155334473, | |
0.006739967823028564, | |
0.006451104164123535, | |
0.006988768100738525, | |
0.0067758078575134275, | |
0.006905983924865722, | |
0.006932544231414795, | |
0.0069253120422363285, | |
0.007217184066772461, | |
0.007013247966766357, | |
0.00693452787399292, | |
0.007177216053009033, | |
0.007192575931549072, | |
0.007511040210723877, | |
0.006845439910888672, | |
0.007235583782196045, | |
0.006472703933715821, | |
0.00685152006149292, | |
0.006834176063537598, | |
0.006830080032348633, | |
0.006910975933074951, | |
0.0065177597999572755, | |
0.006388735771179199, | |
0.006370175838470459, | |
0.006468607902526856, | |
0.00640496015548706, | |
0.006496255874633789, | |
0.00637440013885498, | |
0.00638153600692749, | |
0.006351871967315674, | |
0.006021120071411133, | |
0.006013951778411865, | |
0.006056960105895996, | |
0.006065279960632324, | |
0.006354944229125976, | |
0.006302656173706055, | |
0.006401023864746094, | |
0.0064839677810668945, | |
0.006012767791748047, | |
0.006012928009033203, | |
0.006015999794006348, | |
0.006060031890869141, | |
0.006045663833618164, | |
0.006032383918762207, | |
0.006037504196166992, | |
0.00601200008392334, | |
0.006017024040222168 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 151.49021918310007 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |