{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.5.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": 2, "sequence_length": 16, "num_choices": 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.248768, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.228-219.884.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.5.0.dev0", "optimum_benchmark_commit": null, "transformers_version": "4.46.3", "transformers_commit": null, "accelerate_version": "1.1.1", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.11", "timm_commit": null, "peft_version": "0.13.2", "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load_model": { "memory": { "unit": "MB", "max_ram": 825.483264, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.08118169403076173 ], "count": 1, "total": 0.08118169403076173, "mean": 0.08118169403076173, "p50": 0.08118169403076173, "p90": 0.08118169403076173, "p95": 0.08118169403076173, "p99": 0.08118169403076173, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00010617642026944452, "ram": 5.817424805264838e-05, "gpu": 0.00014297872549399993, "total": 0.00030732939381609287 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1280.442368, "max_global_vram": 1379.401728, "max_process_vram": 0.0, "max_reserved": 731.906048, "max_allocated": 538.394112 }, "latency": { "unit": "s", "values": [ 0.00838377571105957, 0.007867199897766113, 0.007812863826751709, 0.007908991813659668, 0.008244000434875488, 0.00802175998687744, 0.007903168201446533, 0.007929247856140137, 0.008090144157409667, 0.008123040199279785, 0.008041855812072753, 0.007964096069335937, 0.007829343795776367, 0.007858784198760986, 0.0077554240226745605, 0.007856895923614502, 0.0076789441108703616, 0.007834368228912354, 0.00805356788635254, 0.008162624359130859, 0.008196543693542481, 0.008469311714172364, 0.007639423847198486, 0.0076258878707885745, 0.00787225580215454, 0.008435968399047852, 0.008090880393981934, 0.008259039878845215, 0.00801916790008545, 0.007984288215637207, 0.008013664245605468, 0.007441120147705078, 0.007341663837432861, 0.0074999361038208005, 0.0073004159927368166, 0.007242623805999756, 0.007201344013214111, 0.007172095775604248, 0.007223999977111816, 0.00725161600112915, 0.007193120002746582, 0.00759548807144165, 0.007371647834777832, 0.0071896638870239254, 0.007044960021972657, 0.007141952037811279, 0.00713651180267334, 0.007235263824462891, 0.007160799980163574, 0.007322624206542969, 0.007292640209197998, 0.007328000068664551, 0.007319808006286621, 0.0074551358222961425, 0.0073300800323486326, 0.0072708802223205565, 0.0073854079246521, 0.007474559783935547, 0.007495488166809082, 0.007566112041473389, 0.0070884799957275394, 0.007047584056854248, 0.00720524787902832, 0.007161695957183838, 0.007100480079650879, 0.0072193598747253415, 0.007061791896820068 ], "count": 67, "total": 0.509796127796173, "mean": 0.0076088974297936285, "p50": 0.0074999361038208005, "p90": 0.008138873863220215, "p95": 0.008254528045654297, "p99": 0.008447305126190187, "stdev": 0.0004028469508310741, "stdev_": 5.294419520674236 }, "throughput": { "unit": "samples/s", "value": 262.8501722429244 }, "energy": { "unit": "kWh", "cpu": 8.735783411458384e-08, "ram": 4.7733561606522195e-08, "gpu": 1.9649117026470525e-07, "total": 3.315825659858113e-07 }, "efficiency": { "unit": "samples/kWh", "value": 6031680.206267484 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1280.442368, "max_global_vram": 1379.401728, "max_process_vram": 0.0, "max_reserved": 731.906048, "max_allocated": 538.394624 }, "latency": { "unit": "s", "values": [ 0.00780083179473877, 0.007502912044525146, 0.007607552051544189, 0.007761792182922363, 0.007908544063568116, 0.00795801591873169, 0.007515583992004395, 0.007808351993560791, 0.007853024005889893, 0.007918623924255372, 0.008497216224670411, 0.007525279998779297, 0.007900544166564941, 0.007431327819824219, 0.007520671844482422, 0.007371551990509033, 0.007442048072814941, 0.007494688034057617, 0.007815296173095704, 0.007931712150573731, 0.008356287956237793, 0.0074720001220703125, 0.007699903964996338, 0.007689919948577881, 0.007669375896453857, 0.007910880088806152, 0.008240863800048829, 0.007840447902679444, 0.008056575775146485, 0.007782015800476074, 0.007174240112304687, 0.007057759761810303, 0.007831488132476807, 0.007129055976867676, 0.0071617279052734375, 0.007057439804077148, 0.007040128231048584, 0.006977344036102295, 0.007007328033447266, 0.006989151954650879, 0.007313087940216064, 0.007290463924407959, 0.00671782398223877, 0.0069079680442810055, 0.0067738242149353025, 0.006789760112762451, 0.007105472087860107, 0.006864543914794922, 0.0067890558242797855, 0.007051296234130859, 0.007166944026947022, 0.0070841598510742185, 0.0074199681282043455, 0.007160895824432373, 0.007078495979309082, 0.0070358080863952635, 0.0071983041763305665, 0.007043647766113281, 0.007190112113952637, 0.006963327884674072, 0.006862143993377686, 0.0068087677955627444, 0.006774112224578858, 0.006805344104766846, 0.00701635217666626, 0.007125279903411865, 0.006811007976531982 ], "count": 67, "total": 0.4938574719429015, "mean": 0.007371007043923905, "p50": 0.007290463924407959, "p90": 0.007913977622985839, "p95": 0.008027007818222047, "p99": 0.008404203567504884, "stdev": 0.0004365310805206937, "stdev_": 5.922271921860888 }, "throughput": { "unit": "tokens/s", "value": 271.333345373567 }, "energy": { "unit": "kWh", "cpu": 7.677901854903673e-08, "ram": 4.195816268769528e-08, "gpu": 1.5611946189967504e-07, "total": 2.7485664313640694e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7276520.50602769 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.007327744007110596, 0.007062528133392334, 0.007169023990631103, 0.0072969598770141605, 0.007455743789672851, 0.007497727870941162, 0.007051263809204102, 0.007324672222137451, 0.007370751857757568, 0.007449600219726562, 0.008043519973754883, 0.007064576148986816, 0.007409664154052734, 0.007003136157989502, 0.007051263809204102, 0.006882304191589355, 0.006991903781890869, 0.00704201602935791, 0.007315455913543701, 0.007448575973510742, 0.007883776187896728, 0.007046144008636474, 0.007214079856872559, 0.00723967981338501, 0.007228415966033935, 0.007479296207427978, 0.007734272003173828, 0.007324672222137451, 0.007510015964508057, 0.007282688140869141, 0.006793216228485107, 0.006681600093841553, 0.00740556812286377, 0.0067686400413513184, 0.006804480075836182, 0.006702079772949219, 0.006685696125030518, 0.006626304149627686, 0.006650879859924317, 0.006633471965789795, 0.006823935985565186, 0.0069253120422363285, 0.00637440013885498, 0.006561791896820069, 0.006428671836853027, 0.0064430079460144046, 0.006738944053649902, 0.006519807815551758, 0.006445055961608887, 0.006691840171813965, 0.006791168212890625, 0.00669593620300293, 0.007038976192474365, 0.006803455829620361, 0.006719520092010498, 0.006680575847625733, 0.006845439910888672, 0.006667263984680176, 0.006837247848510742, 0.006609920024871826, 0.006515711784362793, 0.006463488101959228, 0.006428671836853027, 0.006452223777770996, 0.006661087989807129, 0.006758399963378906, 0.006452223777770996 ], "count": 67, "total": 0.46632748794555645, "mean": 0.0069601117603814424, "p50": 0.006845439910888672, "p90": 0.007452057647705078, "p95": 0.007506329536437989, "p99": 0.007938089075088502, "stdev": 0.0003861772330080678, "stdev_": 5.548434368630076 }, "throughput": null, "energy": null, "efficiency": null } } }