{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.5.1+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": 2, "sequence_length": 16 }, "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.248768, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.228-219.884.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.5.0.dev0", "optimum_benchmark_commit": null, "transformers_version": "4.46.3", "transformers_commit": null, "accelerate_version": "1.1.1", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.11", "timm_commit": null, "peft_version": "0.13.2", "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 820.49024, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.07956159973144532 ], "count": 1, "total": 0.07956159973144532, "mean": 0.07956159973144532, "p50": 0.07956159973144532, "p90": 0.07956159973144532, "p95": 0.07956159973144532, "p99": 0.07956159973144532, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1279.729664, "max_global_vram": 1379.401728, "max_process_vram": 0.0, "max_reserved": 731.906048, "max_allocated": 538.394112 }, "latency": { "unit": "s", "values": [ 0.0072425599098205565, 0.0072585601806640625, 0.007309023857116699, 0.007259744167327881, 0.007366144180297852, 0.007264031887054444, 0.007324575901031494, 0.007483359813690186, 0.0072765440940856935, 0.007230624198913575, 0.0072304000854492186, 0.007411424160003662, 0.007537407875061035, 0.007638591766357422, 0.007536928176879883, 0.007533664226531982, 0.007262752056121826, 0.00721120023727417, 0.007210912227630616, 0.007496928215026856, 0.007600543975830078, 0.007544032096862793, 0.00763043212890625, 0.007495327949523926, 0.007255231857299805, 0.00724560022354126, 0.007558944225311279, 0.007247680187225341, 0.007353983879089356, 0.007193471908569336, 0.007182464122772216, 0.007226816177368164, 0.007200287818908691, 0.007247615814208985, 0.007181824207305908, 0.00738431978225708, 0.007230303764343262, 0.007229055881500244, 0.007259935855865479, 0.007769631862640381, 0.0078089280128479, 0.00780998420715332, 0.007942048072814942, 0.007681151866912842, 0.0076319041252136234, 0.007673727989196777, 0.0075989761352539065, 0.007549791812896728, 0.007540671825408935, 0.0077766718864440915, 0.007620096206665039, 0.007530208110809326, 0.00767952013015747, 0.00748470401763916, 0.007214528083801269, 0.007476863861083985, 0.007527584075927734, 0.007191743850708008, 0.007597856044769287, 0.007717343807220459, 0.007482336044311523, 0.007216224193572998, 0.007192768096923828, 0.007210239887237548, 0.0072576642036437985, 0.00725871992111206, 0.007399968147277832, 0.007337984085083008, 0.00729372787475586 ], "count": 69, "total": 0.5118268175125125, "mean": 0.007417779963949453, "p50": 0.007366144180297852, "p90": 0.007679846477508545, "p95": 0.007773855876922607, "p99": 0.007852244644165039, "stdev": 0.00019626025615253703, "stdev_": 2.6458085452300484 }, "throughput": { "unit": "tokens/s", "value": 4313.959183949994 }, "energy": { "unit": "kWh", "cpu": 8.896087991811582e-08, "ram": 4.86133201920197e-08, "gpu": 1.946311673134312e-07, "total": 3.3220536742356667e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 96325957.18780045 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1279.729664, "max_global_vram": 1379.401728, "max_process_vram": 0.0, "max_reserved": 731.906048, "max_allocated": 538.394624 }, "latency": { "unit": "s", "values": [ 0.006986656188964844, 0.007204031944274903, 0.007085375785827637, 0.006950943946838379, 0.007064223766326904, 0.007038047790527344, 0.007051104068756103, 0.007023583889007568, 0.00701577615737915, 0.00712281608581543, 0.007007743835449219, 0.007404032230377197, 0.007349664211273193, 0.007752607822418213, 0.007533823966979981, 0.007332191944122314, 0.007050943851470947, 0.007023007869720459, 0.007090335845947266, 0.0074135041236877445, 0.007409855842590332, 0.007459648132324219, 0.007378304004669189, 0.007306943893432618, 0.00698576021194458, 0.007411263942718506, 0.007330463886260986, 0.00703276777267456, 0.007038464069366455, 0.007074592113494873, 0.007048255920410156, 0.00710643196105957, 0.007305408000946045, 0.007013567924499512, 0.006977888107299804, 0.007001567840576172, 0.0069931201934814455, 0.007192736148834229, 0.007233407974243164, 0.007661856174468994, 0.007478847980499268, 0.007581151962280273, 0.007645472049713135, 0.007417344093322754, 0.007396575927734375, 0.007352672100067139, 0.0074113597869873045, 0.007459551811218262, 0.007404672145843506, 0.007857503890991211, 0.0074048638343811035, 0.00727791976928711, 0.007454304218292236, 0.007307583808898926, 0.007099232196807861, 0.007435135841369629, 0.007323296070098877, 0.007066336154937744, 0.007504000186920166, 0.007294079780578613, 0.007325535774230957, 0.007116320133209228, 0.007188608169555664, 0.00697763204574585, 0.007035168170928955, 0.007051008224487305, 0.00711520004272461, 0.0070126080513000484, 0.007008575916290284 ], "count": 69, "total": 0.4994652795791624, "mean": 0.007238627240277719, "p50": 0.007204031944274903, "p90": 0.007483878421783448, "p95": 0.00761974401473999, "p99": 0.007786174564361572, "stdev": 0.00021533008226265625, "stdev_": 2.974736439866668 }, "throughput": { "unit": "tokens/s", "value": 276.29548167247077 }, "energy": { "unit": "kWh", "cpu": 7.86549332665386e-08, "ram": 4.2971277068280385e-08, "gpu": 1.5782999102459503e-07, "total": 2.794562013594139e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7156756.551727983 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.0066241598129272465, 0.006837247848510742, 0.006711296081542969, 0.006592512130737305, 0.006703296184539795, 0.00667955207824707, 0.006692863941192627, 0.006649856090545654, 0.006652927875518798, 0.006756351947784424, 0.006649856090545654, 0.007022560119628906, 0.006979584217071533, 0.007311359882354736, 0.0071485438346862796, 0.006966271877288818, 0.006690815925598144, 0.0066416640281677245, 0.006724607944488525, 0.007010303974151612, 0.007024640083312988, 0.007088031768798828, 0.006988800048828125, 0.006917119979858399, 0.006627327919006347, 0.0070266880989074704, 0.006960127830505371, 0.006659071922302246, 0.00667852783203125, 0.006677504062652588, 0.0066713600158691405, 0.0067338237762451176, 0.00693452787399292, 0.006654975891113281, 0.006619135856628418, 0.006645760059356689, 0.006638432025909424, 0.006819839954376221, 0.006852608203887939, 0.0072468481063842774, 0.00704204797744751, 0.007171072006225586, 0.00724070405960083, 0.00704204797744751, 0.0070143680572509765, 0.006962111949920654, 0.007034912109375, 0.007093247890472412, 0.007019519805908203, 0.007459839820861816, 0.007029759883880615, 0.006908927917480469, 0.0070852160453796385, 0.006938623905181885, 0.006739967823028564, 0.007066624164581299, 0.00694271993637085, 0.00669593620300293, 0.006989952087402344, 0.006924287796020508, 0.006957056045532227, 0.006759424209594727, 0.006812543869018555, 0.006621183872222901, 0.006677504062652588, 0.006687871932983399, 0.006669312000274658, 0.006653952121734619, 0.006652895927429199 ], "count": 69, "total": 0.47340441465377797, "mean": 0.00686093354570693, "p50": 0.006837247848510742, "p90": 0.007089074993133545, "p95": 0.007212851238250732, "p99": 0.007358873462677001, "stdev": 0.00020179780877293204, "stdev_": 2.9412587576978115 }, "throughput": { "unit": "tokens/s", "value": 291.50551986492474 }, "energy": null, "efficiency": null } } }