IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c900476 verified
raw
history blame
17.1 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+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.224-212.876.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.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 800.329728,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.9974443359375,
"mean": 7.9974443359375,
"stdev": 0.0,
"p50": 7.9974443359375,
"p90": 7.9974443359375,
"p95": 7.9974443359375,
"p99": 7.9974443359375,
"values": [
7.9974443359375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.3885730527606737e-06,
"ram": 1.2853527569198343e-06,
"gpu": 3.3600026879965217e-06,
"total": 7.033928497677029e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1228.742656,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.49021465635299677,
"mean": 0.006808536893791624,
"stdev": 0.0003974865253003099,
"p50": 0.006914720058441163,
"p90": 0.00724901442527771,
"p95": 0.007288318538665772,
"p99": 0.007524614500999453,
"values": [
0.007315264225006103,
0.007260064125061035,
0.006943679809570312,
0.00688259220123291,
0.006932831764221191,
0.006827487945556641,
0.007443136215209961,
0.006830048084259033,
0.007037248134613037,
0.006996096134185791,
0.0068215360641479495,
0.006867487907409668,
0.006969024181365966,
0.0070330557823181155,
0.0068791680335998535,
0.0071211838722229,
0.00712175989151001,
0.006882815837860107,
0.007095551967620849,
0.007064288139343262,
0.007148064136505127,
0.00717910385131836,
0.007334432125091553,
0.007249536037445069,
0.007026815891265869,
0.007724095821380615,
0.006926144123077392,
0.0071594557762146,
0.0069434881210327145,
0.007123616218566895,
0.0072631359100341795,
0.007032959938049316,
0.007100768089294433,
0.007057568073272705,
0.006830016136169434,
0.007266272068023682,
0.007223296165466309,
0.007184127807617188,
0.007244319915771485,
0.007073344230651856,
0.007012415885925293,
0.00689404821395874,
0.007093376159667969,
0.0067357120513916015,
0.006534527778625488,
0.006903295993804932,
0.0070687680244445805,
0.007153408050537109,
0.00680841588973999,
0.006574431896209717,
0.006444736003875733,
0.006551136016845703,
0.0062952318191528325,
0.006192639827728271,
0.006300928115844727,
0.006285823822021484,
0.006286911964416504,
0.0062171840667724606,
0.006182496070861816,
0.006245535850524902,
0.006287680149078369,
0.006245535850524902,
0.0062416958808898925,
0.006274271965026856,
0.0062053117752075195,
0.006281087875366211,
0.0062485761642456054,
0.00619152021408081,
0.006301919937133789,
0.006214943885803223,
0.006270016193389892,
0.006256192207336426
]
},
"throughput": {
"unit": "tokens/s",
"value": 293.74886722339767
},
"energy": {
"unit": "kWh",
"cpu": 7.764211033959945e-08,
"ram": 4.242571282060231e-08,
"gpu": 1.4904151356862272e-07,
"total": 2.691093367288245e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7431923.486234725
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1247.08864,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.5132745900154113,
"mean": 0.007128813750214046,
"stdev": 0.000394570345300286,
"p50": 0.0072610719203948975,
"p90": 0.007555580711364746,
"p95": 0.007654185461997986,
"p99": 0.00773252206325531,
"values": [
0.007445087909698486,
0.007429376125335694,
0.0071775360107421875,
0.00725548791885376,
0.007265759944915772,
0.007079936027526855,
0.007256383895874023,
0.007269248008728028,
0.007480319976806641,
0.007204288005828857,
0.007125440120697021,
0.007231167793273926,
0.0072717761993408205,
0.0075095038414001464,
0.007498112201690674,
0.007539423942565918,
0.007436287879943848,
0.007343616008758545,
0.007432096004486084,
0.007431488037109375,
0.007350719928741455,
0.007664639949798584,
0.0074208321571350095,
0.0074546561241149905,
0.007480768203735352,
0.007599967956542969,
0.007557375907897949,
0.0074423041343688965,
0.007286079883575439,
0.007730591773986817,
0.007285408020019531,
0.007379968166351319,
0.00745462417602539,
0.007420447826385498,
0.0077218241691589355,
0.007576191902160644,
0.007645631790161133,
0.007510303974151611,
0.007388160228729248,
0.0073276481628417964,
0.0072269439697265625,
0.0069604158401489254,
0.0072499198913574215,
0.0067966079711914065,
0.0070867519378662105,
0.007411776065826416,
0.007450751781463623,
0.007737247943878174,
0.0069612798690795894,
0.006767551898956298,
0.006783616065979004,
0.006840735912322998,
0.006648416042327881,
0.006592415809631348,
0.006585216045379639,
0.006567039966583252,
0.006617695808410645,
0.006524703979492188,
0.006553567886352539,
0.006566815853118897,
0.00669379186630249,
0.006606016159057617,
0.006581888198852539,
0.006581696033477783,
0.006538943767547607,
0.006576831817626953,
0.006538559913635254,
0.006586271762847901,
0.006502079963684082,
0.0065491518974304195,
0.006600543975830078,
0.006608863830566406
]
},
"throughput": {
"unit": "tokens/s",
"value": 140.2757927249782
},
"energy": {
"unit": "kWh",
"cpu": 7.307622799538225e-08,
"ram": 3.992839546466258e-08,
"gpu": 1.4154240384906026e-07,
"total": 2.5454702730910506e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3928547.1552007804
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.4793321576118466,
"mean": 0.006657391077942319,
"stdev": 0.00033534352549947905,
"p50": 0.006762495994567871,
"p90": 0.0070382658004760745,
"p95": 0.0071287296295166015,
"p99": 0.007208560523986817,
"values": [
0.006910975933074951,
0.006897727966308594,
0.006680575847625733,
0.006744063854217529,
0.006769631862640381,
0.006598656177520752,
0.006713344097137451,
0.0067573761940002445,
0.00693555212020874,
0.006685696125030518,
0.006606847763061524,
0.006706175804138184,
0.006767615795135498,
0.00693555212020874,
0.006975488185882568,
0.0069918718338012695,
0.006912000179290771,
0.0068351998329162595,
0.00691919994354248,
0.0069069118499755855,
0.006848512172698974,
0.007138304233551026,
0.0068853440284729,
0.006924287796020508,
0.006959104061126709,
0.00704307222366333,
0.007045119762420654,
0.00694374418258667,
0.006784959793090821,
0.007205887794494629,
0.006790143966674805,
0.006872064113616944,
0.00692633581161499,
0.006924287796020508,
0.007185408115386963,
0.007061408042907715,
0.007120895862579346,
0.006995007991790771,
0.0068915200233459475,
0.006830111980438232,
0.006755328178405762,
0.006524928092956543,
0.006776735782623291,
0.006398975849151611,
0.006591487884521485,
0.006904831886291504,
0.0069283838272094726,
0.007215104103088379,
0.00652185583114624,
0.006385568141937256,
0.006394879817962646,
0.006398975849151611,
0.006248447895050049,
0.00621670389175415,
0.006209536075592041,
0.006189055919647217,
0.006229951858520508,
0.006142975807189942,
0.006176767826080322,
0.006188032150268555,
0.006291456222534179,
0.006218751907348633,
0.006202367782592774,
0.006201344013214111,
0.0061562881469726565,
0.0062044157981872555,
0.006148096084594727,
0.006198272228240966,
0.006127615928649902,
0.006157311916351318,
0.006197311878204346,
0.0062044157981872555
]
},
"throughput": {
"unit": "tokens/s",
"value": 150.20899152421165
},
"energy": null,
"efficiency": null
}
}
}