{ "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.3.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.3", "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": 1051.131904, "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.4865591692924499, "mean": 0.006575123909357432, "stdev": 0.00026872027858188837, "p50": 0.006469472169876098, "p90": 0.006856134414672852, "p95": 0.007232512068748473, "p99": 0.007590237860679627, "values": [ 0.007585408210754395, 0.0073144640922546385, 0.0073844480514526365, 0.007188384056091309, 0.007029791831970215, 0.007603295803070068, 0.006653120040893554, 0.006469888210296631, 0.006425407886505127, 0.00653984022140503, 0.006460415840148926, 0.006422880172729492, 0.006482656002044678, 0.00645472002029419, 0.006509568214416504, 0.006586175918579101, 0.006540768146514893, 0.006531167984008789, 0.006514592170715332, 0.006728384017944336, 0.006627520084381103, 0.0069250879287719724, 0.00678656005859375, 0.006568448066711426, 0.006605504035949707, 0.006584640026092529, 0.006619616031646729, 0.006603839874267578, 0.0064197759628295895, 0.006436160087585449, 0.006438752174377441, 0.006764992237091065, 0.006653696060180664, 0.006634687900543213, 0.00669324779510498, 0.006672128200531006, 0.006646719932556153, 0.006469056129455566, 0.006501440048217773, 0.00688595199584961, 0.00663759994506836, 0.006592000007629394, 0.006436704158782959, 0.006400767803192139, 0.006486015796661377, 0.006368415832519531, 0.006337823867797851, 0.006453248023986816, 0.006413248062133789, 0.0064115839004516605, 0.006402304172515869, 0.0064133119583129885, 0.0065814399719238284, 0.006420639991760254, 0.006428095817565918, 0.006401088237762451, 0.006394303798675537, 0.006435135841369629, 0.006395711898803711, 0.006401567935943603, 0.0063991999626159665, 0.006440320014953613, 0.006396704196929932, 0.006443456172943115, 0.006386240005493164, 0.0063787841796875, 0.006422143936157226, 0.006405695915222168, 0.006394879817962646, 0.006410560131072998, 0.006325183868408203, 0.006316160202026367, 0.00640880012512207, 0.006656832218170166 ] }, "throughput": { "unit": "tokens/s", "value": 304.1767771332319 }, "energy": { "unit": "kWh", "cpu": 8.072633794646144e-08, "ram": 4.413379893011306e-08, "gpu": 1.5668568846258471e-07, "total": 2.815458253391592e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7103639.336831705 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1051.131904, "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.5167314229011536, "mean": 0.006982857066231805, "stdev": 0.0002590156701542476, "p50": 0.006855808019638062, "p90": 0.007425708675384522, "p95": 0.007645668721199036, "p99": 0.007716789326667786, "values": [ 0.007773344039916992, 0.0076958718299865725, 0.007635039806365967, 0.007665408134460449, 0.007602272033691407, 0.007320831775665284, 0.006828832149505615, 0.006835519790649414, 0.006877376079559326, 0.006811007976531982, 0.006858016014099121, 0.00766921615600586, 0.0068494720458984375, 0.006865920066833496, 0.006921055793762207, 0.007027775764465332, 0.006846208095550537, 0.006802752017974854, 0.007470655918121338, 0.007178112030029297, 0.0068512001037597655, 0.0075929279327392575, 0.007064799785614014, 0.007052127838134766, 0.007152095794677734, 0.007056863784790039, 0.007015647888183593, 0.006904863834381104, 0.006818367958068848, 0.0067983040809631344, 0.006825535774230957, 0.007072896003723145, 0.007100543975830078, 0.007040480136871338, 0.007139200210571289, 0.007132192134857177, 0.006991072177886963, 0.006909791946411133, 0.007036511898040772, 0.00706003189086914, 0.007044703960418701, 0.007030655860900879, 0.0068055038452148435, 0.006828415870666504, 0.006773759841918945, 0.006743775844573975, 0.006758719921112061, 0.006840672016143799, 0.006853824138641358, 0.006826240062713623, 0.006905727863311768, 0.006857791900634766, 0.006898047924041748, 0.006806240081787109, 0.006846752166748047, 0.006830560207366943, 0.006812352180480957, 0.006806879997253418, 0.006838335990905762, 0.00679472017288208, 0.006819392204284668, 0.006818079948425293, 0.006798655986785889, 0.006905759811401367, 0.006826752185821533, 0.00683619213104248, 0.006786784172058105, 0.006832672119140625, 0.0068334717750549315, 0.006810304164886475, 0.006743423938751221, 0.006754816055297852, 0.006823264122009278, 0.007088031768798828 ] }, "throughput": { "unit": "tokens/s", "value": 143.20785754528342 }, "energy": { "unit": "kWh", "cpu": 7.607124835654679e-08, "ram": 4.15954089636365e-08, "gpu": 1.4782844403741695e-07, "total": 2.654951013576004e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3766547.837931974 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 74, "total": 0.485459840774536, "mean": 0.0065602681185748125, "stdev": 0.0002304003347459231, "p50": 0.006441983938217164, "p90": 0.006965043210983277, "p95": 0.007130256175994873, "p99": 0.007232783126831055, "values": [ 0.007225344181060791, 0.0071526398658752445, 0.007105535984039306, 0.007147520065307617, 0.007074816226959229, 0.006890495777130127, 0.0064256319999694824, 0.006396927833557129, 0.006467616081237793, 0.006403071880340576, 0.006419456005096436, 0.007252895832061767, 0.006409215927124024, 0.006453248023986816, 0.0065064959526062015, 0.006540287971496582, 0.006437856197357178, 0.006403071880340576, 0.006996992111206054, 0.006709248065948486, 0.00643891191482544, 0.0071209602355957035, 0.0066447358131408694, 0.006632448196411133, 0.0067010560035705566, 0.006647808074951172, 0.006605823993682861, 0.0065064959526062015, 0.006421504020690918, 0.006403071880340576, 0.0064245758056640625, 0.006660096168518067, 0.006681600093841553, 0.00662937593460083, 0.006692863941192627, 0.006718463897705078, 0.006584320068359375, 0.006512639999389648, 0.006636544227600098, 0.00664572811126709, 0.006636544227600098, 0.006600639820098877, 0.006403071880340576, 0.00643174409866333, 0.006376448154449463, 0.0063508481979370115, 0.0063569917678833006, 0.0064245758056640625, 0.006445055961608887, 0.006418432235717773, 0.006494207859039307, 0.006451200008392334, 0.006484000205993652, 0.006398975849151611, 0.006437888145446777, 0.006421472072601318, 0.006404096126556396, 0.006396927833557129, 0.006432767868041992, 0.006388735771179199, 0.006388735771179199, 0.0064132800102233885, 0.006403071880340576, 0.006475776195526123, 0.006416384220123291, 0.006429696083068847, 0.006378496170043945, 0.006435840129852295, 0.006419456005096436, 0.006404096126556396, 0.0063498239517211915, 0.006362112045288086, 0.006425600051879882, 0.006675456047058105 ] }, "throughput": { "unit": "tokens/s", "value": 152.43279419763186 }, "energy": null, "efficiency": null } } }