
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a191cfc
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.33.0", | |
"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.621568, | |
"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.21084814453125, | |
"mean": 7.21084814453125, | |
"stdev": 0.0, | |
"p50": 7.21084814453125, | |
"p90": 7.21084814453125, | |
"p95": 7.21084814453125, | |
"p99": 7.21084814453125, | |
"values": [ | |
7.21084814453125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.008609433968862e-06, | |
"ram": 5.246131127719878e-07, | |
"gpu": 1.7555569599998072e-06, | |
"total": 3.288779506740657e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1034.969088, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4883361897468566, | |
"mean": 0.0067824470798174535, | |
"stdev": 0.000296765367943103, | |
"p50": 0.0067403998374938965, | |
"p90": 0.007164432191848755, | |
"p95": 0.007193203139305115, | |
"p99": 0.007321703777313233, | |
"values": [ | |
0.0072007360458374026, | |
0.007187039852142334, | |
0.007325247764587402, | |
0.0070841917991638186, | |
0.007063871860504151, | |
0.006966879844665527, | |
0.0070293121337890625, | |
0.006997439861297607, | |
0.007107039928436279, | |
0.007079296112060547, | |
0.00687388801574707, | |
0.007183008193969727, | |
0.007034815788269043, | |
0.007077695846557618, | |
0.006910751819610596, | |
0.006891615867614746, | |
0.006962624073028565, | |
0.007048736095428467, | |
0.007303584098815918, | |
0.00716534423828125, | |
0.007111551761627197, | |
0.007057119846343994, | |
0.007134304046630859, | |
0.007156223773956299, | |
0.006893631935119629, | |
0.00714188814163208, | |
0.0071833920478820805, | |
0.0067405118942260745, | |
0.0067402877807617185, | |
0.006688255786895752, | |
0.0069110078811645504, | |
0.006940351963043213, | |
0.007320256233215332, | |
0.0071561598777771, | |
0.006718976020812988, | |
0.006593920230865478, | |
0.006412191867828369, | |
0.006675392150878906, | |
0.006691135883331299, | |
0.006762752056121826, | |
0.006795487880706787, | |
0.006923808097839356, | |
0.007135839939117432, | |
0.006617824077606201, | |
0.006500063896179199, | |
0.006437088012695312, | |
0.006448575973510742, | |
0.006530240058898926, | |
0.006442848205566406, | |
0.006513760089874267, | |
0.006516255855560303, | |
0.006437983989715576, | |
0.006479936122894287, | |
0.006494463920593262, | |
0.006537439823150634, | |
0.00649948787689209, | |
0.006513504028320313, | |
0.006466847896575928, | |
0.00646124792098999, | |
0.006487040042877197, | |
0.006680768013000488, | |
0.006480095863342285, | |
0.0064776639938354495, | |
0.006446720123291016, | |
0.006449567794799805, | |
0.006509632110595703, | |
0.006454400062561035, | |
0.0064646401405334475, | |
0.006469120025634765, | |
0.006448671817779541, | |
0.006426047801971435, | |
0.006266687870025635 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 294.8788212371617 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.663686642937337e-08, | |
"ram": 4.19014993323233e-08, | |
"gpu": 1.4909330923870633e-07, | |
"total": 2.67631675000403e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7472957.003303098 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1050.341376, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.517005856513977, | |
"mean": 0.007180636896027459, | |
"stdev": 0.0003237761090755441, | |
"p50": 0.007211744070053101, | |
"p90": 0.007592262411117554, | |
"p95": 0.007629665613174439, | |
"p99": 0.007743868732452393, | |
"values": [ | |
0.007394207954406738, | |
0.007816800117492676, | |
0.007498559951782227, | |
0.007205952167510987, | |
0.007512703895568847, | |
0.007502495765686035, | |
0.007656576156616211, | |
0.00743123197555542, | |
0.007666336059570312, | |
0.007575071811676025, | |
0.007594048023223877, | |
0.007604000091552735, | |
0.007532063961029053, | |
0.007516672134399414, | |
0.007329599857330322, | |
0.007426239967346191, | |
0.007567840099334717, | |
0.007429823875427246, | |
0.007596704006195068, | |
0.007607647895812988, | |
0.007353856086730957, | |
0.007714079856872559, | |
0.007520895957946777, | |
0.007444672107696533, | |
0.00747760009765625, | |
0.007552063941955566, | |
0.007301792144775391, | |
0.007133344173431397, | |
0.007070335865020752, | |
0.007217535972595215, | |
0.0072555837631225585, | |
0.007576191902160644, | |
0.0074984321594238285, | |
0.007383647918701172, | |
0.007375103950500488, | |
0.006965055942535401, | |
0.007123199939727784, | |
0.006766848087310791, | |
0.006835616111755371, | |
0.0072631678581237796, | |
0.007369247913360596, | |
0.007405824184417724, | |
0.00735206413269043, | |
0.006950784206390381, | |
0.006846208095550537, | |
0.006839871883392334, | |
0.006904032230377197, | |
0.006973311901092529, | |
0.006869247913360596, | |
0.00687059211730957, | |
0.006848703861236572, | |
0.006849696159362793, | |
0.006829984188079834, | |
0.006797023773193359, | |
0.006855264186859131, | |
0.0068726720809936526, | |
0.006800992012023926, | |
0.006892096042633056, | |
0.006805088043212891, | |
0.006831232070922851, | |
0.007005504131317139, | |
0.006861504077911377, | |
0.006829023838043213, | |
0.006861311912536621, | |
0.006797984123229981, | |
0.0068139200210571285, | |
0.006839776039123535, | |
0.006758848190307617, | |
0.006797599792480469, | |
0.006788959980010986, | |
0.006772192001342774, | |
0.006821695804595947 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.2634127695873 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.316826901923267e-08, | |
"ram": 4.000649188419968e-08, | |
"gpu": 1.4174025676129715e-07, | |
"total": 2.5491501766472947e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3922875.9810268404 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.48343763208389273, | |
"mean": 0.006714411556720733, | |
"stdev": 0.0002686805374469164, | |
"p50": 0.006699519872665405, | |
"p90": 0.007058943891525268, | |
"p95": 0.0071072257280349735, | |
"p99": 0.0072047306966781625, | |
"values": [ | |
0.006863872051239014, | |
0.007279615879058838, | |
0.0069847040176391605, | |
0.006702079772949219, | |
0.007013376235961914, | |
0.006985727787017822, | |
0.007128064155578613, | |
0.00689356803894043, | |
0.007150591850280762, | |
0.0070522880554199216, | |
0.007068672180175781, | |
0.007090176105499267, | |
0.0069959678649902345, | |
0.007007232189178467, | |
0.006779903888702392, | |
0.006917119979858399, | |
0.0070594558715820314, | |
0.006900735855102539, | |
0.007054336071014404, | |
0.00708403205871582, | |
0.006840320110321045, | |
0.007174143791198731, | |
0.006990848064422607, | |
0.006905856132507324, | |
0.006965312004089355, | |
0.006993919849395752, | |
0.0067983360290527345, | |
0.006624256134033203, | |
0.006559743881225586, | |
0.006696959972381592, | |
0.00673689603805542, | |
0.007047167778015137, | |
0.006978559970855713, | |
0.006889472007751465, | |
0.00687718391418457, | |
0.006499328136444092, | |
0.006621183872222901, | |
0.0063610877990722655, | |
0.0064102401733398436, | |
0.006808576107025147, | |
0.006818816184997558, | |
0.006897664070129395, | |
0.006892543792724609, | |
0.006559743881225586, | |
0.006419456005096436, | |
0.006448128223419189, | |
0.006511616230010986, | |
0.006515711784362793, | |
0.0064778242111206055, | |
0.0064737281799316405, | |
0.006449151992797852, | |
0.006458367824554443, | |
0.00643174409866333, | |
0.006403071880340576, | |
0.006460415840148926, | |
0.0064778242111206055, | |
0.006409215927124024, | |
0.006497280120849609, | |
0.006408192157745361, | |
0.00643891191482544, | |
0.0066078720092773435, | |
0.006459392070770263, | |
0.006432767868041992, | |
0.006468607902526856, | |
0.006408192157745361, | |
0.00642252779006958, | |
0.00643891191482544, | |
0.006370304107666015, | |
0.006406144142150879, | |
0.006386688232421875, | |
0.006375423908233643, | |
0.0064204797744750975 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.93337883035463 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |