{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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.33.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": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 790.970368, "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.40743701171875, "mean": 7.40743701171875, "stdev": 0.0, "p50": 7.40743701171875, "p90": 7.40743701171875, "p95": 7.40743701171875, "p99": 7.40743701171875, "values": [ 7.40743701171875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0305932784711383e-06, "ram": 5.206594586456694e-07, "gpu": 1.70583469799937e-06, "total": 3.2570874351161777e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1195.851776, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 70, "total": 0.4922751035690307, "mean": 0.007032501479557582, "stdev": 0.0004463714648534392, "p50": 0.0070609598159790034, "p90": 0.007462336015701294, "p95": 0.007572926259040832, "p99": 0.00852363655090332, "values": [ 0.007835040092468262, 0.007575071811676025, 0.00735155200958252, 0.007295584201812744, 0.007119200229644775, 0.006949376106262207, 0.007570303916931152, 0.007462080001831055, 0.007417503833770752, 0.007321919918060303, 0.007393472194671631, 0.007452415943145752, 0.007249695777893066, 0.007383264064788818, 0.007242335796356201, 0.00715228796005249, 0.007246912002563477, 0.007041056156158448, 0.007068287849426269, 0.007251039981842041, 0.0074646401405334475, 0.0072399678230285645, 0.007378560066223144, 0.007307392120361328, 0.007164608001708985, 0.0070536317825317385, 0.007403071880340576, 0.0072156481742858885, 0.00700710391998291, 0.00695958423614502, 0.007013631820678711, 0.007269087791442871, 0.007127711772918701, 0.007223328113555908, 0.0073786239624023435, 0.007189184188842773, 0.006945087909698487, 0.006891776084899903, 0.007159872055053711, 0.006775040149688721, 0.0074748477935791015, 0.008503647804260253, 0.008568127632141114, 0.007077792167663574, 0.006752768039703369, 0.006782847881317139, 0.0067132158279418945, 0.006745888233184815, 0.0067125120162963865, 0.006692416191101074, 0.006654560089111328, 0.006658592224121094, 0.006664608001708984, 0.006634016036987305, 0.00643939208984375, 0.006443327903747559, 0.006451327800750733, 0.006460319995880127, 0.006476863861083985, 0.0064271678924560545, 0.006437632083892822, 0.006480768203735352, 0.006451551914215088, 0.006711103916168213, 0.006464159965515136, 0.006464992046356201, 0.006901216030120849, 0.00653769588470459, 0.006476672172546387, 0.006469120025634765 ] }, "throughput": { "unit": "tokens/s", "value": 284.3938256982523 }, "energy": { "unit": "kWh", "cpu": 8.056892455423433e-08, "ram": 4.394920096121068e-08, "gpu": 1.5972235000000276e-07, "total": 2.8424047551544775e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7036295.574629747 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1214.2592, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 70, "total": 0.5175275197029116, "mean": 0.007393250281470162, "stdev": 0.00046378893556753775, "p50": 0.007429488182067871, "p90": 0.007822118568420409, "p95": 0.007947921586036683, "p99": 0.00881828109741211, "values": [ 0.007971263885498047, 0.00782534408569336, 0.007705664157867432, 0.007678207874298096, 0.007305471897125244, 0.007437280178070068, 0.007797215938568115, 0.007869120121002198, 0.007919392108917237, 0.007788896083831787, 0.007787456035614013, 0.007792575836181641, 0.007772607803344727, 0.007778495788574219, 0.007555776119232178, 0.007581120014190674, 0.0074216961860656735, 0.007400415897369385, 0.007522560119628906, 0.007791103839874268, 0.007705696105957031, 0.007821760177612304, 0.007730271816253662, 0.007747935771942139, 0.0075996479988098145, 0.00755459213256836, 0.007781375885009765, 0.007643712043762207, 0.0074479360580444335, 0.007387135982513428, 0.0074793601036071775, 0.007558559894561768, 0.007517792224884033, 0.007782080173492432, 0.007695551872253418, 0.007337408065795898, 0.007253407955169678, 0.007528448104858398, 0.007230144023895263, 0.007105728149414062, 0.008780991554260254, 0.008901280403137207, 0.008247167587280273, 0.007092383861541748, 0.006987423896789551, 0.007219168186187744, 0.007058239936828613, 0.007155744075775147, 0.007092127799987793, 0.00706931209564209, 0.007022079944610596, 0.0070076799392700196, 0.007020639896392822, 0.00676643180847168, 0.006781184196472168, 0.006767263889312744, 0.006800479888916015, 0.0067480640411376955, 0.006781504154205322, 0.006766655921936035, 0.006847136020660401, 0.006799136161804199, 0.006927584171295166, 0.0070644478797912596, 0.006795040130615234, 0.007127295970916748, 0.006962592124938965, 0.006789951801300049, 0.006771872043609619, 0.00676643180847168 ] }, "throughput": { "unit": "tokens/s", "value": 135.2585076831929 }, "energy": { "unit": "kWh", "cpu": 7.461818324699424e-08, "ram": 4.090048002301078e-08, "gpu": 1.4609679797402944e-07, "total": 2.6161546124403446e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3822404.0553444265 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 70, "total": 0.48334313678741464, "mean": 0.0069049019541059225, "stdev": 0.00040323420229035264, "p50": 0.006903295993804932, "p90": 0.00725012469291687, "p95": 0.007377971196174621, "p99": 0.008218019819259645, "values": [ 0.0074106879234313965, 0.00724889612197876, 0.007172095775604248, 0.0071495680809020995, 0.006814720153808594, 0.006904831886291504, 0.0072499198913574215, 0.007300096035003662, 0.007337984085083008, 0.007193600177764893, 0.0072334718704223635, 0.007243711948394776, 0.007204864025115967, 0.007241663932800293, 0.0070225920677185055, 0.007068672180175781, 0.006905856132507324, 0.006858751773834228, 0.006987775802612305, 0.007223296165466309, 0.007176191806793213, 0.0072427520751953125, 0.007194623947143554, 0.007207935810089112, 0.007074816226959229, 0.007030784130096435, 0.007251967906951904, 0.007106560230255127, 0.00690176010131836, 0.006875135898590088, 0.006947840213775635, 0.007005184173583984, 0.006999040126800537, 0.007213088035583496, 0.007186431884765625, 0.0068321280479431154, 0.006781951904296875, 0.006987775802612305, 0.006804480075836182, 0.006659071922302246, 0.008182784080505372, 0.00829644775390625, 0.0077209601402282715, 0.006680575847625733, 0.00658022403717041, 0.006808576107025147, 0.006648831844329834, 0.006751232147216797, 0.006675456047058105, 0.006650911808013916, 0.0066119680404663084, 0.0066007041931152345, 0.0066119680404663084, 0.006372352123260498, 0.006347775936126709, 0.00636518383026123, 0.006394879817962646, 0.006336512088775635, 0.0063805441856384275, 0.006376448154449463, 0.006453184127807618, 0.0063907837867736815, 0.006518752098083496, 0.006624256134033203, 0.006393856048583985, 0.006618112087249756, 0.006558720111846924, 0.006400000095367431, 0.006379519939422608, 0.006359039783477783 ] }, "throughput": { "unit": "tokens/s", "value": 144.82464872732353 }, "energy": null, "efficiency": null } } }