IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2db94bf 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": "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.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.3.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.3",
"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": 1049.47712,
"max_global_vram": 1353.187328,
"max_process_vram": 0.0,
"max_reserved": 713.03168,
"max_allocated": 509.62176
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.48794278478622427,
"mean": 0.006684147736797594,
"stdev": 0.0006020757374166531,
"p50": 0.006345791816711426,
"p90": 0.007240422344207764,
"p95": 0.007402432060241699,
"p99": 0.008980564880371095,
"values": [
0.010139200210571289,
0.008529984474182128,
0.007204864025115967,
0.007711552143096924,
0.0071758079528808595,
0.007171264171600342,
0.007249311923980713,
0.007442751884460449,
0.0073755521774291994,
0.0072641921043395995,
0.006791584014892578,
0.006900864124298096,
0.0070713281631469725,
0.006908224105834961,
0.0069318079948425294,
0.006795199871063232,
0.0068735041618347165,
0.0068599038124084475,
0.006962048053741455,
0.006988448143005371,
0.006854623794555664,
0.007142367839813232,
0.006909088134765625,
0.0071064958572387696,
0.006738687992095947,
0.006743519783020019,
0.007114528179168701,
0.007253952026367187,
0.007141215801239014,
0.006862912178039551,
0.006539968013763428,
0.006410751819610596,
0.006346720218658447,
0.0063194561004638675,
0.006323808193206787,
0.006337279796600342,
0.006368991851806641,
0.006326208114624024,
0.006331999778747558,
0.006377376079559326,
0.006321568012237549,
0.006324416160583496,
0.0063211841583251955,
0.006319295883178711,
0.0063303041458129886,
0.006289184093475342,
0.006312128067016602,
0.006302847862243653,
0.006297728061676025,
0.006307487964630127,
0.0062988481521606444,
0.006317408084869385,
0.0062770237922668455,
0.006299615859985352,
0.006319808006286621,
0.006345791816711426,
0.0062772479057312015,
0.006295807838439941,
0.00630944013595581,
0.006350368022918701,
0.006284863948822022,
0.006265696048736572,
0.006312640190124512,
0.0062986879348754885,
0.0062848000526428225,
0.006277440071105957,
0.006300831794738769,
0.006308735847473145,
0.006303135871887207,
0.006289184093475342,
0.00629315185546875,
0.006307871818542481,
0.006300896167755127
]
},
"throughput": {
"unit": "tokens/s",
"value": 299.2154091672141
},
"energy": {
"unit": "kWh",
"cpu": 7.902498496113849e-08,
"ram": 4.2999258878624473e-08,
"gpu": 1.5127127627814532e-07,
"total": 2.7329552011790825e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7318085.562240967
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1049.47712,
"max_global_vram": 1353.187328,
"max_process_vram": 0.0,
"max_reserved": 713.03168,
"max_allocated": 509.845504
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.51594921875,
"mean": 0.0070677975171232876,
"stdev": 0.0005634915275267979,
"p50": 0.006706624031066894,
"p90": 0.0076685054779052735,
"p95": 0.00787646083831787,
"p99": 0.008718890419006349,
"values": [
0.010124768257141113,
0.007961631774902344,
0.007483039855957031,
0.007669695854187012,
0.007622303962707519,
0.008172160148620605,
0.007728864192962646,
0.007819680213928223,
0.007747072219848633,
0.0075577921867370605,
0.007224800109863282,
0.008050975799560546,
0.007550879955291748,
0.0074085121154785155,
0.007310431957244873,
0.007356416225433349,
0.007276095867156982,
0.007271008014678955,
0.007538815975189209,
0.00737779188156128,
0.007415552139282227,
0.00766374397277832,
0.0074265279769897465,
0.007220096111297607,
0.007139679908752442,
0.007285376071929931,
0.0074832959175109865,
0.007632832050323487,
0.007261375904083252,
0.00725875186920166,
0.006818975925445557,
0.00668009614944458,
0.006694208145141602,
0.0066743998527526854,
0.006702144145965577,
0.00667248010635376,
0.007048895835876465,
0.006788000106811524,
0.006684447765350342,
0.006677472114562989,
0.0066739521026611326,
0.006674176216125489,
0.006635776042938232,
0.006663392066955567,
0.00668387222290039,
0.006664480209350586,
0.0066583681106567386,
0.006661759853363037,
0.0066789121627807615,
0.006692895889282227,
0.0067552638053894045,
0.0066696319580078125,
0.006703584194183349,
0.006689216136932373,
0.006665088176727295,
0.006686848163604736,
0.0066685757637023925,
0.006681024074554443,
0.006673120021820069,
0.006706624031066894,
0.006684800148010254,
0.006665184020996094,
0.006672544002532959,
0.006750400066375732,
0.006703167915344238,
0.006703999996185303,
0.006680928230285645,
0.006667808055877685,
0.006666848182678223,
0.00666864013671875,
0.006637887954711914,
0.006655648231506348,
0.006723711967468262
]
},
"throughput": {
"unit": "tokens/s",
"value": 141.4867923956906
},
"energy": {
"unit": "kWh",
"cpu": 7.49170556756315e-08,
"ram": 4.114921898291795e-08,
"gpu": 1.4964527037120458e-07,
"total": 2.65711545029754e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3763479.678265472
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.4824258871078493,
"mean": 0.006608573795997933,
"stdev": 0.0004991211318434354,
"p50": 0.006305791854858398,
"p90": 0.007152025699615479,
"p95": 0.007267327976226806,
"p99": 0.008100486221313478,
"values": [
0.009437151908874512,
0.007337984085083008,
0.006949888229370117,
0.007155712127685547,
0.00709939193725586,
0.007580671787261963,
0.0071905279159545895,
0.0072202239036560055,
0.0071823358535766605,
0.007041024208068848,
0.006710271835327148,
0.007510015964508057,
0.006956031799316406,
0.006883327960968018,
0.00679423999786377,
0.006841343879699707,
0.006763519763946534,
0.006755328178405762,
0.0069918718338012695,
0.006856704235076904,
0.006773759841918945,
0.007137279987335205,
0.006872064113616944,
0.006796288013458252,
0.006702079772949219,
0.00682700777053833,
0.00698367977142334,
0.007107583999633789,
0.0068280320167541505,
0.006815743923187256,
0.006419456005096436,
0.006291456222534179,
0.006278143882751465,
0.006287327766418457,
0.006312960147857666,
0.006284287929534912,
0.006261760234832763,
0.006400000095367431,
0.006288383960723877,
0.0062638077735900875,
0.00628326416015625,
0.0062863359451293946,
0.006247424125671387,
0.006253568172454834,
0.006285312175750732,
0.006275072097778321,
0.0062576642036437985,
0.006242271900177002,
0.006285312175750732,
0.006289408206939697,
0.00636518383026123,
0.006251520156860352,
0.006303743839263916,
0.006298624038696289,
0.00627513599395752,
0.006258687973022461,
0.006270976066589356,
0.00628223991394043,
0.0062740478515625,
0.006270976066589356,
0.0062873601913452145,
0.006278143882751465,
0.006273024082183838,
0.006328320026397705,
0.006294528007507324,
0.006305791854858398,
0.006282303810119629,
0.006264832019805908,
0.006269951820373535,
0.00628223991394043,
0.0062494721412658695,
0.006246399879455566,
0.006318079948425293
]
},
"throughput": {
"unit": "tokens/s",
"value": 151.3185796011822
},
"energy": null,
"efficiency": null
}
}
}