IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f720820 verified
raw
history blame
17.1 kB
{
"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.43.3",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 720.982016,
"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.20597802734375,
"mean": 7.20597802734375,
"stdev": 0.0,
"p50": 7.20597802734375,
"p90": 7.20597802734375,
"p95": 7.20597802734375,
"p99": 7.20597802734375,
"values": [
7.20597802734375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.767389959759183e-07,
"ram": 5.197135457887233e-07,
"gpu": 1.6138901799999435e-06,
"total": 3.1103427217645853e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1040.183296,
"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.48923900794982916,
"mean": 0.006794986221525404,
"stdev": 0.00034895320348567383,
"p50": 0.006901968002319336,
"p90": 0.007171376037597656,
"p95": 0.007226974415779114,
"p99": 0.0074683928489685065,
"values": [
0.007444608211517334,
0.007219615936279297,
0.0072921280860900875,
0.0069493441581726075,
0.007072800159454345,
0.00696227216720581,
0.00695465612411499,
0.007130271911621093,
0.007043839931488037,
0.006926496028900147,
0.00717193603515625,
0.007130047798156738,
0.007106815814971924,
0.006976928234100342,
0.0070256638526916505,
0.006856095790863037,
0.006786975860595703,
0.006927775859832764,
0.007526624202728272,
0.007024288177490234,
0.007166336059570313,
0.007129119873046875,
0.006887904167175293,
0.0071080322265625,
0.007021215915679932,
0.007003456115722656,
0.006973023891448975,
0.007061279773712158,
0.007235968112945556,
0.006899648189544678,
0.00690176010131836,
0.00693449592590332,
0.0072015681266784665,
0.007129280090332031,
0.006907487869262695,
0.007044672012329101,
0.0071562881469726565,
0.0067684478759765625,
0.006654943943023682,
0.006807744026184082,
0.006396512031555176,
0.006902175903320313,
0.0070403838157653805,
0.007178815841674804,
0.006965472221374512,
0.006845471858978272,
0.006835360050201416,
0.0068297281265258785,
0.00667519998550415,
0.006648096084594726,
0.006684895992279053,
0.0063794879913330075,
0.006339968204498291,
0.006346399784088135,
0.006348031997680664,
0.006364927768707275,
0.006351871967315674,
0.006326303958892822,
0.006293824195861816,
0.006327904224395752,
0.0063405442237854,
0.00634607982635498,
0.006301119804382325,
0.006306431770324707,
0.006345215797424316,
0.006311071872711182,
0.006269951820373535,
0.006278528213500977,
0.006340928077697754,
0.006314527988433838,
0.006235551834106445,
0.006246367931365967
]
},
"throughput": {
"unit": "tokens/s",
"value": 294.3346660018717
},
"energy": {
"unit": "kWh",
"cpu": 7.941198569756968e-08,
"ram": 4.3362782478667185e-08,
"gpu": 1.6597420685333353e-07,
"total": 2.8874897502957037e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 6926431.513030247
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1055.82592,
"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.5101387209892272,
"mean": 0.007085260013739268,
"stdev": 0.0003661430680072368,
"p50": 0.007182575941085815,
"p90": 0.007469664049148559,
"p95": 0.007596447944641114,
"p99": 0.007715073208808901,
"values": [
0.007616256237030029,
0.007571648120880127,
0.007355391979217529,
0.007346432209014892,
0.007232895851135254,
0.007245759963989257,
0.007320032119750976,
0.007456128120422363,
0.007308224201202393,
0.007349760055541992,
0.007381599903106689,
0.007396416187286377,
0.007360864162445069,
0.007372191905975342,
0.007440608024597168,
0.00706063985824585,
0.007288320064544678,
0.007141600131988526,
0.007641983985900879,
0.007449312210083008,
0.007402368068695068,
0.0073194561004638675,
0.007303936004638672,
0.0074518718719482424,
0.0073779840469360355,
0.0071280961036682125,
0.007257376194000244,
0.007894015789031983,
0.007615808010101318,
0.0072490558624267575,
0.007236320018768311,
0.007471168041229248,
0.007555168151855468,
0.007409088134765625,
0.007345439910888672,
0.007147136211395263,
0.0071874880790710445,
0.006887904167175293,
0.007164480209350586,
0.006692768096923828,
0.0067192320823669435,
0.007259103775024414,
0.007256671905517578,
0.007580607891082764,
0.007057216167449951,
0.007087264060974121,
0.007177663803100586,
0.007042175769805909,
0.006971327781677246,
0.006880352020263672,
0.00707257604598999,
0.006607456207275391,
0.006599584102630615,
0.006605247974395752,
0.006631616115570068,
0.006584127902984619,
0.006582240104675293,
0.0066072001457214355,
0.00660211181640625,
0.006689472198486328,
0.006586271762847901,
0.006626239776611328,
0.0066052799224853515,
0.006597631931304931,
0.006584928035736084,
0.006615583896636963,
0.006557055950164795,
0.006566847801208496,
0.00668995189666748,
0.006523392200469971,
0.006541279792785645,
0.006598015785217285
]
},
"throughput": {
"unit": "tokens/s",
"value": 141.13808075650945
},
"energy": {
"unit": "kWh",
"cpu": 7.554793971384185e-08,
"ram": 4.136080659767522e-08,
"gpu": 1.3280308844536773e-07,
"total": 2.497118347568846e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4004615.9645320126
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.47644342470169065,
"mean": 0.006617269787523482,
"stdev": 0.0003054590389371486,
"p50": 0.006697983980178833,
"p90": 0.006928179025650024,
"p95": 0.007057803320884705,
"p99": 0.007163525161743165,
"values": [
0.007064544200897217,
0.007041024208068848,
0.006819839954376221,
0.0068249602317810056,
0.006747136116027832,
0.0067123198509216305,
0.006802432060241699,
0.006900735855102539,
0.0067983360290527345,
0.006820864200592041,
0.006856704235076904,
0.0068689918518066405,
0.006840320110321045,
0.006823935985565186,
0.00692633581161499,
0.00657203197479248,
0.00676966381072998,
0.006635519981384277,
0.007090176105499267,
0.0069283838272094726,
0.006870016098022461,
0.006812672138214112,
0.006770688056945801,
0.006919167995452881,
0.006851583957672119,
0.006643712043762207,
0.006748159885406494,
0.0073431038856506346,
0.0070522880554199216,
0.006747136116027832,
0.0067041277885437015,
0.006924287796020508,
0.007030784130096435,
0.006853695869445801,
0.0068321280479431154,
0.006659039974212647,
0.006691840171813965,
0.006461440086364746,
0.006662144184112549,
0.006270976066589356,
0.006304768085479737,
0.006770527839660644,
0.006766592025756836,
0.007065599918365479,
0.006631423950195312,
0.006657023906707763,
0.0067224960327148435,
0.006635519981384277,
0.006565887928009034,
0.0064849920272827145,
0.006667263984680176,
0.0062197761535644535,
0.006213632106781006,
0.006217728137969971,
0.006242303848266601,
0.006199295997619629,
0.0061972479820251464,
0.0062228479385375976,
0.00621670389175415,
0.006303743839263916,
0.006201312065124511,
0.0062392959594726564,
0.006219744205474853,
0.006210559844970703,
0.006198272228240966,
0.006209536075592041,
0.006180863857269287,
0.00618393611907959,
0.006284287929534912,
0.006138879776000977,
0.006164480209350586,
0.006213632106781006
]
},
"throughput": {
"unit": "tokens/s",
"value": 151.11972642938755
},
"energy": null,
"efficiency": null
}
}
}