
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
59127d5
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.43.2", | |
"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.326656, | |
"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.133515625, | |
"mean": 7.133515625, | |
"stdev": 0.0, | |
"p50": 7.133515625, | |
"p90": 7.133515625, | |
"p95": 7.133515625, | |
"p99": 7.133515625, | |
"values": [ | |
7.133515625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.894331296284993e-07, | |
"ram": 5.263440051382418e-07, | |
"gpu": 1.8175014540044998e-06, | |
"total": 3.333278588771241e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1025.028096, | |
"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.48994566297531134, | |
"mean": 0.006804800874657101, | |
"stdev": 0.0003157067701432259, | |
"p50": 0.006880256175994873, | |
"p90": 0.007158060646057129, | |
"p95": 0.00723548460006714, | |
"p99": 0.0074274861669540405, | |
"values": [ | |
0.007403488159179687, | |
0.007200319766998291, | |
0.007011519908905029, | |
0.007093088150024414, | |
0.006813600063323975, | |
0.007106239795684814, | |
0.007057792186737061, | |
0.007053343772888183, | |
0.00692303991317749, | |
0.007131231784820557, | |
0.00709225606918335, | |
0.006944640159606934, | |
0.007059743881225586, | |
0.006977727890014648, | |
0.0068997759819030766, | |
0.00692793607711792, | |
0.006940447807312012, | |
0.007019199848175049, | |
0.007145792007446289, | |
0.007181983947753906, | |
0.006925792217254639, | |
0.007072512149810791, | |
0.007058080196380615, | |
0.006851903915405274, | |
0.006970687866210938, | |
0.007035711765289307, | |
0.006897632122039795, | |
0.006944416046142578, | |
0.006930943965911865, | |
0.007159423828125, | |
0.007140927791595459, | |
0.006999167919158935, | |
0.007395455837249756, | |
0.007486239910125732, | |
0.007089503765106201, | |
0.006826528072357178, | |
0.006636991977691651, | |
0.006423136234283447, | |
0.006799359798431396, | |
0.0071727681159973146, | |
0.007278463840484619, | |
0.007042943954467773, | |
0.0068628802299499515, | |
0.006751584053039551, | |
0.00672105598449707, | |
0.006344799995422363, | |
0.006334815979003906, | |
0.006387199878692627, | |
0.006383200168609619, | |
0.006333951950073242, | |
0.006729472160339356, | |
0.006648352146148681, | |
0.006591008186340332, | |
0.006609151840209961, | |
0.006391200065612793, | |
0.00641212797164917, | |
0.006422976016998291, | |
0.0063928961753845215, | |
0.006332096099853516, | |
0.006323232173919678, | |
0.0063786239624023435, | |
0.006381311893463135, | |
0.006337567806243897, | |
0.006650015830993652, | |
0.006616831779479981, | |
0.00657590389251709, | |
0.0066202239990234375, | |
0.006376416206359863, | |
0.006379519939422608, | |
0.006356800079345703, | |
0.00662332820892334, | |
0.006555359840393066 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 293.9101432708391 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.901359818599844e-08, | |
"ram": 4.319724211308654e-08, | |
"gpu": 1.541945678000071e-07, | |
"total": 2.7640540809909205e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7235748.438333721 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1040.67072, | |
"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.5120450224876406, | |
"mean": 0.00711173642343945, | |
"stdev": 0.00032104331630082854, | |
"p50": 0.007229039907455445, | |
"p90": 0.007436902236938476, | |
"p95": 0.007546742224693298, | |
"p99": 0.007737100067138672, | |
"values": [ | |
0.007523327827453613, | |
0.007494912147521972, | |
0.007329696178436279, | |
0.007222015857696534, | |
0.007244416236877441, | |
0.007390431880950928, | |
0.007417344093322754, | |
0.00725497579574585, | |
0.0073563199043273925, | |
0.0073705601692199705, | |
0.0073652157783508304, | |
0.00734819221496582, | |
0.007380447864532471, | |
0.007107711791992187, | |
0.007361792087554932, | |
0.007215519905090332, | |
0.007298943996429444, | |
0.007437215805053711, | |
0.0073983359336853025, | |
0.007265215873718262, | |
0.007427872180938721, | |
0.0073398399353027345, | |
0.007309408187866211, | |
0.007321055889129639, | |
0.007399360179901123, | |
0.0072525119781494144, | |
0.0072847681045532225, | |
0.007288544178009033, | |
0.007363071918487549, | |
0.0074340801239013675, | |
0.0074217281341552735, | |
0.007360799789428711, | |
0.007778495788574219, | |
0.00750271987915039, | |
0.007104191780090332, | |
0.0072360639572143556, | |
0.00666758394241333, | |
0.006972959995269775, | |
0.00757535982131958, | |
0.007720191955566406, | |
0.007633088111877441, | |
0.007320831775665284, | |
0.007092671871185303, | |
0.006969151973724365, | |
0.006924287796020508, | |
0.006669248104095459, | |
0.0067135682106018064, | |
0.006613632202148437, | |
0.00664086389541626, | |
0.006647647857666016, | |
0.006953407764434814, | |
0.0069027838706970214, | |
0.006877120018005371, | |
0.006854752063751221, | |
0.006679679870605469, | |
0.006676000118255615, | |
0.006643040180206299, | |
0.006660287857055664, | |
0.006677472114562989, | |
0.006731103897094726, | |
0.006615647792816162, | |
0.006738687992095947, | |
0.006650464057922363, | |
0.006861055850982666, | |
0.0068997759819030766, | |
0.006877471923828125, | |
0.006825823783874512, | |
0.006633503913879395, | |
0.006723840236663819, | |
0.006989920139312744, | |
0.006898784160614014, | |
0.006906208038330078 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 140.61263529172948 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.619047189286378e-08, | |
"ram": 4.142302715015805e-08, | |
"gpu": 1.4833453425185134e-07, | |
"total": 2.659480332948733e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3760133.089201066 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.47871692800521864, | |
"mean": 0.006648846222294701, | |
"stdev": 0.0002661992260537953, | |
"p50": 0.006709759950637818, | |
"p90": 0.006919782209396362, | |
"p95": 0.007032985639572144, | |
"p99": 0.007212349452972412, | |
"values": [ | |
0.006976511955261231, | |
0.006989823818206787, | |
0.006816800117492676, | |
0.006708223819732666, | |
0.006732800006866455, | |
0.006856704235076904, | |
0.0068853759765625, | |
0.006756351947784424, | |
0.006834176063537598, | |
0.006860799789428711, | |
0.006859776020050049, | |
0.0068392958641052244, | |
0.0068689918518066405, | |
0.006625279903411865, | |
0.0068577280044555666, | |
0.006661119937896728, | |
0.00678604793548584, | |
0.006920191764831543, | |
0.006879231929779053, | |
0.0067717118263244626, | |
0.006865920066833496, | |
0.006813695907592773, | |
0.006813695907592773, | |
0.006818816184997558, | |
0.006866975784301758, | |
0.006711296081542969, | |
0.0067901120185852055, | |
0.00677785587310791, | |
0.006845439910888672, | |
0.006916096210479736, | |
0.0068618240356445315, | |
0.006847487926483154, | |
0.00724070405960083, | |
0.007002111911773682, | |
0.0066713600158691405, | |
0.006754303932189941, | |
0.006270944118499756, | |
0.006501376152038574, | |
0.007070720195770264, | |
0.007200767993927002, | |
0.007079936027526855, | |
0.006881279945373535, | |
0.006654975891113281, | |
0.006568960189819336, | |
0.006495232105255127, | |
0.006281216144561768, | |
0.006328320026397705, | |
0.006227968215942382, | |
0.006251520156860352, | |
0.0062638077735900875, | |
0.006556608200073242, | |
0.006500415802001953, | |
0.006482944011688232, | |
0.006461440086364746, | |
0.006276095867156982, | |
0.006289408206939697, | |
0.0062566399574279785, | |
0.006240255832672119, | |
0.006292479991912842, | |
0.006344704151153564, | |
0.006230016231536865, | |
0.006322175979614258, | |
0.0062638077735900875, | |
0.006458367824554443, | |
0.006496255874633789, | |
0.006479872226715088, | |
0.00643174409866333, | |
0.006243328094482422, | |
0.006335487842559814, | |
0.006592512130737305, | |
0.006493184089660644, | |
0.0065075201988220215 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.40203466382357 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |