IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e5096dd verified
raw
history blame
17.1 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.0+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.223-211.872.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.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.1",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 791.134208,
"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.40811279296875,
"mean": 7.40811279296875,
"stdev": 0.0,
"p50": 7.40811279296875,
"p90": 7.40811279296875,
"p95": 7.40811279296875,
"p99": 7.40811279296875,
"values": [
7.40811279296875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.0196579930556659e-06,
"ram": 5.1962166387908e-07,
"gpu": 1.7494458440002816e-06,
"total": 3.2887255009350275e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1191.882752,
"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.48874268627166767,
"mean": 0.006788092864884271,
"stdev": 0.00033501404802820117,
"p50": 0.006865407943725586,
"p90": 0.007173360061645507,
"p95": 0.007277060627937317,
"p99": 0.007396388282775879,
"values": [
0.0073389759063720705,
0.007173376083374023,
0.0071732158660888674,
0.007058335781097412,
0.007482656002044678,
0.007207615852355957,
0.007361152172088623,
0.007028927803039551,
0.007000927925109863,
0.006817471981048584,
0.007028992176055908,
0.006997407913208008,
0.0069911999702453615,
0.006979968070983887,
0.0069855680465698245,
0.006765696048736572,
0.006870207786560059,
0.006898399829864502,
0.007134335994720459,
0.007259103775024414,
0.007299007892608643,
0.007164576053619385,
0.007159808158874512,
0.006962751865386963,
0.006987711906433105,
0.006730559825897217,
0.0069062399864196775,
0.0070589761734008785,
0.006858463764190674,
0.006860608100891113,
0.0068439040184021,
0.006958687782287597,
0.00702569580078125,
0.007151711940765381,
0.006924320220947266,
0.006915296077728271,
0.007123583793640136,
0.006799071788787842,
0.0068772158622741695,
0.0067816638946533205,
0.006441855907440185,
0.006715456008911133,
0.006971231937408447,
0.007030911922454834,
0.007221151828765869,
0.006971007823944092,
0.006559199810028076,
0.0065634241104125975,
0.00665718412399292,
0.006576831817626953,
0.006560256004333496,
0.006516128063201904,
0.006330783843994141,
0.0063056640625,
0.0063985280990600584,
0.006346591949462891,
0.006304480075836181,
0.0062980160713195805,
0.006335360050201416,
0.006381760120391846,
0.006307392120361328,
0.006300992012023926,
0.006331424236297608,
0.006344895839691162,
0.0063373122215271,
0.006314847946166992,
0.006347839832305908,
0.00634444808959961,
0.00630944013595581,
0.006612480163574219,
0.006426432132720947,
0.006335968017578125
]
},
"throughput": {
"unit": "tokens/s",
"value": 294.6335649511032
},
"energy": {
"unit": "kWh",
"cpu": 7.837725314569252e-08,
"ram": 4.285365505440183e-08,
"gpu": 1.5377311786755024e-07,
"total": 2.750040260676446e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7272620.799769842
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1210.560512,
"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.5137675204277039,
"mean": 0.007135660005940332,
"stdev": 0.00037664684121807335,
"p50": 0.007232847929000854,
"p90": 0.007593225812911987,
"p95": 0.007645620965957642,
"p99": 0.008037721958160401,
"values": [
0.007558015823364258,
0.0075186238288879395,
0.007421023845672607,
0.00803718376159668,
0.007595680236816406,
0.007605792045593262,
0.0074440321922302245,
0.00737824010848999,
0.007448095798492432,
0.0072594242095947266,
0.0073630399703979495,
0.007378560066223144,
0.007316448211669922,
0.007318463802337647,
0.0072778878211975095,
0.007160352230072021,
0.007249216079711914,
0.007763807773590088,
0.0076102399826049804,
0.007546112060546875,
0.007664224147796631,
0.007571135997772217,
0.007630400180816651,
0.0072839040756225585,
0.007262176036834717,
0.007222047805786133,
0.007289984226226807,
0.007165599822998047,
0.0072466559410095215,
0.00721727991104126,
0.007264736175537109,
0.007412032127380371,
0.007392416000366211,
0.007345759868621826,
0.007407936096191406,
0.00715993595123291,
0.007150144100189209,
0.007118688106536865,
0.007419551849365234,
0.006836383819580078,
0.00666707181930542,
0.007243648052215577,
0.007343008041381836,
0.0074570560455322265,
0.008039039611816406,
0.00678275203704834,
0.006926303863525391,
0.007035488128662109,
0.006923935890197754,
0.00692467212677002,
0.006892000198364258,
0.006646336078643799,
0.006685472011566162,
0.006659615993499756,
0.006648767948150635,
0.006654047966003418,
0.006678431987762451,
0.006646399974822998,
0.006639455795288086,
0.006651487827301026,
0.006756832122802734,
0.006662752151489258,
0.00663097620010376,
0.006665984153747559,
0.0066462721824646,
0.00667471981048584,
0.006650015830993652,
0.006701536178588867,
0.006644512176513672,
0.0069790401458740235,
0.006642848014831543,
0.006655807971954346
]
},
"throughput": {
"unit": "tokens/s",
"value": 140.14120616278169
},
"energy": {
"unit": "kWh",
"cpu": 7.386967349248714e-08,
"ram": 4.038102061044962e-08,
"gpu": 1.458959252862952e-07,
"total": 2.6014661938923194e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3843986.1426905487
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.47993535995483394,
"mean": 0.006665768888261582,
"stdev": 0.00031714171500471804,
"p50": 0.00672051191329956,
"p90": 0.007062118530273437,
"p95": 0.007103641724586487,
"p99": 0.007432990674972535,
"values": [
0.007028736114501953,
0.006987775802612305,
0.006900735855102539,
0.0074926080703735356,
0.007062528133392334,
0.007069695949554444,
0.006907904148101806,
0.006859776020050049,
0.006937535762786865,
0.006730783939361573,
0.00684441614151001,
0.006860799789428711,
0.006807551860809326,
0.00679423999786377,
0.006785024166107178,
0.0066713600158691405,
0.0067123198509216305,
0.007244800090789795,
0.007058432102203369,
0.006999040126800537,
0.00714137601852417,
0.007072768211364746,
0.007071743965148926,
0.006778880119323731,
0.006754271984100342,
0.00672051191329956,
0.006756351947784424,
0.006678624153137207,
0.006746111869812011,
0.00672051191329956,
0.006763519763946534,
0.006846464157104492,
0.006867968082427979,
0.006831103801727295,
0.00689356803894043,
0.006666240215301514,
0.0066406397819519045,
0.006673408031463623,
0.006880256175994873,
0.006436863899230957,
0.006271999835968017,
0.006782976150512696,
0.006858751773834228,
0.006938560009002686,
0.007408639907836914,
0.0063794879913330075,
0.0065289602279663085,
0.006631423950195312,
0.0065136637687683106,
0.00653004789352417,
0.006497280120849609,
0.006236159801483154,
0.006292479991912842,
0.006276095867156982,
0.006253568172454834,
0.0062494721412658695,
0.006276095867156982,
0.0062638077735900875,
0.006253568172454834,
0.006247424125671387,
0.006372352123260498,
0.006270976066589356,
0.006250495910644531,
0.006277120113372803,
0.0062638077735900875,
0.006294528007507324,
0.006258687973022461,
0.006307839870452881,
0.006261760234832763,
0.0065075201988220215,
0.0062228479385375976,
0.006259712219238281
]
},
"throughput": {
"unit": "tokens/s",
"value": 150.02020273475125
},
"energy": null,
"efficiency": null
}
}
}