
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f4e4d0f
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": "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.3", | |
"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": 1053.683712, | |
"max_global_vram": 1353.187328, | |
"max_process_vram": 0.0, | |
"max_reserved": 713.03168, | |
"max_allocated": 509.62176 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4853925123214722, | |
"mean": 0.006741562671131558, | |
"stdev": 0.00020971306548637936, | |
"p50": 0.006680912017822265, | |
"p90": 0.0069857567787170415, | |
"p95": 0.007225671982765198, | |
"p99": 0.0074574389600753814, | |
"values": [ | |
0.007807168006896972, | |
0.007191359996795654, | |
0.007314591884613037, | |
0.007233151912689209, | |
0.006987360000610352, | |
0.007102272033691406, | |
0.0072195520401000975, | |
0.007276927947998047, | |
0.006657216072082519, | |
0.006624447822570801, | |
0.006664480209350586, | |
0.006716127872467041, | |
0.006696159839630127, | |
0.006682208061218262, | |
0.0066444802284240725, | |
0.006697247982025147, | |
0.006725887775421143, | |
0.006713280200958252, | |
0.006695583820343017, | |
0.00663808012008667, | |
0.006627679824829102, | |
0.006609439849853516, | |
0.006647744178771973, | |
0.006971327781677246, | |
0.006851136207580566, | |
0.006714431762695312, | |
0.00668726396560669, | |
0.006665855884552002, | |
0.0066327681541442874, | |
0.006792191982269287, | |
0.0067218561172485355, | |
0.006788256168365478, | |
0.006731552124023437, | |
0.006724800109863281, | |
0.006682591915130615, | |
0.006653471946716309, | |
0.006649472236633301, | |
0.0067090878486633304, | |
0.006689184188842774, | |
0.006812607765197754, | |
0.006678592205047607, | |
0.006716127872467041, | |
0.006673439979553223, | |
0.0066509761810302735, | |
0.00654860782623291, | |
0.006559264183044433, | |
0.006663008213043213, | |
0.006609055995941162, | |
0.006693952083587647, | |
0.006642943859100342, | |
0.0066304001808166506, | |
0.006638016223907471, | |
0.006626336097717285, | |
0.006710879802703858, | |
0.006680736064910889, | |
0.006687903881072998, | |
0.006674335956573486, | |
0.006613887786865234, | |
0.006637856006622315, | |
0.006596672058105469, | |
0.006628128051757812, | |
0.006643487930297852, | |
0.006683167934417725, | |
0.006697887897491455, | |
0.006665408134460449, | |
0.006639520168304444, | |
0.0065920958518981936, | |
0.006609536170959472, | |
0.006593311786651611, | |
0.006679232120513916, | |
0.006681087970733642, | |
0.006696352005004883 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 296.667122678295 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.0133097486811e-08, | |
"ram": 4.381183190095034e-08, | |
"gpu": 1.5394719522973515e-07, | |
"total": 2.778921246174965e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7197037.349485496 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1053.683712, | |
"max_global_vram": 1353.187328, | |
"max_process_vram": 0.0, | |
"max_reserved": 713.03168, | |
"max_allocated": 509.845504 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5149197111129761, | |
"mean": 0.007151662654346889, | |
"stdev": 0.00023600517500363028, | |
"p50": 0.007083872079849243, | |
"p90": 0.007422825479507447, | |
"p95": 0.007697118496894836, | |
"p99": 0.008055822277069092, | |
"values": [ | |
0.007662112236022949, | |
0.00756441593170166, | |
0.008115008354187011, | |
0.007791552066802978, | |
0.007423359870910645, | |
0.00758025598526001, | |
0.007418015956878662, | |
0.008031647682189941, | |
0.006820896148681641, | |
0.007048223972320557, | |
0.007059167861938476, | |
0.007739903926849365, | |
0.0071402878761291505, | |
0.007089888095855713, | |
0.007110367774963379, | |
0.007016928195953369, | |
0.007028480052947998, | |
0.007055103778839111, | |
0.0070555200576782225, | |
0.007135136127471924, | |
0.007102528095245361, | |
0.0071396160125732425, | |
0.007369984149932862, | |
0.00713651180267334, | |
0.007201888084411621, | |
0.0071023678779602055, | |
0.007103360176086425, | |
0.007082176208496094, | |
0.007089375972747803, | |
0.007092639923095703, | |
0.0072390718460083004, | |
0.0070924158096313476, | |
0.007022336006164551, | |
0.007140768051147461, | |
0.007227456092834473, | |
0.007096640110015869, | |
0.007093344211578369, | |
0.007118591785430908, | |
0.007032959938049316, | |
0.007059232234954834, | |
0.007011424064636231, | |
0.007051583766937256, | |
0.007063680171966553, | |
0.007012063980102539, | |
0.006960959911346436, | |
0.006933663845062256, | |
0.006906752109527588, | |
0.00701423978805542, | |
0.007027743816375732, | |
0.007061567783355713, | |
0.007213568210601807, | |
0.007104608058929443, | |
0.007104512214660645, | |
0.007026815891265869, | |
0.007035039901733399, | |
0.007009920120239258, | |
0.007014431953430176, | |
0.007068895816802979, | |
0.0070720000267028805, | |
0.007091968059539795, | |
0.007075679779052734, | |
0.007022880077362061, | |
0.007004127979278564, | |
0.00710595178604126, | |
0.007016640186309814, | |
0.007085567951202393, | |
0.007067552089691162, | |
0.007185247898101807, | |
0.007082079887390137, | |
0.0069901118278503415, | |
0.007012191772460937, | |
0.007056704044342041 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.8276244744549 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.518513096852196e-08, | |
"ram": 4.1098001306196255e-08, | |
"gpu": 1.4378031567930662e-07, | |
"total": 2.600634479540249e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3845215.495938454 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.48370467042922993, | |
"mean": 0.00671812042262819, | |
"stdev": 0.00020218521832458925, | |
"p50": 0.006666751861572265, | |
"p90": 0.00688844141960144, | |
"p95": 0.007155199956893922, | |
"p99": 0.007518607182502747, | |
"values": [ | |
0.007067647933959961, | |
0.007027711868286133, | |
0.007584767818450928, | |
0.007262207984924316, | |
0.006869952201843262, | |
0.007039999961853028, | |
0.006890495777130127, | |
0.007491583824157715, | |
0.006398975849151611, | |
0.006609920024871826, | |
0.0066406397819519045, | |
0.007289919853210449, | |
0.006711296081542969, | |
0.006672383785247803, | |
0.006691840171813965, | |
0.006595583915710449, | |
0.006622208118438721, | |
0.0066375679969787596, | |
0.006636544227600098, | |
0.006714367866516113, | |
0.006660096168518067, | |
0.006709248065948486, | |
0.006866943836212158, | |
0.006700064182281494, | |
0.006746111869812011, | |
0.006683648109436035, | |
0.0066713600158691405, | |
0.00667955207824707, | |
0.006684671878814697, | |
0.006688767910003662, | |
0.006830080032348633, | |
0.006681600093841553, | |
0.006599679946899414, | |
0.006732800006866455, | |
0.006820864200592041, | |
0.0066938881874084475, | |
0.006688767910003662, | |
0.0067123198509216305, | |
0.0066119680404663084, | |
0.0066344962120056155, | |
0.006605823993682861, | |
0.006646783828735352, | |
0.006652927875518798, | |
0.006612991809844971, | |
0.006561791896820069, | |
0.006523839950561524, | |
0.0065064959526062015, | |
0.006597631931304931, | |
0.006593535900115967, | |
0.006653952121734619, | |
0.006807551860809326, | |
0.006688767910003662, | |
0.006675424098968506, | |
0.00658841609954834, | |
0.006619135856628418, | |
0.006593535900115967, | |
0.006597631931304931, | |
0.006663167953491211, | |
0.006658048152923584, | |
0.0066631040573120115, | |
0.0066447358131408694, | |
0.006609920024871826, | |
0.006586368083953857, | |
0.006684671878814697, | |
0.006612991809844971, | |
0.0066713600158691405, | |
0.006653952121734619, | |
0.006677504062652588, | |
0.006670335769653321, | |
0.006583263874053955, | |
0.006604800224304199, | |
0.0066416640281677245 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.85115733141188 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |