{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+cu121", "_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": {}, "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", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.285632, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.219-208.866.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.3.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1049.616384, "max_global_vram": 1353.187328, "max_process_vram": 0.0, "max_reserved": 713.03168, "max_allocated": 509.62176 }, "latency": { "unit": "s", "count": 74, "total": 0.48662233734130855, "mean": 0.006575977531639305, "stdev": 0.0004507876889339963, "p50": 0.006299728155136108, "p90": 0.00721824312210083, "p95": 0.007310179328918457, "p99": 0.007550204114913939, "values": [ 0.007724095821380615, 0.007085792064666748, 0.0072737598419189455, 0.007263423919677735, 0.007199808120727539, 0.007177824020385742, 0.0074858880043029786, 0.007117055892944336, 0.007350240230560303, 0.006868512153625488, 0.006938784122467041, 0.007047520160675049, 0.006873472213745117, 0.00695030403137207, 0.006850560188293457, 0.007131135940551757, 0.007056992053985595, 0.006959392070770264, 0.007288608074188232, 0.007370016098022461, 0.007022240161895752, 0.007137343883514404, 0.00705625581741333, 0.007024384021759033, 0.0066979842185974124, 0.006334144115447998, 0.00632803201675415, 0.006872992038726807, 0.006910751819610596, 0.007226143836975098, 0.007080575942993164, 0.006599040031433106, 0.006464096069335937, 0.006499328136444092, 0.006342112064361572, 0.006292704105377197, 0.0063376321792602535, 0.006172383785247803, 0.006135200023651123, 0.006134719848632813, 0.006122655868530273, 0.006218048095703125, 0.006244703769683838, 0.0062252159118652345, 0.006208320140838623, 0.006225535869598389, 0.006196896076202393, 0.006240384101867676, 0.006211008071899414, 0.006215295791625977, 0.00630675220489502, 0.006231904029846191, 0.0062171840667724606, 0.006192160129547119, 0.006175104141235351, 0.006200384140014648, 0.006225855827331543, 0.006210783958435059, 0.006166592121124268, 0.006174592018127442, 0.006181983947753906, 0.006200191974639893, 0.0062029118537902835, 0.006194079875946045, 0.006158527851104737, 0.0062073922157287595, 0.0061950721740722655, 0.006228544235229492, 0.006177792072296143, 0.006213247776031494, 0.006230432033538819, 0.0062391037940979005, 0.006140096187591553, 0.006162335872650146 ] }, "throughput": { "unit": "tokens/s", "value": 304.13729219379286 }, "energy": { "unit": "kWh", "cpu": 7.71779894914806e-08, "ram": 4.2192845333411034e-08, "gpu": 1.5542220225973828e-07, "total": 2.747930370846299e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7278204.79448337 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1049.616384, "max_global_vram": 1353.187328, "max_process_vram": 0.0, "max_reserved": 713.03168, "max_allocated": 509.845504 }, "latency": { "unit": "s", "count": 74, "total": 0.5139310083389282, "mean": 0.006945013626201733, "stdev": 0.0004395336843904851, "p50": 0.006672399997711182, "p90": 0.007557283067703247, "p95": 0.007673992133140564, "p99": 0.007833182640075683, "values": [ 0.007463615894317627, 0.007811935901641845, 0.007668672084808349, 0.00768387222290039, 0.007473887920379639, 0.007621024131774902, 0.007553631782531738, 0.007836639881134033, 0.007493855953216552, 0.007323040008544922, 0.007411007881164551, 0.007558847904205322, 0.007368192195892334, 0.007235104084014892, 0.007280352115631103, 0.007397408008575439, 0.007268447875976563, 0.007437695980072021, 0.007559936046600341, 0.00783190393447876, 0.00739299201965332, 0.007432096004486084, 0.007342527866363526, 0.0073935680389404295, 0.007378367900848388, 0.006698080062866211, 0.007102015972137451, 0.007311391830444336, 0.007416031837463379, 0.007160672187805176, 0.00737391996383667, 0.006882880210876465, 0.006798495769500732, 0.006808383941650391, 0.0067067198753356936, 0.006719808101654053, 0.006489120006561279, 0.006579808235168457, 0.006506752014160156, 0.0065008320808410645, 0.006496767997741699, 0.006581600189208984, 0.006558752059936524, 0.006570464134216309, 0.006598144054412842, 0.006596320152282715, 0.006570847988128662, 0.0065598077774047855, 0.006596096038818359, 0.006585472106933594, 0.006684127807617187, 0.006561439990997314, 0.006584479808807373, 0.006646368026733398, 0.0065933442115783695, 0.006563968181610107, 0.006544735908508301, 0.00663318395614624, 0.006600192070007324, 0.0065780158042907716, 0.006558176040649414, 0.006536096096038818, 0.0065576000213623045, 0.006660672187805175, 0.006572000026702881, 0.006560448169708252, 0.006607967853546143, 0.006562304019927978, 0.006631040096282959, 0.006599167823791504, 0.006554880142211914, 0.006549791812896728, 0.006527840137481689, 0.006475359916687012 ] }, "throughput": { "unit": "tokens/s", "value": 143.98819841436446 }, "energy": { "unit": "kWh", "cpu": 7.305081965990397e-08, "ram": 3.958120297018232e-08, "gpu": 1.7985584374026344e-07, "total": 2.9248786637034973e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3418945.245180853 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 74, "total": 0.4805845131874085, "mean": 0.0064943853133433566, "stdev": 0.0003748631868526816, "p50": 0.006271487951278687, "p90": 0.007012044858932495, "p95": 0.00713600013256073, "p99": 0.007274291386604309, "values": [ 0.006936575889587402, 0.007189504146575928, 0.007134208202362061, 0.007139328002929687, 0.0069212160110473635, 0.007087103843688965, 0.0070348801612854, 0.007304192066192627, 0.006941696166992187, 0.006808576107025147, 0.006889472007751465, 0.007024640083312988, 0.006819839954376221, 0.006686719894409179, 0.006761472225189209, 0.0068618240356445315, 0.006749184131622315, 0.006904831886291504, 0.006982656002044678, 0.007263232231140137, 0.006886367797851563, 0.006788095951080322, 0.006833151817321777, 0.006889408111572266, 0.006947840213775635, 0.0062791681289672855, 0.006604800224304199, 0.006796288013458252, 0.006894591808319092, 0.00672870397567749, 0.006910975933074951, 0.006483903884887695, 0.006401023864746094, 0.00637440013885498, 0.006316031932830811, 0.006325247764587402, 0.006100992202758789, 0.006177792072296143, 0.006112256050109863, 0.006115327835083008, 0.006113279819488526, 0.006196224212646485, 0.006171648025512695, 0.0061849279403686525, 0.006211584091186524, 0.0061931519508361815, 0.00617574405670166, 0.006161407947540283, 0.00619212818145752, 0.006199295997619629, 0.006283199787139893, 0.006168575763702393, 0.006166528224945069, 0.0062494721412658695, 0.006194176197052002, 0.006178815841674804, 0.006145023822784424, 0.006208479881286621, 0.006203392028808594, 0.006182911872863769, 0.006162432193756104, 0.006147071838378906, 0.006146111965179443, 0.0062638077735900875, 0.00617574405670166, 0.0061645121574401855, 0.006220799922943115, 0.006139904022216797, 0.006236192226409912, 0.006213600158691406, 0.006169600009918213, 0.006162432193756104, 0.006112256050109863, 0.006082560062408447 ] }, "throughput": { "unit": "tokens/s", "value": 153.9791607290995 }, "energy": null, "efficiency": null } } }