{ "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.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.2.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "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": 1039.540224, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 69, "total": 0.48879001379013054, "mean": 0.007083913243335228, "stdev": 0.00045906706882870566, "p50": 0.006845088005065918, "p90": 0.00780003833770752, "p95": 0.008184774208068847, "p99": 0.008587601776123046, "values": [ 0.008103136062622071, 0.007966303825378418, 0.008239199638366699, 0.007751711845397949, 0.007712863922119141, 0.007632160186767578, 0.008569087982177735, 0.008260319709777832, 0.008626943588256835, 0.007896063804626464, 0.0070505599975585935, 0.007061823844909668, 0.007157887935638428, 0.007064191818237304, 0.007023903846740722, 0.007212831974029541, 0.0070991358757019046, 0.007207839965820312, 0.006808224201202392, 0.0068139519691467285, 0.006845088005065918, 0.006821824073791504, 0.0068403520584106444, 0.0068067522048950195, 0.00680620813369751, 0.006803679943084717, 0.006801536083221435, 0.006833888053894043, 0.006732863903045654, 0.006732480049133301, 0.006777919769287109, 0.006800511837005615, 0.006791999816894531, 0.006815936088562012, 0.006813119888305664, 0.006793951988220215, 0.006773056030273438, 0.006792448043823242, 0.0067773118019104, 0.007111360073089599, 0.007029600143432617, 0.007060704231262207, 0.007051104068756103, 0.0070390720367431645, 0.007063072204589843, 0.007037407875061035, 0.007012159824371338, 0.007038303852081299, 0.006820896148681641, 0.006780928134918213, 0.006806911945343018, 0.007092832088470459, 0.007029376029968262, 0.00701804780960083, 0.0077760319709777835, 0.007085472106933594, 0.007062816143035889, 0.006744895935058594, 0.00678115177154541, 0.006764319896697998, 0.006794496059417725, 0.006759456157684326, 0.006742815971374511, 0.006776256084442139, 0.006799071788787842, 0.007016992092132569, 0.006759967803955078, 0.0067699837684631345, 0.006745440006256103 ] }, "throughput": { "unit": "tokens/s", "value": 282.32982693310987 }, "energy": { "unit": "kWh", "cpu": 8.51016810962132e-08, "ram": 4.652699947116427e-08, "gpu": 1.6165885948571571e-07, "total": 2.932875400530932e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6819246.394299411 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1039.540224, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 69, "total": 0.5179092140197752, "mean": 0.007505930637967758, "stdev": 0.0005764770107316242, "p50": 0.007328479766845703, "p90": 0.008110323333740234, "p95": 0.008694758224487302, "p99": 0.009950871887207028, "values": [ 0.00817846393585205, 0.008508383750915527, 0.008819007873535156, 0.008107168197631836, 0.008122943878173828, 0.010236319541931152, 0.007526432037353516, 0.009816543579101562, 0.009221280097961426, 0.0074963197708129885, 0.007466303825378418, 0.007648096084594726, 0.0075560641288757325, 0.007452032089233398, 0.0074925761222839355, 0.007623936176300049, 0.007571584224700928, 0.007407423973083496, 0.007239999771118164, 0.007221375942230225, 0.007238624095916748, 0.007230112075805664, 0.007226399898529053, 0.0071970877647399905, 0.007311776161193848, 0.0071943359375, 0.007419007778167725, 0.007223231792449951, 0.0071196799278259275, 0.007161664009094238, 0.00720304012298584, 0.007217184066772461, 0.00725164794921875, 0.007216000080108643, 0.007214719772338867, 0.007187104225158692, 0.007179391860961914, 0.007328479766845703, 0.007203487873077392, 0.00743993616104126, 0.007423136234283447, 0.007458687782287598, 0.007470560073852539, 0.007484767913818359, 0.007473855972290039, 0.007454559803009033, 0.007430304050445557, 0.007462783813476563, 0.00719152021408081, 0.0071990079879760745, 0.00727023983001709, 0.007449984073638916, 0.007445631980895996, 0.007444543838500977, 0.007534048080444336, 0.007556863784790039, 0.0072698559761047365, 0.007197696208953858, 0.0071823039054870605, 0.007160672187805176, 0.007181695938110352, 0.0071782078742980955, 0.007191487789154053, 0.007417920112609863, 0.007188064098358154, 0.007186975955963135, 0.007175936222076416, 0.007191648006439209, 0.007161087989807129 ] }, "throughput": { "unit": "tokens/s", "value": 133.22798307536073 }, "energy": { "unit": "kWh", "cpu": 8.459616748113483e-08, "ram": 4.6253944258306006e-08, "gpu": 1.5791282474285678e-07, "total": 2.887629364822977e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3463048.3128547347 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 68, "total": 0.9924873933792113, "mean": 0.01459540284381193, "stdev": 0.0009590166831681657, "p50": 0.014223872184753418, "p90": 0.01587419490814209, "p95": 0.016882625102996828, "p99": 0.017942630252838133, "values": [ 0.01650787162780762, 0.017084415435791016, 0.015943679809570312, 0.015844415664672852, 0.017898431777954103, 0.016292863845825196, 0.01799065589904785, 0.017918975830078124, 0.015507455825805663, 0.014551039695739745, 0.014730239868164062, 0.014743552207946778, 0.014550016403198243, 0.01452236843109131, 0.014859264373779296, 0.014732288360595704, 0.014643232345581054, 0.014072799682617187, 0.01407795238494873, 0.014102527618408203, 0.014086208343505859, 0.014080960273742676, 0.014040063858032227, 0.014141440391540527, 0.014028800010681153, 0.014245887756347657, 0.014062591552734375, 0.013898752212524413, 0.013898752212524413, 0.014031871795654297, 0.014025728225708007, 0.014087167739868164, 0.014022656440734863, 0.014089216232299804, 0.013990912437438965, 0.013998080253601074, 0.014143487930297852, 0.014006272315979004, 0.014560256004333496, 0.014486559867858887, 0.014549983978271484, 0.014550016403198243, 0.01454694366455078, 0.014542911529541016, 0.014517184257507323, 0.014495743751525878, 0.014527487754821777, 0.014051327705383301, 0.013993984222412109, 0.014114815711975098, 0.014552063941955566, 0.01449779224395752, 0.014496767997741699, 0.015331328392028809, 0.014667776107788086, 0.014361599922180175, 0.013985792160034179, 0.013988863945007325, 0.013950976371765136, 0.013997056007385255, 0.013950976371765136, 0.013963264465332031, 0.014215167999267577, 0.014019583702087402, 0.014232576370239258, 0.0139683837890625, 0.01397760009765625, 0.013939711570739746 ] }, "throughput": { "unit": "tokens/s", "value": 68.51472417042424 }, "energy": null, "efficiency": null } } }