{ "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": 1075.257344, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 57, "total": 0.4952314252853395, "mean": 0.008688270619041042, "stdev": 0.0007255537182650411, "p50": 0.00843718433380127, "p90": 0.008820576095581054, "p95": 0.009072928047180172, "p99": 0.012170431709289548, "values": [ 0.012866623878479004, 0.01162342357635498, 0.009779744148254395, 0.008529600143432617, 0.008408736228942872, 0.00839686393737793, 0.008387136459350585, 0.008430047988891602, 0.0084235200881958, 0.008416831970214844, 0.008391136169433594, 0.008410816192626952, 0.008405792236328124, 0.008396032333374024, 0.00843718433380127, 0.008428352355957031, 0.008434304237365723, 0.00837110424041748, 0.00841107177734375, 0.008404288291931152, 0.008410112380981445, 0.008439135551452637, 0.008430335998535156, 0.008420576095581054, 0.008403807640075684, 0.008378591537475586, 0.008362688064575196, 0.008449888229370118, 0.008374688148498535, 0.008384063720703125, 0.008401568412780763, 0.008374527931213379, 0.008566975593566895, 0.008692319869995118, 0.008716575622558594, 0.008685695648193359, 0.008397536277770996, 0.008339327812194824, 0.008377535820007324, 0.00877836799621582, 0.008803808212280273, 0.008896224021911621, 0.00887715244293213, 0.008781824111938476, 0.008668191909790039, 0.008688639640808106, 0.00864345645904541, 0.008689791679382323, 0.008728287696838378, 0.008801440238952636, 0.00865334415435791, 0.008743776321411132, 0.008637375831604004, 0.008644800186157226, 0.008667807579040527, 0.008845727920532226, 0.008722847938537597 ] }, "throughput": { "unit": "tokens/s", "value": 230.19540800407844 }, "energy": { "unit": "kWh", "cpu": 1.0405046607551054e-07, "ram": 5.6884016224725385e-08, "gpu": 1.9025843680700958e-07, "total": 3.5119291910724555e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5694875.640101531 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1075.257344, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 57, "total": 0.5079283504486084, "mean": 0.00891102369208085, "stdev": 0.0005779430110984822, "p50": 0.00874227237701416, "p90": 0.00917795867919922, "p95": 0.009240979194641114, "p99": 0.01117060585021972, "values": [ 0.012918272018432618, 0.009797439575195313, 0.008958815574645996, 0.008694432258605956, 0.008666943550109864, 0.008688768386840821, 0.00871225643157959, 0.008702048301696777, 0.008683327674865723, 0.008691935539245606, 0.008707136154174804, 0.008765536308288574, 0.0088156156539917, 0.008711775779724122, 0.008705439567565918, 0.0087042875289917, 0.008677375793457032, 0.008650239944458007, 0.00866646385192871, 0.008679679870605469, 0.008699423789978027, 0.008660320281982423, 0.008650079727172851, 0.008659775733947755, 0.008640864372253417, 0.008643584251403809, 0.008775648117065429, 0.008692895889282227, 0.00866102409362793, 0.008659263610839844, 0.008639360427856445, 0.008808639526367188, 0.00874227237701416, 0.009014431953430175, 0.008931967735290527, 0.008954463958740234, 0.008679424285888672, 0.008650079727172851, 0.008667455673217774, 0.0091015043258667, 0.00923305606842041, 0.009171392440795898, 0.009272671699523926, 0.009018848419189453, 0.009187808036804199, 0.008940832138061523, 0.008960063934326173, 0.009196736335754395, 0.008922656059265137, 0.008922847747802734, 0.008960639953613281, 0.008940192222595214, 0.009008000373840332, 0.008934432029724122, 0.008828255653381347, 0.008997183799743652, 0.008902463912963867 ] }, "throughput": { "unit": "tokens/s", "value": 112.22055226816325 }, "energy": { "unit": "kWh", "cpu": 9.795308746226412e-08, "ram": 5.3561686234244195e-08, "gpu": 1.7613074519299628e-07, "total": 3.2764551888950465e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3052078.9766614833 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 56, "total": 0.979236864089966, "mean": 0.017486372573035102, "stdev": 0.0006806407008818865, "p50": 0.017163776397705076, "p90": 0.017904128074645996, "p95": 0.018139856815338133, "p99": 0.020139570903778083, "values": [ 0.021625856399536132, 0.018923519134521484, 0.017273855209350587, 0.017098751068115235, 0.017102848052978514, 0.017138687133789063, 0.01714995193481445, 0.017141759872436522, 0.017134592056274413, 0.017124351501464845, 0.01719910430908203, 0.01724313545227051, 0.017140735626220704, 0.01715814399719238, 0.017169408798217774, 0.017115135192871094, 0.017064960479736328, 0.017105920791625977, 0.017094655990600584, 0.01714995193481445, 0.017129472732543945, 0.017104896545410156, 0.017104896545410156, 0.017071104049682616, 0.01705062484741211, 0.017153024673461914, 0.017155071258544922, 0.017078304290771486, 0.01707209587097168, 0.017068031311035157, 0.017155071258544922, 0.01739263916015625, 0.017727487564086913, 0.01767731285095215, 0.017655807495117186, 0.017089536666870117, 0.017040384292602538, 0.01707827186584473, 0.017827903747558594, 0.018101184844970704, 0.01803980827331543, 0.018255872726440428, 0.01780019187927246, 0.017917951583862304, 0.017675264358520508, 0.01762918472290039, 0.01789030456542969, 0.017701887130737306, 0.017754112243652344, 0.017632255554199217, 0.017713151931762695, 0.01767731285095215, 0.01760870361328125, 0.017526784896850587, 0.017869823455810546, 0.017655807495117186 ] }, "throughput": { "unit": "tokens/s", "value": 57.18738954138791 }, "energy": null, "efficiency": null } } }