
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d7d8591
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu124", | |
"_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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-212.873.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 792.285184, | |
"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.436859375, | |
"mean": 7.436859375, | |
"stdev": 0.0, | |
"p50": 7.436859375, | |
"p90": 7.436859375, | |
"p95": 7.436859375, | |
"p99": 7.436859375, | |
"values": [ | |
7.436859375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0176097055557184e-06, | |
"ram": 5.227645665372101e-07, | |
"gpu": 1.775834753999948e-06, | |
"total": 3.3162090260928763e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1214.377984, | |
"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.4884998078346253, | |
"mean": 0.0067847195532586835, | |
"stdev": 0.0002620241858027986, | |
"p50": 0.0068559360504150384, | |
"p90": 0.00708528299331665, | |
"p95": 0.007115097522735595, | |
"p99": 0.007232407741546632, | |
"values": [ | |
0.007416575908660889, | |
0.007005887985229492, | |
0.007133120059967041, | |
0.006900320053100586, | |
0.007027647972106934, | |
0.006783616065979004, | |
0.006889056205749511, | |
0.007070655822753906, | |
0.007051904201507569, | |
0.00715718412399292, | |
0.007042111873626709, | |
0.007055583953857422, | |
0.0070865597724914554, | |
0.00688431978225708, | |
0.0070373439788818356, | |
0.006845088005065918, | |
0.006966303825378418, | |
0.006855167865753174, | |
0.00690886402130127, | |
0.006978975772857666, | |
0.007073791980743408, | |
0.00700758409500122, | |
0.006819712162017822, | |
0.007090367794036865, | |
0.006917503833770752, | |
0.006948607921600342, | |
0.006799744129180908, | |
0.006897183895111084, | |
0.006791967868804932, | |
0.006879648208618164, | |
0.006890560150146484, | |
0.006856704235076904, | |
0.007087711811065674, | |
0.007100351810455322, | |
0.007140096187591553, | |
0.007008319854736328, | |
0.006766784191131592, | |
0.007001696109771728, | |
0.006746784210205078, | |
0.006733280181884765, | |
0.006619967937469482, | |
0.006405407905578613, | |
0.006587103843688965, | |
0.006902976036071777, | |
0.006974976062774658, | |
0.006880864143371582, | |
0.006767072200775146, | |
0.006739808082580566, | |
0.006860671997070312, | |
0.006577248096466064, | |
0.006574143886566162, | |
0.006552768230438232, | |
0.006516255855560303, | |
0.00669484806060791, | |
0.006683616161346435, | |
0.006516064167022705, | |
0.006554912090301514, | |
0.006558911800384521, | |
0.006532735824584961, | |
0.006524127960205078, | |
0.0064869441986083985, | |
0.006343167781829834, | |
0.006360095977783203, | |
0.0063638720512390135, | |
0.006311232089996338, | |
0.006324512004852295, | |
0.0063833918571472165, | |
0.006311071872711182, | |
0.006346015930175781, | |
0.0068897600173950194, | |
0.006419487953186035, | |
0.006281087875366211 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 294.7800545476349 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.905770745370478e-08, | |
"ram": 4.31493517024398e-08, | |
"gpu": 1.5350567835999776e-07, | |
"total": 2.7571273751614233e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7253926.742803838 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1232.785408, | |
"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.5109558410644531, | |
"mean": 0.00709660890367296, | |
"stdev": 0.00028627612047045205, | |
"p50": 0.007167536020278931, | |
"p90": 0.00737567024230957, | |
"p95": 0.0074333744525909426, | |
"p99": 0.007725501041412354, | |
"values": [ | |
0.007342751979827881, | |
0.007374720096588135, | |
0.007324416160583496, | |
0.007348639965057373, | |
0.007129312038421631, | |
0.007217440128326416, | |
0.007338272094726562, | |
0.0073465280532836914, | |
0.007541152000427246, | |
0.007232704162597656, | |
0.007372000217437744, | |
0.0073137922286987305, | |
0.007330016136169433, | |
0.00739631986618042, | |
0.0072689599990844725, | |
0.007059232234954834, | |
0.007167136192321778, | |
0.007197216033935547, | |
0.007414783954620361, | |
0.007360576152801513, | |
0.007345664024353027, | |
0.007456096172332763, | |
0.00727126407623291, | |
0.007274720191955566, | |
0.007371103763580323, | |
0.007202623844146728, | |
0.00737667179107666, | |
0.007370431900024414, | |
0.007139711856842041, | |
0.007196000099182129, | |
0.007175456047058106, | |
0.007357120037078857, | |
0.007375775814056396, | |
0.007731840133666992, | |
0.007351295948028564, | |
0.007253215789794922, | |
0.007248447895050049, | |
0.007033599853515625, | |
0.006842656135559082, | |
0.0071346559524536135, | |
0.006665952205657959, | |
0.006633120059967041, | |
0.007167935848236084, | |
0.007145696163177491, | |
0.007722911834716797, | |
0.007198495864868164, | |
0.006974592208862305, | |
0.00712278413772583, | |
0.00689299201965332, | |
0.0069213762283325195, | |
0.00684611177444458, | |
0.006845600128173828, | |
0.0068249602317810056, | |
0.006816895961761474, | |
0.006831295967102051, | |
0.006807936191558838, | |
0.006799839973449707, | |
0.006843423843383789, | |
0.006812704086303711, | |
0.006814015865325928, | |
0.006806464195251465, | |
0.007007423877716064, | |
0.006613855838775635, | |
0.00667087984085083, | |
0.006605728149414063, | |
0.0065842242240905765, | |
0.0066085438728332516, | |
0.00664134407043457, | |
0.006988927841186523, | |
0.0068534078598022465, | |
0.006679391860961914, | |
0.006622687816619873 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 140.91237287747876 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.472450014008737e-08, | |
"ram": 4.093313628639126e-08, | |
"gpu": 1.4534376706857492e-07, | |
"total": 2.6100140349505346e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3831397.0216598934 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4773618230819703, | |
"mean": 0.006630025320582919, | |
"stdev": 0.00023173705264020606, | |
"p50": 0.006689280033111572, | |
"p90": 0.006864511775970459, | |
"p95": 0.006914374399185181, | |
"p99": 0.0071169719791412366, | |
"values": [ | |
0.0068321280479431154, | |
0.0068607678413391115, | |
0.006811647891998291, | |
0.006825984001159668, | |
0.006639520168304444, | |
0.006708223819732666, | |
0.006796288013458252, | |
0.006818816184997558, | |
0.0070236802101135256, | |
0.006702079772949219, | |
0.0068392958641052244, | |
0.0067758078575134275, | |
0.006799456119537354, | |
0.00687820816040039, | |
0.006761504173278809, | |
0.006569983959197998, | |
0.006654975891113281, | |
0.006689824104309082, | |
0.006884479999542236, | |
0.006840320110321045, | |
0.006822912216186523, | |
0.00695091199874878, | |
0.006754303932189941, | |
0.006767615795135498, | |
0.00684441614151001, | |
0.006703104019165039, | |
0.006880159854888916, | |
0.006864927768707276, | |
0.006631552219390869, | |
0.006688767910003662, | |
0.006660096168518067, | |
0.00683622407913208, | |
0.006850560188293457, | |
0.007197696208953858, | |
0.006845439910888672, | |
0.006758336067199707, | |
0.006739967823028564, | |
0.006568960189819336, | |
0.006426623821258545, | |
0.006643551826477051, | |
0.006278143882751465, | |
0.006244351863861084, | |
0.006690752029418945, | |
0.006689792156219483, | |
0.007084000110626221, | |
0.006779903888702392, | |
0.0065177597999572755, | |
0.006690815925598144, | |
0.006488031864166259, | |
0.006534143924713135, | |
0.006445055961608887, | |
0.006407167911529541, | |
0.006435840129852295, | |
0.006406144142150879, | |
0.00643891191482544, | |
0.006416287899017334, | |
0.0064019842147827145, | |
0.0064471039772033695, | |
0.006415328025817871, | |
0.006408127784729004, | |
0.0064143362045288085, | |
0.006619135856628418, | |
0.00623308801651001, | |
0.00626691198348999, | |
0.0062267518043518065, | |
0.006206463813781738, | |
0.006203392028808594, | |
0.006232063770294189, | |
0.006588543891906738, | |
0.006467584133148193, | |
0.006299647808074951, | |
0.006235136032104492 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.8289865644252 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |