{ "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": "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.293824, "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.2.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "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.706496, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 71, "total": 0.4897065272331237, "mean": 0.006897275031452448, "stdev": 0.0003345644170988981, "p50": 0.006950272083282471, "p90": 0.007362080097198486, "p95": 0.007471040010452271, "p99": 0.00756693754196167, "values": [ 0.007612544059753418, 0.007330143928527832, 0.007324575901031494, 0.007212800025939941, 0.00717196798324585, 0.0069526081085205076, 0.007008895874023437, 0.007179232120513916, 0.007097439765930176, 0.00701039981842041, 0.007455711841583252, 0.007460671901702881, 0.0074011201858520505, 0.006997504234313965, 0.007312895774841309, 0.007362080097198486, 0.00748140811920166, 0.0075181441307067874, 0.0070275840759277345, 0.007093535900115967, 0.007058015823364258, 0.007027679920196533, 0.007166656017303466, 0.006991903781890869, 0.006951200008392334, 0.007024928092956543, 0.007170432090759278, 0.007131455898284912, 0.007016640186309814, 0.006965536117553711, 0.006718111991882324, 0.006950272083282471, 0.006617760181427002, 0.006551519870758056, 0.006599296092987061, 0.006691359996795655, 0.007547391891479492, 0.0072202239036560055, 0.007223392009735107, 0.00698745584487915, 0.0064793920516967776, 0.006435328006744385, 0.006452479839324951, 0.006472576141357422, 0.006433343887329102, 0.0067069120407104495, 0.006744959831237793, 0.006771359920501709, 0.006750432014465332, 0.006985439777374268, 0.006805344104766846, 0.00671673583984375, 0.006753824234008789, 0.006774528026580811, 0.006718751907348633, 0.0067674560546875, 0.0067712640762329105, 0.006733727931976318, 0.0067674560546875, 0.006418335914611817, 0.006419519901275635, 0.0064642238616943355, 0.006386847972869873, 0.006400800228118896, 0.006443359851837158, 0.006388639926910401, 0.0067407040596008305, 0.006712607860565186, 0.006716928005218506, 0.0066277761459350585, 0.006322976112365723 ] }, "throughput": { "unit": "tokens/s", "value": 289.9695881170095 }, "energy": { "unit": "kWh", "cpu": 7.968005251297749e-08, "ram": 4.3563886940618814e-08, "gpu": 1.5862801653691247e-07, "total": 2.8187195599050875e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7095420.305194691 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1049.706496, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 71, "total": 0.5154082546234132, "mean": 0.007259271191879058, "stdev": 0.00032711745861899877, "p50": 0.007174335956573487, "p90": 0.007673471927642822, "p95": 0.007801136016845702, "p99": 0.007910099267959594, "values": [ 0.0076416959762573245, 0.007665887832641601, 0.007647744178771973, 0.0076009597778320314, 0.007483391761779785, 0.007263743877410888, 0.007473055839538574, 0.007518367767333984, 0.007426271915435791, 0.007657887935638427, 0.007856416225433349, 0.007907392024993897, 0.007886303901672363, 0.007676479816436768, 0.007723167896270752, 0.007745855808258056, 0.00791641616821289, 0.007452320098876953, 0.007499135971069336, 0.007428575992584228, 0.007296351909637451, 0.0074163517951965335, 0.007330431938171387, 0.007389376163482666, 0.007489855766296387, 0.007509920120239258, 0.007546688079833984, 0.007420383930206299, 0.007345823764801025, 0.007263391971588135, 0.0069909758567810055, 0.007174335956573487, 0.0067785921096801755, 0.006895359992980957, 0.007015840053558349, 0.007450687885284424, 0.007570335865020752, 0.007673471927642822, 0.007535136222839355, 0.007134975910186768, 0.006796768188476562, 0.0067803201675415035, 0.006798431873321533, 0.00677459192276001, 0.006813663959503174, 0.007114496231079102, 0.007169248104095459, 0.007151936054229736, 0.007116991996765137, 0.007171552181243896, 0.007214752197265625, 0.00708355188369751, 0.007127871990203857, 0.007123616218566895, 0.007133600234985352, 0.007109024047851562, 0.00709881591796875, 0.007133471965789795, 0.007088736057281494, 0.0067859840393066405, 0.006764863967895508, 0.006777344226837158, 0.0067766718864440915, 0.006843391895294189, 0.0067684798240661625, 0.007094912052154541, 0.0071157760620117185, 0.007154208183288574, 0.0071039037704467775, 0.0070280637741088866, 0.006693855762481689 ] }, "throughput": { "unit": "tokens/s", "value": 137.75487560220913 }, "energy": { "unit": "kWh", "cpu": 7.575595317225907e-08, "ram": 4.1420836602257775e-08, "gpu": 1.500446690734948e-07, "total": 2.672214588480116e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3742214.4325945512 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 70, "total": 0.9922222061157226, "mean": 0.014174602944510324, "stdev": 0.000643963167416411, "p50": 0.014115327835083007, "p90": 0.015047270679473876, "p95": 0.015283916807174683, "p99": 0.015401625499725341, "values": [ 0.015024127960205079, 0.014997504234313964, 0.01488588809967041, 0.014698495864868164, 0.014294015884399413, 0.014455807685852052, 0.014738431930541992, 0.014584832191467285, 0.01467801570892334, 0.015341567993164062, 0.015396863937377929, 0.015318016052246093, 0.014753791809082031, 0.015062015533447265, 0.015142911911010743, 0.01541222381591797, 0.015045632362365722, 0.014547967910766601, 0.014562303543090821, 0.014417920112609863, 0.014449664115905762, 0.014517248153686524, 0.014444543838500976, 0.01447219181060791, 0.014540800094604492, 0.014766079902648926, 0.014581760406494141, 0.014415871620178223, 0.01429196834564209, 0.013763584136962891, 0.014179327964782714, 0.013479935646057128, 0.013452287673950195, 0.01363046360015869, 0.014051327705383301, 0.015242239952087403, 0.014913536071777344, 0.014812159538269042, 0.014215167999267577, 0.013319168090820312, 0.013240320205688477, 0.013275135993957519, 0.01327616024017334, 0.013264896392822266, 0.013832192420959472, 0.013941823959350586, 0.013961152076721191, 0.01389568042755127, 0.014181376457214356, 0.014039039611816406, 0.013842432022094727, 0.013907967567443847, 0.013926400184631347, 0.013874176025390626, 0.013906944274902343, 0.01388748836517334, 0.01390182399749756, 0.01387724781036377, 0.013252608299255371, 0.013210623741149903, 0.01326694393157959, 0.013191167831420898, 0.013268992424011231, 0.013219840049743652, 0.013499391555786134, 0.013884415626525879, 0.01389363193511963, 0.01386086368560791, 0.013670399665832519, 0.013073408126831054 ] }, "throughput": { "unit": "tokens/s", "value": 70.54871335124696 }, "energy": null, "efficiency": null } } }