IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
09bd648 verified
raw
history blame
16.8 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.252864,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.223-212.873.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.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"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": 803.233792,
"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.86334716796875,
"mean": 7.86334716796875,
"stdev": 0.0,
"p50": 7.86334716796875,
"p90": 7.86334716796875,
"p95": 7.86334716796875,
"p99": 7.86334716796875,
"values": [
7.86334716796875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.79223327778003e-07,
"ram": 5.208926168628893e-07,
"gpu": 1.6069457299998716e-06,
"total": 3.107061674640764e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1237.438464,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.4933898558616638,
"mean": 0.007048426512309483,
"stdev": 0.0003331377085310719,
"p50": 0.007095487833023072,
"p90": 0.007369382381439209,
"p95": 0.0075535376787185665,
"p99": 0.007983826990127564,
"values": [
0.007732511997222901,
0.007320191860198975,
0.007542784214019775,
0.00725267219543457,
0.007169536113739014,
0.007080863952636718,
0.007100575923919677,
0.007129216194152832,
0.007313216209411621,
0.007384128093719482,
0.007169375896453858,
0.0070897917747497555,
0.007125376224517822,
0.007243904113769531,
0.007047071933746338,
0.007300704002380371,
0.007096191883087158,
0.0070087361335754396,
0.007238751888275147,
0.0071526398658752445,
0.007131072044372558,
0.007121503829956055,
0.007115903854370117,
0.007205023765563965,
0.007170303821563721,
0.007309855937957764,
0.007228127956390381,
0.006859072208404541,
0.006940991878509522,
0.007082176208496094,
0.007090240001678467,
0.007177919864654541,
0.007175327777862549,
0.007151936054229736,
0.007364607810974121,
0.0072344961166381835,
0.007367743968963623,
0.007296319961547852,
0.007055424213409424,
0.00715990400314331,
0.006969120025634766,
0.006711296081542969,
0.006936480045318603,
0.0066696319580078125,
0.0070947837829589844,
0.0070267200469970705,
0.007466207981109619,
0.008152959823608398,
0.006810272216796875,
0.0068074560165405276,
0.006797056198120117,
0.006582464218139648,
0.006610527992248535,
0.006580575942993164,
0.006576799869537354,
0.006467040061950684,
0.006555615901947021,
0.006589983940124512,
0.006951839923858643,
0.006666848182678223,
0.00660588788986206,
0.006562111854553222,
0.006588704109191894,
0.0065937919616699215,
0.0067142400741577145,
0.006734496116638184,
0.007562335968017578,
0.007907839775085449,
0.006767392158508301,
0.006593183994293213
]
},
"throughput": {
"unit": "tokens/s",
"value": 283.75127363634545
},
"energy": {
"unit": "kWh",
"cpu": 7.946996346476519e-08,
"ram": 4.344778743770439e-08,
"gpu": 1.5188863754362328e-07,
"total": 2.7480638844609285e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7277851.185735183
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1255.784448,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.5175588769912719,
"mean": 0.007393698242732457,
"stdev": 0.0003428606347143774,
"p50": 0.007481295824050903,
"p90": 0.007729372644424439,
"p95": 0.00784869611263275,
"p99": 0.008181231584548952,
"values": [
0.007831679821014405,
0.007567168235778809,
0.007718495845794678,
0.007582719802856445,
0.007602272033691407,
0.0073770880699157715,
0.007559967994689941,
0.007620319843292236,
0.007827263832092285,
0.007609920024871826,
0.007433472156524658,
0.007381120204925537,
0.007857984066009521,
0.007587039947509765,
0.0076154241561889645,
0.007594751834869385,
0.0074871997833251954,
0.007475391864776611,
0.007515679836273193,
0.007493311882019043,
0.007397632122039795,
0.007529791831970215,
0.007608575820922852,
0.007520959854125976,
0.007659103870391846,
0.007572319984436035,
0.007572991847991943,
0.007199552059173584,
0.007238687992095948,
0.007712575912475586,
0.007453023910522461,
0.007438528060913086,
0.0074700798988342285,
0.007545631885528564,
0.007837344169616699,
0.007672031879425049,
0.0075905280113220215,
0.007589759826660156,
0.007518655776977539,
0.007419680118560791,
0.00699286413192749,
0.007216928005218506,
0.00693782377243042,
0.006957791805267334,
0.0074496960639953615,
0.007665503978729248,
0.008022432327270507,
0.008534687995910645,
0.007115295886993408,
0.007064544200897217,
0.006948256015777588,
0.006873087882995605,
0.0068982081413269045,
0.006917823791503906,
0.0068566398620605465,
0.006900767803192139,
0.006945216178894043,
0.00690339183807373,
0.007017471790313721,
0.006870175838470459,
0.007010560035705566,
0.006867231845855713,
0.006854496002197266,
0.007260255813598633,
0.007537407875061035,
0.007324831962585449,
0.007865407943725585,
0.007609439849853516,
0.006904064178466797,
0.00695084810256958
]
},
"throughput": {
"unit": "tokens/s",
"value": 135.25031278939974
},
"energy": {
"unit": "kWh",
"cpu": 7.452673052873873e-08,
"ram": 4.061704882424283e-08,
"gpu": 1.424874998329989e-07,
"total": 2.5763127918598053e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3881516.2629306107
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 70,
"total": 0.4831068468093871,
"mean": 0.006901526382991246,
"stdev": 0.0002953218197571221,
"p50": 0.006943232059478759,
"p90": 0.0072006655216217035,
"p95": 0.0073063935518264764,
"p99": 0.007600342855453492,
"values": [
0.00727347183227539,
0.007028672218322754,
0.007192575931549072,
0.007015423774719238,
0.007080959796905518,
0.00687718391418457,
0.007027711868286133,
0.00709222412109375,
0.007284736156463623,
0.007094272136688232,
0.006894527912139892,
0.006872064113616944,
0.007321599960327148,
0.007036831855773926,
0.007093247890472412,
0.007078911781311035,
0.006941696166992187,
0.006956031799316406,
0.0069959678649902345,
0.00693555212020874,
0.0068690237998962405,
0.007009280204772949,
0.007039999961853028,
0.007016448020935059,
0.007123968124389648,
0.00702569580078125,
0.007049215793609619,
0.0067051520347595215,
0.006716415882110595,
0.007169023990631103,
0.006938623905181885,
0.006896639823913574,
0.006959167957305909,
0.007011328220367432,
0.007287807941436767,
0.007138304233551026,
0.007071743965148926,
0.007071807861328125,
0.006944767951965332,
0.00693449592590332,
0.0065598077774047855,
0.006722559928894043,
0.0065372161865234375,
0.006533120155334473,
0.006939648151397705,
0.0070860800743103025,
0.007412735939025879,
0.008017919540405273,
0.00669593620300293,
0.006616032123565674,
0.006533120155334473,
0.006481919765472412,
0.006481887817382813,
0.0065136637687683106,
0.006463488101959228,
0.006505472183227539,
0.006542335987091064,
0.0064880638122558594,
0.006604800224304199,
0.006467648029327392,
0.006615039825439453,
0.006472703933715821,
0.00643891191482544,
0.006838304042816162,
0.007028736114501953,
0.006822912216186523,
0.007391232013702393,
0.007168000221252442,
0.006499328136444092,
0.006555647850036621
]
},
"throughput": {
"unit": "tokens/s",
"value": 144.89548318825408
},
"energy": null,
"efficiency": null
}
}
}