{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.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.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1093.726208, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 56, "total": 0.49762982177734366, "mean": 0.008886246817452568, "stdev": 0.00032719544968057355, "p50": 0.008962831974029542, "p90": 0.00919647979736328, "p95": 0.009472575902938842, "p99": 0.009675689506530761, "values": [ 0.009610719680786133, 0.009426527976989747, 0.00929094409942627, 0.009732255935668946, 0.008988063812255859, 0.00889737606048584, 0.00898185634613037, 0.009088607788085937, 0.009049920082092286, 0.009122591972351074, 0.009061568260192871, 0.009629407882690429, 0.009045696258544922, 0.008880895614624023, 0.009030240058898926, 0.008977984428405762, 0.00909603214263916, 0.009118047714233399, 0.008931327819824218, 0.009063743591308593, 0.008990655899047852, 0.008983839988708496, 0.009115424156188965, 0.00889795207977295, 0.008966367721557617, 0.0089749755859375, 0.009190176010131836, 0.009202783584594726, 0.008983039855957031, 0.009119808197021484, 0.008743743896484375, 0.008906623840332032, 0.008562175750732422, 0.008857631683349609, 0.008959296226501465, 0.009137663841247558, 0.008966527938842773, 0.008911104202270507, 0.008765664100646973, 0.008812128067016601, 0.008741696357727051, 0.008459232330322265, 0.008467231750488281, 0.008462143898010253, 0.0084584321975708, 0.008462559700012208, 0.008430975914001465, 0.008415936470031738, 0.008461119651794434, 0.00844863986968994, 0.008470879554748536, 0.008460736274719239, 0.008454336166381835, 0.008463839530944824, 0.008440511703491211, 0.008460160255432128 ] }, "throughput": { "unit": "tokens/s", "value": 225.06689731732465 }, "energy": { "unit": "kWh", "cpu": 1.056085762841629e-07, "ram": 5.7741385699528996e-08, "gpu": 1.8729366015929425e-07, "total": 3.506436221429862e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5703796.885786321 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1093.726208, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 56, "total": 0.51495929813385, "mean": 0.009195701752390179, "stdev": 0.00032114506147693395, "p50": 0.00927393627166748, "p90": 0.009549520015716552, "p95": 0.009703960418701172, "p99": 0.009890307235717774, "values": [ 0.009601280212402344, 0.009767200469970703, 0.009945887565612793, 0.009365471839904785, 0.009384672164916992, 0.009266528129577636, 0.009393759727478027, 0.00940499210357666, 0.009317312240600586, 0.009397343635559082, 0.009844832420349121, 0.009682880401611329, 0.009497759819030761, 0.009271072387695313, 0.00928159999847412, 0.009389887809753418, 0.009448287963867187, 0.009341952323913574, 0.009468288421630859, 0.009358400344848633, 0.00927616024017334, 0.009306912422180175, 0.009271488189697266, 0.00927171230316162, 0.00937500762939453, 0.009319647789001465, 0.009611519813537597, 0.009349472045898437, 0.00932703971862793, 0.009208127975463868, 0.009172096252441406, 0.008893535614013673, 0.00901296043395996, 0.009282848358154298, 0.009489855766296386, 0.009255167961120605, 0.009295999526977539, 0.009100383758544921, 0.009121919631958008, 0.009114080429077149, 0.009207584381103516, 0.008746560096740724, 0.008773183822631836, 0.008771103858947754, 0.008749855995178222, 0.008711232185363769, 0.008758272171020508, 0.008761183738708496, 0.008759360313415527, 0.008744671821594238, 0.008715456008911132, 0.008718560218811035, 0.008723487854003906, 0.008746272087097167, 0.008848896026611328, 0.008738271713256836 ] }, "throughput": { "unit": "tokens/s", "value": 108.74645860932544 }, "energy": { "unit": "kWh", "cpu": 9.66628950806361e-08, "ram": 5.285272827752575e-08, "gpu": 1.72033369298339e-07, "total": 3.215489926565008e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3109945.9890650753 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 55, "total": 0.9953013153076171, "mean": 0.018096387551047585, "stdev": 0.000620149565861437, "p50": 0.018282495498657226, "p90": 0.018753574371337893, "p95": 0.01919988784790039, "p99": 0.019316636810302733, "values": [ 0.01926857566833496, 0.01924502372741699, 0.019180543899536134, 0.018380800247192384, 0.01824051284790039, 0.01839308738708496, 0.018518016815185546, 0.01841766357421875, 0.018515968322753908, 0.018948095321655273, 0.019373056411743163, 0.018566144943237304, 0.01820057678222656, 0.018342912673950194, 0.018355199813842774, 0.018611200332641603, 0.018487295150756835, 0.018431039810180665, 0.018464704513549805, 0.018266111373901366, 0.018361343383789062, 0.0184268798828125, 0.01820159912109375, 0.018367488861083983, 0.018310144424438478, 0.01884774398803711, 0.018612319946289063, 0.018312095642089844, 0.018420736312866212, 0.017910783767700195, 0.017944576263427735, 0.017564672470092774, 0.018118656158447266, 0.01843302345275879, 0.018546688079833985, 0.018282495498657226, 0.018085887908935547, 0.017911808013916015, 0.017960960388183594, 0.017968128204345703, 0.017252351760864256, 0.01726464080810547, 0.01725951957702637, 0.01724415969848633, 0.01720012855529785, 0.017183744430541992, 0.01722572708129883, 0.01724723243713379, 0.01722163200378418, 0.017209344863891602, 0.01721651268005371, 0.01720524787902832, 0.01722572708129883, 0.017311744689941407, 0.01723904037475586 ] }, "throughput": { "unit": "tokens/s", "value": 55.259647660569186 }, "energy": null, "efficiency": null } } }