{ "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.1", "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": 1074.50368, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 55, "total": 0.4923024635314942, "mean": 0.008950953882390802, "stdev": 0.0006787206129238109, "p50": 0.008930784225463867, "p90": 0.009188390159606935, "p95": 0.009336076736450195, "p99": 0.011972436332702638, "values": [ 0.012837887763977051, 0.01123519992828369, 0.00942518424987793, 0.008961440086364746, 0.009037952423095703, 0.008822976112365722, 0.009007007598876952, 0.009043519973754882, 0.009028800010681152, 0.009207615852355957, 0.009077183723449707, 0.009000384330749511, 0.008980128288269043, 0.0088919038772583, 0.009130559921264648, 0.009066047668457032, 0.009243488311767578, 0.009297887802124023, 0.008923968315124512, 0.008976032257080078, 0.008934111595153808, 0.00895958423614502, 0.009090208053588867, 0.008886015892028809, 0.008930784225463867, 0.008887455940246583, 0.009126399993896485, 0.0091595516204834, 0.009117664337158203, 0.008984736442565918, 0.008743359565734863, 0.009000703811645508, 0.008556480407714845, 0.009023903846740722, 0.009116928100585937, 0.008912896156311035, 0.00889408016204834, 0.008811200141906738, 0.008580960273742676, 0.008561535835266114, 0.00853718376159668, 0.008446111679077148, 0.008511808395385742, 0.008552543640136719, 0.008499391555786133, 0.008468895912170411, 0.008478431701660157, 0.008413215637207032, 0.008400832176208496, 0.008408543586730956, 0.008451616287231446, 0.008411423683166504, 0.008407551765441895, 0.008386688232421875, 0.008454496383666993 ] }, "throughput": { "unit": "tokens/s", "value": 223.43987314408992 }, "energy": { "unit": "kWh", "cpu": 1.0445513571912085e-07, "ram": 5.7104999072371836e-08, "gpu": 1.8559712703508837e-07, "total": 3.471572618265811e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5761077.816655553 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1074.50368, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 55, "total": 0.5080765733718873, "mean": 0.009237755879488857, "stdev": 0.0005832359781642462, "p50": 0.009259679794311523, "p90": 0.009536588859558106, "p95": 0.009631398391723632, "p99": 0.011224434146881106, "values": [ 0.012922816276550293, 0.009777664184570312, 0.009497983932495117, 0.009368191719055176, 0.009223520278930664, 0.009259679794311523, 0.009408255577087403, 0.00937939167022705, 0.009302495956420898, 0.00938435173034668, 0.0093985595703125, 0.009416128158569336, 0.00934614372253418, 0.009307711601257325, 0.009552384376525879, 0.009512895584106446, 0.009597087860107422, 0.009295552253723145, 0.009489312171936035, 0.009387167930603027, 0.009257568359375, 0.009303584098815917, 0.009253472328186034, 0.009243359565734863, 0.009202591896057129, 0.009372991561889648, 0.009556927680969239, 0.009283231735229493, 0.009340096473693847, 0.009145183563232422, 0.009378463745117187, 0.008842816352844238, 0.009307488441467286, 0.009398143768310547, 0.009711456298828126, 0.009027168273925782, 0.0091015043258667, 0.008918399810791016, 0.008892224311828614, 0.008856127738952637, 0.008818304061889649, 0.008740480422973634, 0.008809887886047363, 0.008663007736206055, 0.008975520133972167, 0.008730591773986817, 0.00877017593383789, 0.008727104187011718, 0.008684415817260743, 0.009033663749694824, 0.008691807746887208, 0.008709247589111329, 0.008682111740112304, 0.008986399650573731, 0.008833760261535645 ] }, "throughput": { "unit": "tokens/s", "value": 108.25139926249403 }, "energy": { "unit": "kWh", "cpu": 9.760614227924845e-08, "ram": 5.337419795225437e-08, "gpu": 1.760698289649109e-07, "total": 3.2705016919641364e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3057634.8651861995 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.9766215705871581, "mean": 0.01808558464050293, "stdev": 0.0006972631205131539, "p50": 0.01822976016998291, "p90": 0.018713088035583494, "p95": 0.0188333984375, "p99": 0.020030617446899414, "values": [ 0.021194751739501954, 0.018998271942138673, 0.018362367630004883, 0.018300928115844727, 0.018111488342285157, 0.01844326400756836, 0.0184586238861084, 0.018328575134277342, 0.01865727996826172, 0.018494464874267577, 0.018453504562377928, 0.018396160125732423, 0.01822208023071289, 0.018709503173828124, 0.01856716728210449, 0.018812992095947265, 0.018760639190673827, 0.018381824493408205, 0.018428928375244142, 0.0182609920501709, 0.01827123260498047, 0.018404415130615234, 0.01815545654296875, 0.018166784286499024, 0.01823744010925293, 0.018714624404907225, 0.018526208877563476, 0.01841868782043457, 0.018259967803955078, 0.018090015411376954, 0.018024415969848634, 0.01779199981689453, 0.01845248031616211, 0.01887129592895508, 0.01805414390563965, 0.017990720748901366, 0.017820608139038085, 0.017502208709716797, 0.01744588851928711, 0.017386495590209963, 0.01721241569519043, 0.017340415954589843, 0.017250303268432618, 0.017494047164916992, 0.017218528747558595, 0.017288192749023438, 0.017161216735839844, 0.017112064361572265, 0.01746329689025879, 0.01715814399719238, 0.01716531181335449, 0.017116159439086915, 0.017385471343994142, 0.017327104568481445 ] }, "throughput": { "unit": "tokens/s", "value": 55.29265544230655 }, "energy": null, "efficiency": null } } }