
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d93655c
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.068608, | |
"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.1659111328125, | |
"mean": 7.1659111328125, | |
"stdev": 0.0, | |
"p50": 7.1659111328125, | |
"p90": 7.1659111328125, | |
"p95": 7.1659111328125, | |
"p99": 7.1659111328125, | |
"values": [ | |
7.1659111328125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.697164098421734e-07, | |
"ram": 5.15767358023235e-07, | |
"gpu": 1.771668083999818e-06, | |
"total": 3.2571518518652266e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1026.482176, | |
"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.49137718486785903, | |
"mean": 0.006551695798238119, | |
"stdev": 0.00036254349051518864, | |
"p50": 0.006589183807373047, | |
"p90": 0.006990553379058838, | |
"p95": 0.0071898431301116944, | |
"p99": 0.00729871096611023, | |
"values": [ | |
0.0071469759941101075, | |
0.006955296039581299, | |
0.00674179220199585, | |
0.006759327888488769, | |
0.006664351940155029, | |
0.006506559848785401, | |
0.006773568153381347, | |
0.006800127983093262, | |
0.006829023838043213, | |
0.006589183807373047, | |
0.006853504180908203, | |
0.006785888195037842, | |
0.00669817590713501, | |
0.006783103942871094, | |
0.006855648040771484, | |
0.006572224140167236, | |
0.006643936157226562, | |
0.0065807681083679195, | |
0.006823520183563233, | |
0.007180223941802979, | |
0.007212287902832031, | |
0.007258175849914551, | |
0.007414080142974853, | |
0.007146143913269043, | |
0.006725312232971192, | |
0.006574336051940918, | |
0.0065996479988098145, | |
0.006545472145080567, | |
0.006726975917816162, | |
0.006988959789276123, | |
0.006991615772247314, | |
0.006928063869476318, | |
0.006823008060455322, | |
0.006842591762542725, | |
0.006712831974029541, | |
0.006667647838592529, | |
0.006553952217102051, | |
0.006310143947601318, | |
0.006650047779083252, | |
0.006380832195281983, | |
0.006416255950927734, | |
0.0068288640975952145, | |
0.006800320148468018, | |
0.007217343807220459, | |
0.006681536197662354, | |
0.006696415901184082, | |
0.006662655830383301, | |
0.00656057596206665, | |
0.006551263809204101, | |
0.006120704174041748, | |
0.006122911930084228, | |
0.006135968208312989, | |
0.006095136165618896, | |
0.006099264144897461, | |
0.0061528639793396, | |
0.00612611198425293, | |
0.006127359867095947, | |
0.006076000213623047, | |
0.006139552116394043, | |
0.006160448074340821, | |
0.006170400142669678, | |
0.0061129918098449705, | |
0.006091968059539795, | |
0.0062733120918273926, | |
0.0060854401588439945, | |
0.006141727924346924, | |
0.006095744132995605, | |
0.006138720035552978, | |
0.0060936322212219235, | |
0.0060804481506347655, | |
0.006103295803070069, | |
0.00628166389465332, | |
0.006118207931518555, | |
0.006123744010925293, | |
0.006099008083343506 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 305.2644783260297 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.597953608419064e-08, | |
"ram": 4.143937359366844e-08, | |
"gpu": 1.513200078216584e-07, | |
"total": 2.6873891749951746e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7442167.359342702 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1041.854464, | |
"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.5168531517982483, | |
"mean": 0.0068913753573099775, | |
"stdev": 0.0003805026959913591, | |
"p50": 0.006998239994049072, | |
"p90": 0.007374751949310303, | |
"p95": 0.007518534278869628, | |
"p99": 0.007607754364013672, | |
"values": [ | |
0.0073125438690185545, | |
0.00711356782913208, | |
0.007028128147125244, | |
0.007125247955322265, | |
0.0068558077812194826, | |
0.00701251220703125, | |
0.007130176067352295, | |
0.007074944019317627, | |
0.007118752002716064, | |
0.007123744010925293, | |
0.007090240001678467, | |
0.007043295860290527, | |
0.007042623996734619, | |
0.007060863971710205, | |
0.006998239994049072, | |
0.006883615970611572, | |
0.006966752052307129, | |
0.00717139196395874, | |
0.007476384162902832, | |
0.00759443187713623, | |
0.007593887805938721, | |
0.007486239910125732, | |
0.007636928081512452, | |
0.007462656021118164, | |
0.006959167957305909, | |
0.007017024040222168, | |
0.007123487949371338, | |
0.007093696117401123, | |
0.007368991851806641, | |
0.007378592014312744, | |
0.007597504138946533, | |
0.007197343826293946, | |
0.007183968067169189, | |
0.007147808074951172, | |
0.007279903888702393, | |
0.007119775772094727, | |
0.00690499210357666, | |
0.006715040206909179, | |
0.0066877121925354, | |
0.006405216217041015, | |
0.007022336006164551, | |
0.0071519680023193356, | |
0.0073259520530700685, | |
0.007203936100006103, | |
0.007011263847351074, | |
0.006987423896789551, | |
0.007169792175292969, | |
0.006996575832366943, | |
0.0068578882217407225, | |
0.006422239780426026, | |
0.006400767803192139, | |
0.0064000959396362305, | |
0.006409567832946777, | |
0.006463808059692383, | |
0.006510496139526367, | |
0.006441823959350586, | |
0.006426464080810547, | |
0.006425600051879882, | |
0.006411104202270508, | |
0.006477344036102295, | |
0.0065136637687683106, | |
0.006436223983764648, | |
0.0064787201881408695, | |
0.006485343933105469, | |
0.006394303798675537, | |
0.006422624111175537, | |
0.006421760082244873, | |
0.006504896163940429, | |
0.006457119941711426, | |
0.0064223999977111815, | |
0.006473599910736084, | |
0.0063714241981506345, | |
0.006389599800109863, | |
0.006520639896392822, | |
0.006461184024810791 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 145.1089148611325 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.159929752264445e-08, | |
"ram": 3.922167336752221e-08, | |
"gpu": 1.7620425968450106e-07, | |
"total": 2.870252305746677e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3484014.2728841277 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.4831112308502197, | |
"mean": 0.00644148307800293, | |
"stdev": 0.0003261085709241899, | |
"p50": 0.006515711784362793, | |
"p90": 0.006864691257476807, | |
"p95": 0.007000348663330078, | |
"p99": 0.007069081659317016, | |
"values": [ | |
0.006745151996612549, | |
0.006621183872222901, | |
0.006510591983795166, | |
0.006628352165222168, | |
0.006397952079772949, | |
0.00652185583114624, | |
0.0066078720092773435, | |
0.006575104236602783, | |
0.0066304001808166506, | |
0.0066119680404663084, | |
0.0065781760215759275, | |
0.0065382399559021, | |
0.006546432018280029, | |
0.006563839912414551, | |
0.00653107213973999, | |
0.0064133119583129885, | |
0.0064778242111206055, | |
0.006661087989807129, | |
0.006948863983154297, | |
0.007029759883880615, | |
0.007058432102203369, | |
0.0069877438545227055, | |
0.00709939193725586, | |
0.006958079814910889, | |
0.006503424167633057, | |
0.006511616230010986, | |
0.006619135856628418, | |
0.006601727962493896, | |
0.006859776020050049, | |
0.006867968082427979, | |
0.007058432102203369, | |
0.006694911956787109, | |
0.006684671878814697, | |
0.006616064071655273, | |
0.006803455829620361, | |
0.0066375679969787596, | |
0.006449151992797852, | |
0.006253568172454834, | |
0.0062873601913452145, | |
0.006015999794006348, | |
0.006594624042510986, | |
0.006680575847625733, | |
0.006813695907592773, | |
0.006766592025756836, | |
0.006576128005981445, | |
0.006515711784362793, | |
0.006763519763946534, | |
0.006594560146331787, | |
0.006457344055175781, | |
0.006048768043518066, | |
0.0060282878875732426, | |
0.006015999794006348, | |
0.00601804780960083, | |
0.006085631847381592, | |
0.006128640174865723, | |
0.0060661759376525876, | |
0.00605401611328125, | |
0.006046720027923584, | |
0.006032383918762207, | |
0.006097919940948486, | |
0.006107135772705078, | |
0.006056960105895996, | |
0.006100992202758789, | |
0.00610211181640625, | |
0.006021120071411133, | |
0.006042623996734619, | |
0.006042623996734619, | |
0.006111231803894043, | |
0.006079487800598145, | |
0.006044672012329101, | |
0.006089759826660156, | |
0.006001664161682129, | |
0.006017024040222168, | |
0.00611737585067749, | |
0.00608358383178711 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 155.24375177121985 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |