
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b179685
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.42912, | |
"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.38402587890625, | |
"mean": 7.38402587890625, | |
"stdev": 0.0, | |
"p50": 7.38402587890625, | |
"p90": 7.38402587890625, | |
"p95": 7.38402587890625, | |
"p99": 7.38402587890625, | |
"values": [ | |
7.38402587890625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0021241104170762e-06, | |
"ram": 5.330273654410317e-07, | |
"gpu": 1.6450013160000318e-06, | |
"total": 3.1801527918581397e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1193.582592, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.4900032649040221, | |
"mean": 0.006621665741946245, | |
"stdev": 0.0001617695359402778, | |
"p50": 0.006532063961029053, | |
"p90": 0.006798329639434814, | |
"p95": 0.006836073660850524, | |
"p99": 0.007016691894531249, | |
"values": [ | |
0.007224736213684082, | |
0.006875264167785645, | |
0.006810239791870117, | |
0.006798240184783935, | |
0.006798367977142334, | |
0.006784543991088867, | |
0.006768832206726074, | |
0.006779136180877686, | |
0.006788032054901123, | |
0.006795711994171142, | |
0.006852672100067138, | |
0.006768064022064209, | |
0.006755936145782471, | |
0.006774847984313965, | |
0.006778079986572266, | |
0.006524223804473877, | |
0.006492671966552735, | |
0.006531263828277588, | |
0.0065062718391418455, | |
0.006497951984405517, | |
0.006520287990570068, | |
0.0065119037628173825, | |
0.006494048118591308, | |
0.006522528171539307, | |
0.0065075201988220215, | |
0.006489120006561279, | |
0.006509727954864502, | |
0.006522208213806152, | |
0.0063925118446350095, | |
0.0064150080680847165, | |
0.0064041919708251955, | |
0.006384160041809082, | |
0.006414271831512451, | |
0.006511839866638183, | |
0.006502655982971192, | |
0.006482656002044678, | |
0.00649126386642456, | |
0.006407968044281006, | |
0.00650707197189331, | |
0.006533696174621582, | |
0.006485375881195068, | |
0.006642303943634033, | |
0.00654640007019043, | |
0.006486783981323243, | |
0.0065352640151977535, | |
0.006519423961639404, | |
0.00647379207611084, | |
0.0065205121040344234, | |
0.006502655982971192, | |
0.006532864093780517, | |
0.006939743995666504, | |
0.006763296127319336, | |
0.0068271360397338865, | |
0.006733439922332764, | |
0.006796895980834961, | |
0.006752575874328613, | |
0.006746943950653076, | |
0.0067067198753356936, | |
0.006750207901000976, | |
0.00652185583114624, | |
0.006473120212554932, | |
0.006526976108551025, | |
0.00676204776763916, | |
0.006807487964630127, | |
0.006779136180877686, | |
0.006772480010986328, | |
0.006772064208984375, | |
0.006644383907318115, | |
0.006637216091156006, | |
0.006605728149414063, | |
0.006481632232666016, | |
0.006520671844482422, | |
0.00648086404800415, | |
0.006525536060333252 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 302.0388038210093 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.036973787068547e-08, | |
"ram": 4.394161982511938e-08, | |
"gpu": 1.5501889278378473e-07, | |
"total": 2.793302504795896e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7159983.555544544 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1211.990016, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.5151637134552002, | |
"mean": 0.00696167180344865, | |
"stdev": 0.00015132622939089294, | |
"p50": 0.006936640024185181, | |
"p90": 0.007132083368301392, | |
"p95": 0.007150156807899475, | |
"p99": 0.007307525415420532, | |
"values": [ | |
0.0071684160232543944, | |
0.00715231990814209, | |
0.007104671955108642, | |
0.00712608003616333, | |
0.007074656009674073, | |
0.007102528095245361, | |
0.007097599983215332, | |
0.007119743824005127, | |
0.007280128002166748, | |
0.007131904125213623, | |
0.0070828161239624024, | |
0.007120448112487793, | |
0.007128191947937012, | |
0.007099264144897461, | |
0.0071021437644958494, | |
0.006836128234863281, | |
0.006869440078735352, | |
0.006846816062927246, | |
0.006842527866363525, | |
0.006834784030914307, | |
0.006820096015930176, | |
0.006938752174377442, | |
0.006839776039123535, | |
0.006816448211669922, | |
0.00690934419631958, | |
0.00681606388092041, | |
0.006822591781616211, | |
0.006732960224151611, | |
0.006735104084014893, | |
0.0067448000907897945, | |
0.0067430720329284665, | |
0.006748320102691651, | |
0.006768064022064209, | |
0.006831264019012451, | |
0.006982175827026367, | |
0.0068384318351745604, | |
0.006806655883789063, | |
0.00674838399887085, | |
0.006852767944335938, | |
0.007001311779022217, | |
0.00693452787399292, | |
0.0068224000930786136, | |
0.00683244800567627, | |
0.006803584098815918, | |
0.0068169918060302735, | |
0.006821375846862793, | |
0.00697983980178833, | |
0.0069205121994018555, | |
0.006845471858978272, | |
0.006849311828613282, | |
0.007142303943634033, | |
0.007127808094024658, | |
0.007112448215484619, | |
0.007115712165832519, | |
0.00714899206161499, | |
0.0071241922378540035, | |
0.007133823871612549, | |
0.007073503971099853, | |
0.0070546879768371585, | |
0.006822495937347412, | |
0.006925216197967529, | |
0.006904255867004394, | |
0.007381599903106689, | |
0.007103199958801269, | |
0.007092000007629395, | |
0.007126272201538086, | |
0.007132160186767578, | |
0.006974624156951904, | |
0.006977920055389404, | |
0.006972224235534668, | |
0.006838592052459716, | |
0.0068559679985046385, | |
0.006817728042602539, | |
0.006962528228759765 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 143.64365747673187 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.752038684605356e-08, | |
"ram": 4.2050819200248074e-08, | |
"gpu": 1.4452813047937343e-07, | |
"total": 2.640993365256753e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3786454.040950541 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.48493878364563, | |
"mean": 0.006553226806022026, | |
"stdev": 0.00014615877723961383, | |
"p50": 0.006525951862335205, | |
"p90": 0.006721536159515381, | |
"p95": 0.006734028887748719, | |
"p99": 0.0068908117246627805, | |
"values": [ | |
0.0067573761940002445, | |
0.0067420158386230465, | |
0.006699007987976074, | |
0.006711296081542969, | |
0.006670335769653321, | |
0.006688767910003662, | |
0.006688767910003662, | |
0.006715392112731934, | |
0.006859871864318847, | |
0.006729728221893311, | |
0.0066641921997070315, | |
0.006706175804138184, | |
0.0067041277885437015, | |
0.0066938881874084475, | |
0.006683648109436035, | |
0.006415359973907471, | |
0.006469632148742676, | |
0.0064358081817626955, | |
0.0064245758056640625, | |
0.006437888145446777, | |
0.006415359973907471, | |
0.006543360233306885, | |
0.006446080207824707, | |
0.006425600051879882, | |
0.006494207859039307, | |
0.0064245758056640625, | |
0.00643068790435791, | |
0.006343679904937744, | |
0.006345727920532227, | |
0.006323200225830078, | |
0.006331391811370849, | |
0.006359039783477783, | |
0.00637337589263916, | |
0.006436863899230957, | |
0.00658022403717041, | |
0.006435840129852295, | |
0.006396927833557129, | |
0.006359039783477783, | |
0.0064440321922302245, | |
0.00658739185333252, | |
0.006509568214416504, | |
0.006427648067474365, | |
0.00643993616104126, | |
0.006412288188934326, | |
0.0064245758056640625, | |
0.006428671836853027, | |
0.006426623821258545, | |
0.006527999877929688, | |
0.00643993616104126, | |
0.006452223777770996, | |
0.00672870397567749, | |
0.006721536159515381, | |
0.0066713600158691405, | |
0.006711296081542969, | |
0.006700032234191895, | |
0.006710271835327148, | |
0.006700032234191895, | |
0.0066713600158691405, | |
0.006663167953491211, | |
0.006428671836853027, | |
0.006523903846740723, | |
0.006500351905822754, | |
0.006974463939666748, | |
0.006665215969085693, | |
0.006686719894409179, | |
0.006721536159515381, | |
0.006724607944488525, | |
0.006576128005981445, | |
0.00658022403717041, | |
0.006560768127441406, | |
0.006428671836853027, | |
0.006453248023986816, | |
0.0064102401733398436, | |
0.006542335987091064 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 152.59658021923786 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |