
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ebc448e
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-211.872.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.1", | |
"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": 791.26528, | |
"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.39173486328125, | |
"mean": 7.39173486328125, | |
"stdev": 0.0, | |
"p50": 7.39173486328125, | |
"p90": 7.39173486328125, | |
"p95": 7.39173486328125, | |
"p99": 7.39173486328125, | |
"values": [ | |
7.39173486328125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0323785381946968e-06, | |
"ram": 5.325475659688792e-07, | |
"gpu": 1.7213902659999562e-06, | |
"total": 3.286316370163532e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1213.345792, | |
"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.4882806406021119, | |
"mean": 0.00678167556391822, | |
"stdev": 0.00031486733050227174, | |
"p50": 0.006879631996154785, | |
"p90": 0.007111836862564087, | |
"p95": 0.007181587147712708, | |
"p99": 0.0073143064594268815, | |
"values": [ | |
0.007463168144226074, | |
0.007197216033935547, | |
0.007253503799438477, | |
0.007237887859344482, | |
0.007028992176055908, | |
0.006829567909240723, | |
0.006894688129425049, | |
0.007084735870361328, | |
0.007058047771453858, | |
0.006925375938415528, | |
0.007105472087860107, | |
0.007062399864196777, | |
0.007085984230041504, | |
0.006965504169464111, | |
0.006988287925720215, | |
0.0068759040832519535, | |
0.006806719779968262, | |
0.006988351821899414, | |
0.006897280216217041, | |
0.007056960105895996, | |
0.007099423885345459, | |
0.007096159934997559, | |
0.00692844820022583, | |
0.007112544059753418, | |
0.006998271942138672, | |
0.007052768230438233, | |
0.006878943920135498, | |
0.006927103996276856, | |
0.006856704235076904, | |
0.006923583984375, | |
0.006918144226074219, | |
0.006922207832336426, | |
0.007063456058502197, | |
0.0070991358757019046, | |
0.007142111778259277, | |
0.007015615940093994, | |
0.006826720237731934, | |
0.007061312198638916, | |
0.006860991954803467, | |
0.006712287902832031, | |
0.006772863864898682, | |
0.00641974401473999, | |
0.006880320072174072, | |
0.0070424962043762205, | |
0.007168799877166748, | |
0.0071541438102722165, | |
0.0066276159286499025, | |
0.006547200202941895, | |
0.006530528068542481, | |
0.006491199970245361, | |
0.0064143362045288085, | |
0.006385568141937256, | |
0.006443776130676269, | |
0.0063474240303039555, | |
0.006358719825744629, | |
0.006402400016784668, | |
0.006321887969970703, | |
0.006343679904937744, | |
0.00636678409576416, | |
0.006356607913970947, | |
0.0063842878341674805, | |
0.006354656219482422, | |
0.006412000179290772, | |
0.006378687858581543, | |
0.006412352085113525, | |
0.006427519798278809, | |
0.006392864227294922, | |
0.0063452482223510746, | |
0.006331391811370849, | |
0.006363103866577149, | |
0.0063907837867736815, | |
0.006409664154052735 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 294.9123680644593 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.955443245246282e-08, | |
"ram": 4.346449891738947e-08, | |
"gpu": 1.5415746859060299e-07, | |
"total": 2.771763999604553e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7215621.533021353 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1231.753216, | |
"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.5102495031356813, | |
"mean": 0.0070867986546622385, | |
"stdev": 0.0003224145663281046, | |
"p50": 0.007222959995269776, | |
"p90": 0.0074416447639465335, | |
"p95": 0.0074872080802917485, | |
"p99": 0.00759305006980896, | |
"values": [ | |
0.0076564159393310545, | |
0.007567168235778809, | |
0.007325407981872559, | |
0.007509471893310547, | |
0.007190911769866943, | |
0.007211808204650879, | |
0.007347904205322266, | |
0.007388991832733154, | |
0.007452960014343262, | |
0.007344255924224854, | |
0.0073846721649169925, | |
0.007400800228118896, | |
0.007276671886444092, | |
0.007401311874389648, | |
0.007361152172088623, | |
0.0071233601570129396, | |
0.007251711845397949, | |
0.007298592090606689, | |
0.007279871940612793, | |
0.007441823959350586, | |
0.00740390396118164, | |
0.0074000959396362306, | |
0.007337344169616699, | |
0.007414847850799561, | |
0.007389984130859375, | |
0.0071363520622253415, | |
0.007246719837188721, | |
0.007459936141967774, | |
0.007197760105133057, | |
0.007291711807250976, | |
0.0072392959594726565, | |
0.007250624179840088, | |
0.007468992233276367, | |
0.007405439853668213, | |
0.007420159816741943, | |
0.007282400131225586, | |
0.0073003840446472165, | |
0.0071051521301269535, | |
0.0069250879287719724, | |
0.007252223968505859, | |
0.006771135807037354, | |
0.006699264049530029, | |
0.0072341117858886715, | |
0.007440032005310059, | |
0.007517119884490967, | |
0.006966464042663574, | |
0.006798463821411133, | |
0.006893760204315186, | |
0.006932735919952393, | |
0.006867936134338379, | |
0.006625343799591064, | |
0.006695487976074219, | |
0.006684639930725098, | |
0.006749983787536621, | |
0.006629280090332031, | |
0.006655263900756836, | |
0.006661087989807129, | |
0.00669977617263794, | |
0.006640927791595459, | |
0.006664159774780273, | |
0.006791071891784668, | |
0.006685887813568115, | |
0.006642911911010742, | |
0.006658559799194336, | |
0.006707871913909912, | |
0.006685984134674072, | |
0.00664134407043457, | |
0.006650847911834717, | |
0.006690336227416992, | |
0.006706528186798096, | |
0.006738399982452393, | |
0.006679103851318359 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.10743774865446 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.494221792632466e-08, | |
"ram": 4.1008622558711825e-08, | |
"gpu": 1.4077061727952712e-07, | |
"total": 2.5672145776456357e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3895272.365261688 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4764394888877869, | |
"mean": 0.0066172151234414845, | |
"stdev": 0.0002610587645754095, | |
"p50": 0.0067292799949646, | |
"p90": 0.006906675100326538, | |
"p95": 0.006946355295181275, | |
"p99": 0.007048447589874268, | |
"values": [ | |
0.007083936214447022, | |
0.007033952236175537, | |
0.006810624122619629, | |
0.006957056045532227, | |
0.006722559928894043, | |
0.006705056190490723, | |
0.006808576107025147, | |
0.006860799789428711, | |
0.006937600135803222, | |
0.006823935985565186, | |
0.006850560188293457, | |
0.006865920066833496, | |
0.006773759841918945, | |
0.006865920066833496, | |
0.0068392958641052244, | |
0.006614016056060791, | |
0.006743040084838867, | |
0.0067717118263244626, | |
0.006754271984100342, | |
0.006896639823913574, | |
0.0068392958641052244, | |
0.006906879901885986, | |
0.006810624122619629, | |
0.006904831886291504, | |
0.006863872051239014, | |
0.006632448196411133, | |
0.006744063854217529, | |
0.006920191764831543, | |
0.006703104019165039, | |
0.006778848171234131, | |
0.006739136219024658, | |
0.006736000061035156, | |
0.006897664070129395, | |
0.00687820816040039, | |
0.006896639823913574, | |
0.006774752140045166, | |
0.006744063854217529, | |
0.006634431838989258, | |
0.006497280120849609, | |
0.006740992069244385, | |
0.0063539199829101565, | |
0.0062975997924804685, | |
0.006745984077453613, | |
0.006933504104614257, | |
0.006980607986450196, | |
0.00653107213973999, | |
0.006402048110961914, | |
0.006492159843444824, | |
0.006527999877929688, | |
0.006466559886932373, | |
0.006242271900177002, | |
0.006278143882751465, | |
0.006281216144561768, | |
0.0063569917678833006, | |
0.006247424125671387, | |
0.006260735988616943, | |
0.006277120113372803, | |
0.0063170561790466305, | |
0.006238207817077636, | |
0.006262911796569824, | |
0.006390687942504883, | |
0.006302688121795654, | |
0.0062576642036437985, | |
0.006275072097778321, | |
0.006325247764587402, | |
0.006304768085479737, | |
0.006237152099609375, | |
0.0062494721412658695, | |
0.0062986879348754885, | |
0.006305791854858398, | |
0.006346752166748047, | |
0.006289408206939697 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 151.1209748127275 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |