
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6e4a1d7
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": 720.113664, | |
"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.1594853515625, | |
"mean": 7.1594853515625, | |
"stdev": 0.0, | |
"p50": 7.1594853515625, | |
"p90": 7.1594853515625, | |
"p95": 7.1594853515625, | |
"p99": 7.1594853515625, | |
"values": [ | |
7.1594853515625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.808202584584555e-07, | |
"ram": 5.211821817358478e-07, | |
"gpu": 1.565556807999911e-06, | |
"total": 3.067559248194214e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1023.864832, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.48645753526687613, | |
"mean": 0.006400757042985213, | |
"stdev": 0.0002683239373400123, | |
"p50": 0.00631388807296753, | |
"p90": 0.0065567679405212406, | |
"p95": 0.006616639971733093, | |
"p99": 0.007698287844657897, | |
"values": [ | |
0.00756825590133667, | |
0.008088383674621582, | |
0.006437312126159668, | |
0.0063268160820007325, | |
0.006490943908691406, | |
0.006312960147857666, | |
0.0063201279640197755, | |
0.006318463802337647, | |
0.00631712007522583, | |
0.006492512226104736, | |
0.006322688102722168, | |
0.006317471981048584, | |
0.006281951904296875, | |
0.006320831775665284, | |
0.006520703792572021, | |
0.006391551971435547, | |
0.006589695930480957, | |
0.0063062400817871095, | |
0.006279967784881592, | |
0.006281184196472168, | |
0.006380703926086426, | |
0.006607615947723388, | |
0.0065485119819641115, | |
0.0063211841583251955, | |
0.0065149121284484865, | |
0.006475999832153321, | |
0.0062772479057312015, | |
0.006300511837005615, | |
0.006286880016326904, | |
0.006277984142303467, | |
0.006279200077056885, | |
0.006343520164489746, | |
0.006441088199615479, | |
0.006427328109741211, | |
0.0063218560218811035, | |
0.006288544178009033, | |
0.006275392055511474, | |
0.006272863864898681, | |
0.00628329610824585, | |
0.006295936107635498, | |
0.006296864032745361, | |
0.006279200077056885, | |
0.006318943977355957, | |
0.006294528007507324, | |
0.006272704124450684, | |
0.006271935939788818, | |
0.006304351806640625, | |
0.006216447830200195, | |
0.006379615783691406, | |
0.0063814082145690915, | |
0.006502912044525146, | |
0.006555967807769776, | |
0.006443136215209961, | |
0.006285727977752686, | |
0.006265503883361816, | |
0.006271008014678955, | |
0.006267327785491944, | |
0.006278016090393066, | |
0.006298431873321533, | |
0.006255871772766113, | |
0.0062568001747131344, | |
0.006301407814025879, | |
0.006972832202911377, | |
0.006557568073272705, | |
0.006269375801086426, | |
0.006291359901428223, | |
0.006305503845214844, | |
0.006314815998077393, | |
0.006278656005859375, | |
0.006360767841339111, | |
0.006567776203155518, | |
0.006643712043762207, | |
0.006510496139526367, | |
0.006308671951293946, | |
0.006299071788787842, | |
0.006273056030273437 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 312.46303938248394 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.81851379494918e-08, | |
"ram": 4.267834505353644e-08, | |
"gpu": 1.4497453118421061e-07, | |
"total": 2.6583801418723886e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7523378.498423973 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1040.048128, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.5135290551185607, | |
"mean": 0.0067569612515600095, | |
"stdev": 0.00018736501027367155, | |
"p50": 0.006671871900558472, | |
"p90": 0.006940847873687744, | |
"p95": 0.00702184796333313, | |
"p99": 0.0075492321252822875, | |
"values": [ | |
0.007799456119537354, | |
0.007040639877319336, | |
0.006692063808441162, | |
0.006637631893157959, | |
0.006687456130981445, | |
0.006788224220275879, | |
0.006678207874298096, | |
0.006656000137329102, | |
0.007015583992004394, | |
0.006859936237335205, | |
0.006667295932769776, | |
0.006664095878601074, | |
0.006667520046234131, | |
0.006664447784423828, | |
0.00684335994720459, | |
0.006756447792053223, | |
0.006848735809326172, | |
0.006646495819091797, | |
0.006643040180206299, | |
0.006637919902801514, | |
0.007010752201080322, | |
0.006982624053955078, | |
0.006792928218841553, | |
0.006906879901885986, | |
0.0068635201454162595, | |
0.006667391777038574, | |
0.006743743896484375, | |
0.006662752151489258, | |
0.006669568061828613, | |
0.006804543972015381, | |
0.006665215969085693, | |
0.006829279899597168, | |
0.0066670398712158204, | |
0.006974815845489502, | |
0.00674403190612793, | |
0.006655231952667236, | |
0.006673535823822021, | |
0.006663072109222412, | |
0.006643360137939453, | |
0.006657983779907227, | |
0.006647488117218017, | |
0.006622687816619873, | |
0.006620831966400146, | |
0.006651519775390625, | |
0.006636735916137696, | |
0.006626175880432129, | |
0.00662227201461792, | |
0.007102399826049805, | |
0.006758336067199707, | |
0.0068074240684509275, | |
0.0068137598037719726, | |
0.006871263980865478, | |
0.006651584148406982, | |
0.006614143848419189, | |
0.006636096000671387, | |
0.006646944046020508, | |
0.006640960216522216, | |
0.006638175964355468, | |
0.006650496006011963, | |
0.006628704071044922, | |
0.006798111915588379, | |
0.006617472171783447, | |
0.006902272224426269, | |
0.006853312015533447, | |
0.0066212158203125, | |
0.006670207977294922, | |
0.00670684814453125, | |
0.006654208183288574, | |
0.006684735774993896, | |
0.0067199358940124515, | |
0.007465824127197266, | |
0.006878015995025635, | |
0.0068278398513793945, | |
0.006738592147827149, | |
0.006644832134246826, | |
0.006684800148010254 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 147.99552088139112 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.456276822186674e-08, | |
"ram": 4.0836479831831366e-08, | |
"gpu": 1.4122227896963622e-07, | |
"total": 2.5662152702333445e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3896789.219514973 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.482674593448639, | |
"mean": 0.006350981492745249, | |
"stdev": 0.00016994190464608702, | |
"p50": 0.006277120113372803, | |
"p90": 0.006491647958755493, | |
"p95": 0.006617088079452514, | |
"p99": 0.0070904319286346435, | |
"values": [ | |
0.0072540159225463864, | |
0.006626304149627686, | |
0.006293439865112304, | |
0.006246399879455566, | |
0.006273024082183838, | |
0.006387712001800537, | |
0.006277120113372803, | |
0.006266816139221192, | |
0.006614016056060791, | |
0.006455296039581298, | |
0.006273024082183838, | |
0.006253568172454834, | |
0.006280191898345947, | |
0.006266880035400391, | |
0.0064471039772033695, | |
0.006360064029693604, | |
0.006441984176635742, | |
0.00624128007888794, | |
0.006235136032104492, | |
0.006246399879455566, | |
0.0064849920272827145, | |
0.006543360233306885, | |
0.006393856048583985, | |
0.006471680164337158, | |
0.0064471039772033695, | |
0.006277120113372803, | |
0.006341631889343262, | |
0.006273024082183838, | |
0.006277120113372803, | |
0.006412288188934326, | |
0.0062576642036437985, | |
0.006411263942718506, | |
0.006273024082183838, | |
0.006555647850036621, | |
0.006342656135559082, | |
0.006245376110076905, | |
0.006273024082183838, | |
0.006251520156860352, | |
0.006244351863861084, | |
0.006248447895050049, | |
0.0062566399574279785, | |
0.0062341117858886715, | |
0.006227968215942382, | |
0.006238175868988037, | |
0.006246399879455566, | |
0.006236159801483154, | |
0.006236159801483154, | |
0.0066641921997070315, | |
0.00636518383026123, | |
0.006411263942718506, | |
0.0064174079895019534, | |
0.006471680164337158, | |
0.006254591941833496, | |
0.006223872184753418, | |
0.00622489595413208, | |
0.0062576642036437985, | |
0.006236159801483154, | |
0.006246399879455566, | |
0.006235136032104492, | |
0.006240255832672119, | |
0.006397952079772949, | |
0.006227968215942382, | |
0.006498303890228272, | |
0.00643993616104126, | |
0.006231040000915527, | |
0.006253568172454834, | |
0.006311935901641846, | |
0.006255616188049316, | |
0.0062863359451293946, | |
0.006308864116668702, | |
0.007035903930664063, | |
0.0064430079460144046, | |
0.0064328317642211915, | |
0.006338560104370118, | |
0.006244351863861084, | |
0.0062791681289672855 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 157.45597765358062 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |