{ "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.1", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 790.880256, "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.34276708984375, "mean": 7.34276708984375, "stdev": 0.0, "p50": 7.34276708984375, "p90": 7.34276708984375, "p95": 7.34276708984375, "p99": 7.34276708984375, "values": [ 7.34276708984375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0224233736113635e-06, "ram": 5.214529278648225e-07, "gpu": 0.0, "total": 1.5438763014761859e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1195.147264, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 71, "total": 0.48795196771621696, "mean": 0.0068725629255805215, "stdev": 0.0003335193487592067, "p50": 0.006918816089630127, "p90": 0.007293983936309815, "p95": 0.007353487968444825, "p99": 0.007539836931228637, "values": [ 0.007707680225372314, 0.007467904090881348, 0.007339615821838379, 0.007248159885406494, 0.007293983936309815, 0.006898816108703613, 0.006980480194091797, 0.007100863933563233, 0.007312479972839355, 0.007182400226593017, 0.007348703861236572, 0.0071241922378540035, 0.0069361281394958495, 0.0070804481506347655, 0.007058335781097412, 0.006974239826202392, 0.00724070405960083, 0.007204224109649658, 0.006986976146697998, 0.007128831863403321, 0.007112063884735107, 0.006883039951324463, 0.007179520130157471, 0.007205376148223877, 0.007153791904449463, 0.006982399940490723, 0.006974080085754395, 0.006891359806060791, 0.00695743989944458, 0.007077600002288818, 0.007162496089935303, 0.007358272075653077, 0.007096864223480224, 0.006987648010253906, 0.007037375926971436, 0.00699177598953247, 0.006840479850769043, 0.006635200023651123, 0.00687775993347168, 0.006509664058685302, 0.0065071358680725095, 0.006833888053894043, 0.00715990400314331, 0.007423232078552246, 0.006918816089630127, 0.006781919956207276, 0.006808063983917236, 0.0066212158203125, 0.006617887973785401, 0.006369823932647705, 0.006566559791564942, 0.006618463993072509, 0.00659443187713623, 0.006729599952697754, 0.006621056079864502, 0.006583263874053955, 0.006619103908538818, 0.006610464096069336, 0.006651264190673828, 0.006408959865570068, 0.00636297607421875, 0.0063870720863342285, 0.006410943984985352, 0.006385791778564453, 0.00633900785446167, 0.00640121603012085, 0.0064050559997558595, 0.006359136104583741, 0.006523583889007568, 0.006451072216033936, 0.006351679801940918 ] }, "throughput": { "unit": "tokens/s", "value": 291.012249965112 }, "energy": { "unit": "kWh", "cpu": 8.169829289272048e-08, "ram": 4.466757139546454e-08, "gpu": 1.5913614263448418e-07, "total": 2.8550200692266916e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7005204.697358637 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1213.554688, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 71, "total": 0.51347696018219, "mean": 0.007232069861720986, "stdev": 0.0003427108843005394, "p50": 0.007284895896911621, "p90": 0.007695519924163818, "p95": 0.007738672018051148, "p99": 0.007855724716186523, "values": [ 0.00789689588546753, 0.007838079929351807, 0.007559103965759277, 0.007657919883728027, 0.0074347519874572755, 0.007307487964630127, 0.007451488018035889, 0.0075330882072448735, 0.007739232063293457, 0.007741504192352295, 0.007709280014038086, 0.0074432001113891606, 0.007407839775085449, 0.007398208141326904, 0.007215936183929444, 0.007518655776977539, 0.0075799040794372555, 0.007607456207275391, 0.0074815359115600584, 0.0074720001220703125, 0.007327360153198242, 0.007468224048614502, 0.0077266240119934085, 0.007695519924163818, 0.007296319961547852, 0.007296031951904297, 0.007468255996704101, 0.007291456222534179, 0.007271488189697265, 0.007597568035125732, 0.007650815963745118, 0.007738111972808838, 0.007466720104217529, 0.007397952079772949, 0.007341951847076416, 0.007284895896911621, 0.007160895824432373, 0.007158815860748291, 0.006925856113433838, 0.006776959896087647, 0.0070087361335754396, 0.007246816158294677, 0.007598015785217285, 0.007524991989135742, 0.007142240047454834, 0.007092319965362549, 0.007006879806518555, 0.007131040096282959, 0.006947775840759277, 0.006761536121368408, 0.006932544231414795, 0.006970272064208984, 0.007015423774719238, 0.006940383911132813, 0.006950655937194824, 0.0069565439224243165, 0.006947103977203369, 0.006987391948699951, 0.007065887928009033, 0.006747424125671387, 0.0067852802276611324, 0.006712768077850342, 0.006719103813171387, 0.006724639892578125, 0.006734399795532226, 0.006684063911437988, 0.006740960121154785, 0.006718048095703125, 0.006892032146453857, 0.006706975936889649, 0.006749311923980713 ] }, "throughput": { "unit": "tokens/s", "value": 138.27300055450988 }, "energy": { "unit": "kWh", "cpu": 7.246814429162539e-08, "ram": 3.961815321177794e-08, "gpu": 1.4232152998889165e-07, "total": 2.5440782749229504e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3930696.6686403775 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.47975209474563607, "mean": 0.006757071756980789, "stdev": 0.0002862368926851269, "p50": 0.006766592025756836, "p90": 0.007131135940551757, "p95": 0.007188992023468017, "p99": 0.007304396724700927, "values": [ 0.0073431038856506346, 0.007287807941436767, 0.007035903930664063, 0.007130112171173096, 0.00694374418258667, 0.006785024166107178, 0.006929408073425293, 0.006985727787017822, 0.00719155216217041, 0.007186431884765625, 0.007160831928253173, 0.006906879901885986, 0.006880256175994873, 0.006884352207183838, 0.006710271835327148, 0.006989791870117188, 0.007048192024230957, 0.007030784130096435, 0.006936575889587402, 0.00695091199874878, 0.006822912216186523, 0.006949888229370117, 0.007204864025115967, 0.007131135940551757, 0.006797311782836914, 0.006780928134918213, 0.006953983783721924, 0.006786015987396241, 0.006766592025756836, 0.007078911781311035, 0.007109632015228271, 0.007181312084197998, 0.006956031799316406, 0.006881279945373535, 0.0068321280479431154, 0.006762495994567871, 0.006676479816436768, 0.006659071922302246, 0.006499328136444092, 0.006375423908233643, 0.006562816143035889, 0.0067420158386230465, 0.0070594558715820314, 0.007035903930664063, 0.0067041277885437015, 0.006670335769653321, 0.006594560146331787, 0.006731776237487793, 0.00653004789352417, 0.006352896213531494, 0.006523903846740723, 0.0065391998291015625, 0.006618112087249756, 0.006540287971496582, 0.006553599834442139, 0.006549503803253174, 0.006511616230010986, 0.006576128005981445, 0.006667263984680176, 0.006347775936126709, 0.006397952079772949, 0.006316031932830811, 0.006326272010803223, 0.006325247764587402, 0.006347775936126709, 0.006295519828796387, 0.006330368041992188, 0.006331391811370849, 0.006494272232055664, 0.006304768085479737, 0.006347775936126709 ] }, "throughput": { "unit": "tokens/s", "value": 147.99310055674508 }, "energy": null, "efficiency": null } } }