
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
224887d
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": 791.195648, | |
"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.44074951171875, | |
"mean": 7.44074951171875, | |
"stdev": 0.0, | |
"p50": 7.44074951171875, | |
"p90": 7.44074951171875, | |
"p95": 7.44074951171875, | |
"p99": 7.44074951171875, | |
"values": [ | |
7.44074951171875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.981843131945095e-07, | |
"ram": 5.311396270540548e-07, | |
"gpu": 1.6850013480000214e-06, | |
"total": 3.2143252882485857e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1217.343488, | |
"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.49213408279418946, | |
"mean": 0.006835195594363743, | |
"stdev": 0.0004216449223675453, | |
"p50": 0.006901040077209472, | |
"p90": 0.007214864158630371, | |
"p95": 0.007303412914276123, | |
"p99": 0.008413398246765137, | |
"values": [ | |
0.007527743816375733, | |
0.007238848209381104, | |
0.00722544002532959, | |
0.0073005762100219725, | |
0.00712713623046875, | |
0.006864480018615723, | |
0.006998271942138672, | |
0.007152095794677734, | |
0.007174047946929931, | |
0.006935776233673096, | |
0.00712505578994751, | |
0.00712656021118164, | |
0.0070709438323974605, | |
0.006959904193878174, | |
0.007052768230438233, | |
0.0068848319053649906, | |
0.007011136054992676, | |
0.00705292797088623, | |
0.006950975894927979, | |
0.007106336116790771, | |
0.007069375991821289, | |
0.00699724817276001, | |
0.007087552070617676, | |
0.007067584037780762, | |
0.0070767998695373535, | |
0.006900928020477295, | |
0.006982336044311524, | |
0.007217120170593261, | |
0.0069023361206054686, | |
0.006893504142761231, | |
0.00694649600982666, | |
0.006925600051879883, | |
0.007090079784393311, | |
0.007194560050964355, | |
0.007006432056427002, | |
0.00690115213394165, | |
0.007007487773895264, | |
0.006847360134124756, | |
0.00662716817855835, | |
0.00672495985031128, | |
0.006479904174804687, | |
0.0065865921974182125, | |
0.007306879997253418, | |
0.00840169620513916, | |
0.008442048072814942, | |
0.006843167781829834, | |
0.006670432090759277, | |
0.006501311779022217, | |
0.006435264110565186, | |
0.006454880237579346, | |
0.006311295986175537, | |
0.006386079788208008, | |
0.006455935955047607, | |
0.0064397120475769044, | |
0.006390848159790039, | |
0.006405600070953369, | |
0.006404704093933106, | |
0.006332799911499023, | |
0.006286975860595703, | |
0.006429056167602539, | |
0.006416416168212891, | |
0.0064423360824584965, | |
0.006437568187713623, | |
0.00643609619140625, | |
0.006372767925262451, | |
0.0064299840927124026, | |
0.0064362878799438476, | |
0.00636518383026123, | |
0.006325632095336914, | |
0.0063991999626159665, | |
0.006360544204711914, | |
0.006394944190979004 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 292.60318485241106 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.072969934334718e-08, | |
"ram": 4.413858616992879e-08, | |
"gpu": 1.5894003644897886e-07, | |
"total": 2.8380832196225483e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7047009.70772094 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1236.021248, | |
"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.5167721271514892, | |
"mean": 0.007177390654881797, | |
"stdev": 0.0004372247467575449, | |
"p50": 0.007284096002578735, | |
"p90": 0.007570182609558105, | |
"p95": 0.00761570405960083, | |
"p99": 0.008725791358947755, | |
"values": [ | |
0.007531744003295898, | |
0.007618080139160157, | |
0.007558976173400879, | |
0.007613759994506836, | |
0.007302624225616455, | |
0.0073825597763061525, | |
0.007525568008422852, | |
0.007571392059326172, | |
0.007560160160064697, | |
0.007430496215820312, | |
0.007402847766876221, | |
0.007529823780059814, | |
0.007295807838439941, | |
0.007336063861846924, | |
0.007390880107879639, | |
0.007229440212249756, | |
0.007571296215057373, | |
0.007398687839508057, | |
0.007346848011016846, | |
0.007453760147094726, | |
0.007456575870513916, | |
0.007420256137847901, | |
0.007512671947479248, | |
0.007418623924255371, | |
0.007341023921966553, | |
0.007351615905761719, | |
0.007466464042663574, | |
0.0073166718482971195, | |
0.007234687805175781, | |
0.007272384166717529, | |
0.007374559879302979, | |
0.007465439796447754, | |
0.007485663890838623, | |
0.007470143795013428, | |
0.007578656196594238, | |
0.0074217281341552735, | |
0.007157983779907226, | |
0.0068930239677429195, | |
0.007102528095245361, | |
0.0068849921226501465, | |
0.006915872097015381, | |
0.0069777917861938476, | |
0.008651904106140137, | |
0.00890668773651123, | |
0.007647840023040772, | |
0.006993311882019043, | |
0.006854591846466064, | |
0.006849728107452393, | |
0.006752831935882568, | |
0.006719679832458496, | |
0.006663904190063476, | |
0.006674015998840332, | |
0.006741055965423584, | |
0.006746687889099121, | |
0.006780896186828613, | |
0.006771647930145263, | |
0.0067478399276733395, | |
0.0066509442329406735, | |
0.00665334415435791, | |
0.006720863819122315, | |
0.006857183933258057, | |
0.006767168045043946, | |
0.006745535850524903, | |
0.0067916159629821775, | |
0.00674780797958374, | |
0.006729311943054199, | |
0.006674367904663086, | |
0.006687551975250244, | |
0.00672870397567749, | |
0.006672800064086914, | |
0.006618080139160157, | |
0.006654047966003418 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.32639981353626 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.608774432441992e-08, | |
"ram": 4.159888080340158e-08, | |
"gpu": 1.4693740123523229e-07, | |
"total": 2.646240263630538e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3778946.3554909374 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.482903455734253, | |
"mean": 0.006706992440753513, | |
"stdev": 0.0003782884859729448, | |
"p50": 0.006772224187850952, | |
"p90": 0.007035596752166748, | |
"p95": 0.007073382401466369, | |
"p99": 0.008141782970428469, | |
"values": [ | |
0.007002111911773682, | |
0.007032832145690918, | |
0.007035903930664063, | |
0.0070891518592834475, | |
0.006783040046691895, | |
0.006866943836212158, | |
0.006985727787017822, | |
0.007032832145690918, | |
0.007049344062805176, | |
0.00690176010131836, | |
0.006848512172698974, | |
0.006996992111206054, | |
0.006782976150512696, | |
0.006803455829620361, | |
0.006884352207183838, | |
0.00672870397567749, | |
0.007044095993041993, | |
0.006876160144805908, | |
0.0068321280479431154, | |
0.00693452787399292, | |
0.006910975933074951, | |
0.006919167995452881, | |
0.006986752033233643, | |
0.006880256175994873, | |
0.006850560188293457, | |
0.006840320110321045, | |
0.0069253120422363285, | |
0.006833151817321777, | |
0.006717440128326416, | |
0.006761472225189209, | |
0.0068321280479431154, | |
0.0069324798583984375, | |
0.006954016208648682, | |
0.0069253120422363285, | |
0.007060480117797851, | |
0.006866943836212158, | |
0.006684671878814697, | |
0.006468607902526856, | |
0.006633471965789795, | |
0.0064817600250244144, | |
0.006499328136444092, | |
0.006546432018280029, | |
0.008075263977050781, | |
0.00830463981628418, | |
0.007174143791198731, | |
0.006569983959197998, | |
0.006420351982116699, | |
0.006454304218292236, | |
0.006363135814666748, | |
0.006301695823669433, | |
0.006271008014678955, | |
0.006292511940002441, | |
0.006361055850982666, | |
0.006360064029693604, | |
0.0063836159706115725, | |
0.006368256092071533, | |
0.0063344001770019535, | |
0.006261919975280762, | |
0.006275072097778321, | |
0.006333439826965332, | |
0.006468607902526856, | |
0.006369279861450195, | |
0.006352896213531494, | |
0.006393856048583985, | |
0.006363135814666748, | |
0.006341631889343262, | |
0.0062863359451293946, | |
0.006299647808074951, | |
0.006338560104370118, | |
0.006280191898345947, | |
0.006218944072723389, | |
0.006262911796569824 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 149.09812540174156 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |