
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e87d5c5
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.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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 719.884288, | |
"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.24076220703125, | |
"mean": 7.24076220703125, | |
"stdev": 0.0, | |
"p50": 7.24076220703125, | |
"p90": 7.24076220703125, | |
"p95": 7.24076220703125, | |
"p99": 7.24076220703125, | |
"values": [ | |
7.24076220703125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0297137829992506e-06, | |
"ram": 5.222512623150048e-07, | |
"gpu": 1.7191680420081124e-06, | |
"total": 3.2711330873223678e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1019.5968, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.4882703351974487, | |
"mean": 0.006510271135965983, | |
"stdev": 0.0003802313074808509, | |
"p50": 0.006617280006408691, | |
"p90": 0.006961888027191163, | |
"p95": 0.007023773002624511, | |
"p99": 0.007186634759902955, | |
"values": [ | |
0.007185311794281006, | |
0.00701308822631836, | |
0.007190400123596191, | |
0.007158495903015137, | |
0.006829184055328369, | |
0.006587776184082031, | |
0.006782400131225586, | |
0.006844287872314453, | |
0.006867104053497315, | |
0.006659904003143311, | |
0.006889247894287109, | |
0.006782591819763184, | |
0.006794911861419678, | |
0.007048704147338867, | |
0.006780640125274658, | |
0.006547232151031494, | |
0.0065660161972045895, | |
0.006538943767547607, | |
0.006948063850402832, | |
0.007008543968200684, | |
0.006868576049804688, | |
0.006874879837036133, | |
0.006597184181213379, | |
0.006831488132476807, | |
0.006746816158294678, | |
0.00668012809753418, | |
0.006669343948364258, | |
0.006669919967651367, | |
0.006626463890075683, | |
0.006662528038024903, | |
0.006703711986541748, | |
0.006630752086639404, | |
0.006907616138458252, | |
0.006776991844177246, | |
0.0068486080169677735, | |
0.006772511959075927, | |
0.006651519775390625, | |
0.0065450558662414554, | |
0.006429823875427246, | |
0.006914144039154053, | |
0.006586207866668701, | |
0.0066958718299865725, | |
0.0068336958885192875, | |
0.006971871852874756, | |
0.006971104145050049, | |
0.006617280006408691, | |
0.006360000133514405, | |
0.006303775787353516, | |
0.006299295902252197, | |
0.006272096157073975, | |
0.006237728118896484, | |
0.006282783985137939, | |
0.006208064079284668, | |
0.0060069761276245115, | |
0.005997471809387207, | |
0.0059847040176391605, | |
0.0060423040390014645, | |
0.006016895771026611, | |
0.005988575935363769, | |
0.005996736049652099, | |
0.006033184051513672, | |
0.006035583972930908, | |
0.006064991950988769, | |
0.006040351867675781, | |
0.006010528087615967, | |
0.00599507188796997, | |
0.00599510383605957, | |
0.005976287841796875, | |
0.005986112117767334, | |
0.005983200073242188, | |
0.006002528190612793, | |
0.006004799842834472, | |
0.006014688014984131, | |
0.006014976024627685, | |
0.006008575916290284 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 307.206867153505 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.6906465821796e-08, | |
"ram": 4.204639563227781e-08, | |
"gpu": 1.5705459894810602e-07, | |
"total": 2.7600746040217986e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7246180.944115539 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1035.50976, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.5154384961128234, | |
"mean": 0.006872513281504314, | |
"stdev": 0.0004030719726287557, | |
"p50": 0.0070258560180664065, | |
"p90": 0.007329561614990234, | |
"p95": 0.007368694448471069, | |
"p99": 0.0075414939689636236, | |
"values": [ | |
0.007392960071563721, | |
0.007365344047546386, | |
0.007510144233703614, | |
0.007376512050628662, | |
0.007063392162322998, | |
0.007209695816040039, | |
0.007157599925994873, | |
0.007099936008453369, | |
0.007259359836578369, | |
0.007143519878387451, | |
0.007165791988372802, | |
0.007071839809417725, | |
0.007048511981964111, | |
0.0070928001403808595, | |
0.0071188478469848635, | |
0.006896992206573486, | |
0.007289824008941651, | |
0.007630720138549805, | |
0.007332223892211914, | |
0.007223807811737061, | |
0.007245440006256104, | |
0.007213632106781006, | |
0.007131807804107666, | |
0.007090752124786377, | |
0.007154016017913818, | |
0.006872928142547608, | |
0.007005343914031983, | |
0.00718668794631958, | |
0.0070208959579467775, | |
0.007155744075775147, | |
0.0070258560180664065, | |
0.007130591869354248, | |
0.007235936164855957, | |
0.007273407936096191, | |
0.00724294376373291, | |
0.007130527973175049, | |
0.007325568199157715, | |
0.006903200149536133, | |
0.007025343894958496, | |
0.007237887859344482, | |
0.006825503826141358, | |
0.00717465591430664, | |
0.007354176044464112, | |
0.007362239837646485, | |
0.00721065616607666, | |
0.006726687908172608, | |
0.006663584232330323, | |
0.006678431987762451, | |
0.006649600028991699, | |
0.006635072231292724, | |
0.006612895965576172, | |
0.006560383796691894, | |
0.006309152126312256, | |
0.006299232006072998, | |
0.006340991973876953, | |
0.0063887038230896, | |
0.0063333439826965335, | |
0.006322591781616211, | |
0.006487008094787598, | |
0.006318880081176758, | |
0.00641270399093628, | |
0.006329984188079834, | |
0.006295455932617188, | |
0.00628707218170166, | |
0.006359712123870849, | |
0.006351967811584472, | |
0.006498784065246582, | |
0.006302944183349609, | |
0.006339072227478027, | |
0.006334239959716797, | |
0.006313183784484863, | |
0.006292799949645996, | |
0.00630841588973999, | |
0.00640172815322876, | |
0.006298304080963135 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 145.50717605613875 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.407334639720945e-08, | |
"ram": 4.0499876545947594e-08, | |
"gpu": 1.4833242454568963e-07, | |
"total": 2.6290564748884654e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3803645.9450435494 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.4809625897407531, | |
"mean": 0.006412834529876709, | |
"stdev": 0.0003423181281879423, | |
"p50": 0.0065484800338745115, | |
"p90": 0.006793830394744873, | |
"p95": 0.006846566486358643, | |
"p99": 0.007018741550445557, | |
"values": [ | |
0.006783999919891357, | |
0.00684441614151001, | |
0.006985727787017822, | |
0.006843423843383789, | |
0.00657919979095459, | |
0.006706175804138184, | |
0.006627327919006347, | |
0.006591487884521485, | |
0.006760447978973389, | |
0.006562816143035889, | |
0.006652927875518798, | |
0.0065679998397827144, | |
0.0065484800338745115, | |
0.006575104236602783, | |
0.0066119680404663084, | |
0.00640719985961914, | |
0.006800384044647217, | |
0.007112703800201416, | |
0.006817791938781738, | |
0.006689727783203125, | |
0.00672870397567749, | |
0.00667955207824707, | |
0.006609920024871826, | |
0.006593472003936768, | |
0.0066457920074462894, | |
0.006397952079772949, | |
0.006516736030578613, | |
0.006685696125030518, | |
0.00652185583114624, | |
0.006669312000274658, | |
0.006475776195526123, | |
0.006615039825439453, | |
0.006665215969085693, | |
0.006758399963378906, | |
0.006669312000274658, | |
0.006642687797546387, | |
0.0067717118263244626, | |
0.006437888145446777, | |
0.006555647850036621, | |
0.006760447978973389, | |
0.006418432235717773, | |
0.006690815925598144, | |
0.006851583957672119, | |
0.006851583957672119, | |
0.006752255916595459, | |
0.006335487842559814, | |
0.0062791681289672855, | |
0.0062904319763183595, | |
0.006200319766998291, | |
0.006252543926239014, | |
0.006230016231536865, | |
0.006174719810485839, | |
0.005934080123901367, | |
0.005924863815307617, | |
0.00591974401473999, | |
0.006004735946655273, | |
0.005955584049224853, | |
0.005947391986846923, | |
0.006109119892120362, | |
0.0059361281394958495, | |
0.006031360149383545, | |
0.005955584049224853, | |
0.00591974401473999, | |
0.005909503936767578, | |
0.005942272186279297, | |
0.005972991943359375, | |
0.006123519897460937, | |
0.005929984092712402, | |
0.005960703849792481, | |
0.005957695960998535, | |
0.0059361281394958495, | |
0.005913599967956543, | |
0.005933055877685547, | |
0.00602623987197876, | |
0.005920767784118652 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 155.93728410441702 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |