{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.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": 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-212.873.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.2", "transformers_commit": null, "accelerate_version": "0.34.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.12.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 804.098048, "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.882859375, "mean": 7.882859375, "stdev": 0.0, "p50": 7.882859375, "p90": 7.882859375, "p95": 7.882859375, "p99": 7.882859375, "values": [ 7.882859375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.654893819446878e-07, "ram": 5.129358660638274e-07, "gpu": 0.0, "total": 1.4784252480085152e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1209.110528, "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.4877573757171631, "mean": 0.006869822193199481, "stdev": 0.0003306008411783269, "p50": 0.006963712215423584, "p90": 0.0072073922157287595, "p95": 0.007252367973327636, "p99": 0.0074025663375854485, "values": [ 0.007568640232086182, 0.007256383895874023, 0.0071943678855896, 0.00724835205078125, 0.007130208015441894, 0.007017792224884033, 0.006998720169067382, 0.00702246379852295, 0.006913055896759033, 0.007171199798583984, 0.007188511848449707, 0.006965760231018066, 0.006940415859222412, 0.0072073922157287595, 0.007144864082336426, 0.007246240139007569, 0.0070720319747924806, 0.006952127933502197, 0.0070752639770507815, 0.006851840019226074, 0.006933792114257813, 0.006996448040008545, 0.007001791954040527, 0.006978784084320068, 0.007180607795715332, 0.007093599796295166, 0.006990848064422607, 0.00688918399810791, 0.007150623798370361, 0.006916031837463379, 0.007016255855560303, 0.007052159786224365, 0.006952191829681396, 0.007211487770080566, 0.006967616081237793, 0.007068607807159424, 0.006978400230407715, 0.006855552196502686, 0.00712556791305542, 0.007185376167297363, 0.007155360221862793, 0.006963712215423584, 0.007196640014648438, 0.006815199851989746, 0.0069071040153503415, 0.006802207946777343, 0.006887519836425781, 0.0065978879928588864, 0.006411776065826416, 0.00660643196105957, 0.0073313918113708494, 0.007303040027618408, 0.006948895931243896, 0.0067363839149475096, 0.006601856231689453, 0.006615744113922119, 0.006390687942504883, 0.006497920036315918, 0.006268191814422608, 0.0062494721412658695, 0.006268864154815674, 0.00630847978591919, 0.006396224021911621, 0.006336544036865234, 0.0066054720878601075, 0.006265888214111328, 0.0064527359008789064, 0.006319200038909912, 0.00629804801940918, 0.006242623805999756, 0.006265312194824219 ] }, "throughput": { "unit": "tokens/s", "value": 291.12835001462247 }, "energy": { "unit": "kWh", "cpu": 7.893026086276902e-08, "ram": 4.3022058277902886e-08, "gpu": 1.4850269422516695e-07, "total": 2.7045501336583884e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7394945.189256455 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1227.456512, "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.5146387534141538, "mean": 0.007248433146678225, "stdev": 0.00037940333869479427, "p50": 0.007379263877868652, "p90": 0.00760425615310669, "p95": 0.007743232011795043, "p99": 0.007872428750991822, "values": [ 0.007724160194396972, 0.00760425615310669, 0.007719103813171387, 0.007565919876098633, 0.007843071937561036, 0.007527359962463379, 0.0072765440940856935, 0.007422111988067627, 0.0076028800010681154, 0.0076863040924072265, 0.007429024219512939, 0.007310368061065674, 0.007470592021942139, 0.007594240188598633, 0.0073927040100097655, 0.007407423973083496, 0.0076005120277404786, 0.007385727882385254, 0.007229856014251709, 0.007136896133422852, 0.00760368013381958, 0.0073992319107055666, 0.007282464027404785, 0.007441696166992188, 0.007477183818817138, 0.007372543811798095, 0.007379263877868652, 0.007762303829193115, 0.007404672145843506, 0.007412576198577881, 0.007455808162689209, 0.007562464237213135, 0.007400991916656494, 0.007291520118713379, 0.007576576232910156, 0.007319647789001465, 0.007255680084228515, 0.007337279796600342, 0.0075586562156677245, 0.007586463928222657, 0.00743836784362793, 0.007378943920135498, 0.007410272121429444, 0.007446464061737061, 0.0071727361679077145, 0.0069428482055664065, 0.007294879913330078, 0.006835296154022217, 0.006732384204864502, 0.007940927982330322, 0.007589951992034912, 0.007807519912719727, 0.007102496147155761, 0.006932703971862793, 0.00701577615737915, 0.007001311779022217, 0.006609248161315918, 0.006820703983306885, 0.006569215774536133, 0.006566559791564942, 0.006665408134460449, 0.0067041277885437015, 0.006715040206909179, 0.006687615871429443, 0.006880928039550782, 0.006713151931762695, 0.006560832023620605, 0.006580959796905517, 0.006570496082305908, 0.0065601921081542966, 0.006581632137298584 ] }, "throughput": { "unit": "tokens/s", "value": 137.96085026434642 }, "energy": { "unit": "kWh", "cpu": 7.48910461177558e-08, "ram": 4.107421562740496e-08, "gpu": 1.461476136449594e-07, "total": 2.6211287539012004e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3815150.242091822 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.4800738239288329, "mean": 0.006761603153927227, "stdev": 0.00032053699478438617, "p50": 0.0068577280044555666, "p90": 0.007096320152282715, "p95": 0.007200799942016601, "p99": 0.007325343990325928, "values": [ 0.007161856174468994, 0.007081984043121338, 0.007179327964782715, 0.007038976192474365, 0.007301055908203125, 0.007013408184051514, 0.006793216228485107, 0.006920095920562744, 0.007051360130310058, 0.007134208202362061, 0.006894559860229492, 0.0067870721817016606, 0.006920224189758301, 0.0070553598403930665, 0.00687820816040039, 0.006854656219482422, 0.0070553598403930665, 0.006876160144805908, 0.006752255916595459, 0.006650720119476318, 0.007096320152282715, 0.006859776020050049, 0.006776927947998047, 0.006911104202270508, 0.0069612798690795894, 0.006859776020050049, 0.006882304191589355, 0.007222271919250488, 0.006895616054534912, 0.0068577280044555666, 0.006960127830505371, 0.007009280204772949, 0.006818816184997558, 0.006803455829620361, 0.007049215793609619, 0.006815743923187256, 0.0067348480224609375, 0.006799359798431396, 0.007009280204772949, 0.007000063896179199, 0.006911968231201172, 0.0068577280044555666, 0.0069324798583984375, 0.00693555212020874, 0.006646783828735352, 0.0064880638122558594, 0.006746111869812011, 0.006434815883636475, 0.00628927993774414, 0.0073820161819458, 0.007024640083312988, 0.007279615879058838, 0.006672383785247803, 0.00653926420211792, 0.006621183872222901, 0.006604800224304199, 0.006232063770294189, 0.0064430079460144046, 0.006182911872863769, 0.006178815841674804, 0.006277120113372803, 0.006307839870452881, 0.006334464073181153, 0.0062986559867858885, 0.006460351943969727, 0.006335487842559814, 0.006182911872863769, 0.006199295997619629, 0.0061634559631347655, 0.0061829757690429685, 0.0062044157981872555 ] }, "throughput": { "unit": "tokens/s", "value": 147.89392060360524 }, "energy": null, "efficiency": null } } }