IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d3bf63d verified
raw
history blame
17.2 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.285632,
"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.4.0",
"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.257024,
"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.2183837890625,
"mean": 7.2183837890625,
"stdev": 0.0,
"p50": 7.2183837890625,
"p90": 7.2183837890625,
"p95": 7.2183837890625,
"p99": 7.2183837890625,
"values": [
7.2183837890625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.9142591158549e-07,
"ram": 5.271229962283997e-07,
"gpu": 0.0,
"total": 1.5185489078138896e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1051.262976,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.49347167968750016,
"mean": 0.006759886023116438,
"stdev": 0.0004387677585585768,
"p50": 0.006791776180267334,
"p90": 0.0073244606971740725,
"p95": 0.007398355197906494,
"p99": 0.007881157226562501,
"values": [
0.007713024139404297,
0.007445759773254394,
0.007142271995544434,
0.0069435200691223145,
0.006715167999267578,
0.00699238395690918,
0.0073602237701416015,
0.007332223892211914,
0.0071262078285217285,
0.00696611213684082,
0.006969151973724365,
0.006861408233642578,
0.007012544155120849,
0.006879456043243408,
0.006791776180267334,
0.006791903972625733,
0.006890111923217773,
0.006891104221343994,
0.007071648120880127,
0.0070639681816101075,
0.00676800012588501,
0.007004543781280518,
0.006878079891204834,
0.006812704086303711,
0.007147103786468506,
0.007366752147674561,
0.0071924481391906735,
0.007113024234771729,
0.007076608180999756,
0.007354400157928467,
0.007293407917022705,
0.007001120090484619,
0.006989984035491943,
0.006834303855895996,
0.006746079921722412,
0.00650761604309082,
0.007143648147583008,
0.006687871932983399,
0.006759583950042725,
0.006759967803955078,
0.007157760143280029,
0.0077853121757507325,
0.008127615928649903,
0.007005023956298828,
0.006553696155548096,
0.006574111938476563,
0.006566207885742187,
0.006316864013671875,
0.006273151874542237,
0.006298751831054688,
0.006309279918670654,
0.006273663997650146,
0.00625548791885376,
0.006293983936309815,
0.006328320026397705,
0.0063043198585510255,
0.006288383960723877,
0.006259520053863526,
0.0063089919090271,
0.006311423778533935,
0.006267583847045898,
0.0062687997817993165,
0.006283199787139893,
0.0063060798645019536,
0.006278560161590576,
0.006263391971588135,
0.006258592128753662,
0.006273920059204101,
0.0063138241767883305,
0.0062462081909179686,
0.0062740478515625,
0.006228223800659179,
0.006220160007476806
]
},
"throughput": {
"unit": "tokens/s",
"value": 295.862976559176
},
"energy": {
"unit": "kWh",
"cpu": 7.802564650774003e-08,
"ram": 4.265764550927175e-08,
"gpu": 1.5427826669737015e-07,
"total": 2.7496155871438193e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7273744.043899288
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1066.9056,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.5159521589279175,
"mean": 0.0070678377935331155,
"stdev": 0.00046109445953734893,
"p50": 0.007129087924957276,
"p90": 0.007593452644348145,
"p95": 0.0077197695732116696,
"p99": 0.00846648838043213,
"values": [
0.007768191814422607,
0.007585951805114746,
0.007559487819671631,
0.007129087924957276,
0.007087744235992431,
0.0075953278541564945,
0.007604991912841797,
0.007492159843444824,
0.00733132791519165,
0.007288000106811523,
0.007269792079925537,
0.0072139201164245605,
0.007262400150299072,
0.007080959796905518,
0.00713702392578125,
0.0070860800743103025,
0.007157504081726074,
0.00733516788482666,
0.007365632057189942,
0.007229887962341309,
0.00722982406616211,
0.007299007892608643,
0.007250527858734131,
0.00783465576171875,
0.007424543857574463,
0.007427680015563965,
0.0074954237937927244,
0.007379360198974609,
0.007516672134399414,
0.007687488079071045,
0.007600031852722168,
0.007250207901000977,
0.0072379522323608395,
0.007212448120117188,
0.0069695677757263185,
0.00730675220489502,
0.007175295829772949,
0.006898431777954101,
0.00697760009765625,
0.007308000087738037,
0.007552351951599121,
0.008594176292419434,
0.008416831970214844,
0.006849535942077637,
0.006877151966094971,
0.006831711769104004,
0.006856927871704102,
0.006587711811065674,
0.006577184200286865,
0.006564640045166016,
0.006637440204620361,
0.006580543994903564,
0.006551040172576904,
0.006523488044738769,
0.0065502080917358395,
0.006566080093383789,
0.006581024169921875,
0.0065723519325256346,
0.006659488201141358,
0.00663043212890625,
0.00656771183013916,
0.006558559894561768,
0.006540895938873291,
0.0065326719284057614,
0.006554207801818848,
0.006571296215057373,
0.006703584194183349,
0.0065569281578063965,
0.0066497278213500976,
0.006581567764282227,
0.006575039863586426,
0.006464191913604736,
0.006473343849182129
]
},
"throughput": {
"unit": "tokens/s",
"value": 141.4859861264747
},
"energy": {
"unit": "kWh",
"cpu": 7.270412380727196e-08,
"ram": 3.9665278756894183e-08,
"gpu": 1.4501873785958458e-07,
"total": 2.5738814042375076e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3885182.8928623158
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.4824575057029726,
"mean": 0.006609006927437979,
"stdev": 0.00040527710242239647,
"p50": 0.006638591766357422,
"p90": 0.007064576148986816,
"p95": 0.007182745742797851,
"p99": 0.007928176765441894,
"values": [
0.007229440212249756,
0.007068672180175781,
0.007016448020935059,
0.006650879859924317,
0.006576128005981445,
0.007064576148986816,
0.007081984043121338,
0.0069847040176391605,
0.006781951904296875,
0.006776800155639648,
0.006759424209594727,
0.006717440128326416,
0.006739967823028564,
0.006606847763061524,
0.006638591766357422,
0.006602752208709717,
0.006647808074951172,
0.006811647891998291,
0.006848512172698974,
0.00669593620300293,
0.006711296081542969,
0.006762495994567871,
0.006743040084838867,
0.007308288097381592,
0.0069212160110473635,
0.006941696166992187,
0.006969344139099121,
0.006876160144805908,
0.0069928960800170895,
0.007151616096496582,
0.007064576148986816,
0.0067358717918396,
0.006738944053649902,
0.006722559928894043,
0.0065064959526062015,
0.006801407814025879,
0.00672870397567749,
0.006491136074066162,
0.006549503803253174,
0.00683622407913208,
0.007016479969024658,
0.008047616004943848,
0.007881728172302246,
0.0064204797744750975,
0.006482944011688232,
0.006437888145446777,
0.006462463855743408,
0.0062044157981872555,
0.006192063808441162,
0.006181888103485108,
0.00623308801651001,
0.006177792072296143,
0.006164480209350586,
0.006139904022216797,
0.006166528224945069,
0.006181888103485108,
0.006195199966430664,
0.006188000202178955,
0.006277120113372803,
0.006242303848266601,
0.00617574405670166,
0.006173696041107178,
0.006153215885162353,
0.006148096084594727,
0.006170623779296875,
0.00619001579284668,
0.0063201279640197755,
0.006173696041107178,
0.006262784004211426,
0.00618393611907959,
0.006180863857269287,
0.006083648204803466,
0.0060928001403808595
]
},
"throughput": {
"unit": "tokens/s",
"value": 151.30866270519346
},
"energy": null,
"efficiency": null
}
}
}