IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7745538 verified
raw
history blame
16.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": {},
"hub_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,
"latency": true,
"memory": 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.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1042.67776,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210816
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.49331324672698984,
"mean": 0.0067577157085889,
"stdev": 0.00034184639459970245,
"p50": 0.006815104007720947,
"p90": 0.0071185729026794434,
"p95": 0.007185318279266358,
"p99": 0.00765092498779297,
"values": [
0.008249504089355469,
0.007180287837982178,
0.0071224641799926755,
0.006914175987243652,
0.006880991935729981,
0.006809696197509766,
0.006863999843597412,
0.0066555838584899905,
0.006894336223602295,
0.006951295852661133,
0.006827199935913086,
0.006825183868408203,
0.007418144226074219,
0.007087007999420166,
0.006897280216217041,
0.0069621758460998535,
0.00705401611328125,
0.0068863358497619626,
0.00698473596572876,
0.006921055793762207,
0.007013567924499512,
0.007123968124389648,
0.007082848072052002,
0.006870975971221924,
0.006904255867004394,
0.007032576084136963,
0.006811039924621582,
0.006815104007720947,
0.007206431865692139,
0.006916096210479736,
0.006993184089660645,
0.006917183876037598,
0.007008639812469483,
0.007192863941192627,
0.0071030077934265134,
0.007020607948303222,
0.0067560958862304685,
0.006921279907226563,
0.006662655830383301,
0.006858016014099121,
0.007160607814788818,
0.006521471977233887,
0.006696224212646484,
0.006791584014892578,
0.007071296215057373,
0.006630047798156739,
0.006555071830749512,
0.006547967910766602,
0.006508992195129394,
0.006424223899841309,
0.006343423843383789,
0.006291647911071777,
0.006348480224609375,
0.006375072002410889,
0.006347487926483155,
0.006418560028076172,
0.006395423889160156,
0.006457791805267334,
0.006400224208831787,
0.006428607940673828,
0.006370848178863526,
0.006365151882171631,
0.006408192157745361,
0.006376512050628662,
0.006390655994415283,
0.006376287937164307,
0.006417727947235107,
0.006326144218444824,
0.006354176044464112,
0.006437119960784912,
0.006443679809570313,
0.006352928161621094,
0.006383743762969971
]
},
"throughput": {
"unit": "tokens/s",
"value": 295.9579961995214
},
"energy": {
"unit": "kWh",
"cpu": 7.764209830571735e-08,
"ram": 4.226291244828479e-08,
"gpu": 1.506909574935052e-07,
"total": 2.7059596824750735e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7391093.122905106
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1042.67776,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.43456
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.5159564790725708,
"mean": 0.00706789697359686,
"stdev": 0.00030096819728482794,
"p50": 0.007161119937896729,
"p90": 0.00744140157699585,
"p95": 0.007485184001922608,
"p99": 0.007511380386352539,
"values": [
0.0074551358222961425,
0.007508575916290283,
0.0072683200836181645,
0.0072215042114257815,
0.0072252159118652345,
0.007195328235626221,
0.007047776222229004,
0.007240767955780029,
0.007298624038696289,
0.007270656108856201,
0.007161119937896729,
0.00742412805557251,
0.0075185918807983395,
0.007406176090240479,
0.007290175914764404,
0.0074421119689941405,
0.00721999979019165,
0.007175199985504151,
0.007191455841064453,
0.007372543811798095,
0.007483520030975342,
0.007487679958343506,
0.007290048122406006,
0.0074282240867614745,
0.007499680042266845,
0.007344863891601563,
0.007199423789978027,
0.007324960231781006,
0.007245823860168457,
0.007377120018005371,
0.0072696318626403805,
0.007266560077667236,
0.007469120025634765,
0.007437535762786865,
0.007230080127716064,
0.007438560009002685,
0.007351168155670166,
0.007309663772583008,
0.007039616107940674,
0.0070997757911682126,
0.00706390380859375,
0.006892831802368164,
0.007074048042297363,
0.007133056163787841,
0.007065760135650635,
0.006781824111938476,
0.006873856067657471,
0.006866591930389404,
0.006677728176116943,
0.006721951961517334,
0.00683673620223999,
0.006732351779937744,
0.006592703819274902,
0.006724160194396972,
0.006752543926239014,
0.006668672084808349,
0.006696832180023193,
0.0066705279350280765,
0.006665919780731201,
0.006663616180419922,
0.006725152015686035,
0.0067233600616455075,
0.0066564478874206546,
0.00681766414642334,
0.006878943920135498,
0.006671967983245849,
0.006703551769256592,
0.006726143836975097,
0.0067266240119934085,
0.0066689600944519044,
0.0067114877700805665,
0.0067337918281555175,
0.006530303955078125
]
},
"throughput": {
"unit": "tokens/s",
"value": 141.48480145305498
},
"energy": {
"unit": "kWh",
"cpu": 7.165657001591864e-08,
"ram": 3.9367521942496864e-08,
"gpu": 1.375037175065002e-07,
"total": 2.4852780946491564e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4023694.5803088034
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.48187414264678946,
"mean": 0.006601015652695747,
"stdev": 0.0002432748698272277,
"p50": 0.006675456047058105,
"p90": 0.0069036032676696776,
"p95": 0.0069447678565979,
"p99": 0.006988881797790527,
"values": [
0.006894591808319092,
0.006966271877288818,
0.006752255916595459,
0.006715392112731934,
0.006691840171813965,
0.006687808036804199,
0.0065443840026855465,
0.006717440128326416,
0.006752255916595459,
0.006747136116027832,
0.006667263984680176,
0.006887423992156983,
0.006996992111206054,
0.006847487926483154,
0.006776832103729248,
0.006916096210479736,
0.00672870397567749,
0.006676479816436768,
0.006692863941192627,
0.006865920066833496,
0.006953983783721924,
0.006920191764831543,
0.006767615795135498,
0.00687718391418457,
0.006985727787017822,
0.006829055786132812,
0.0067051520347595215,
0.006789120197296142,
0.006746111869812011,
0.0068618240356445315,
0.006737919807434082,
0.006767615795135498,
0.006938623905181885,
0.006905856132507324,
0.0067276802062988285,
0.006874112129211426,
0.006840320110321045,
0.006817791938781738,
0.006556672096252441,
0.006675456047058105,
0.0066406397819519045,
0.006428671836853027,
0.006639616012573242,
0.006608895778656006,
0.0066406397819519045,
0.00637337589263916,
0.006455296039581298,
0.006462463855743408,
0.006289472103118896,
0.00633241605758667,
0.006446080207824707,
0.006326303958892822,
0.006172671794891358,
0.006337535858154297,
0.00636518383026123,
0.0062791681289672855,
0.006304768085479737,
0.0062863359451293946,
0.006261760234832763,
0.006252543926239014,
0.006334464073181153,
0.006326272010803223,
0.006262784004211426,
0.006426623821258545,
0.006487040042877197,
0.006276095867156982,
0.006293504238128662,
0.006336512088775635,
0.0063324799537658695,
0.006277120113372803,
0.006323200225830078,
0.006343679904937744,
0.006147071838378906
]
},
"throughput": {
"unit": "tokens/s",
"value": 151.49183892506244
},
"energy": null,
"efficiency": null
}
}
}