{ "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_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.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.4", "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, "llama_cpp_version": null, "llama_cpp_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 720.5888, "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.16059521484375, "mean": 7.16059521484375, "stdev": 0.0, "p50": 7.16059521484375, "p90": 7.16059521484375, "p95": 7.16059521484375, "p99": 7.16059521484375, "values": [ 7.16059521484375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.692238436804878e-07, "ram": 5.150284119952175e-07, "gpu": 1.6447235379997774e-06, "total": 3.1289757936754827e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1032.54016, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 73, "total": 0.4850024638175965, "mean": 0.006643869367364335, "stdev": 0.0003309455709158086, "p50": 0.006688704013824463, "p90": 0.007054214286804199, "p95": 0.007095129489898681, "p99": 0.0071740480232238765, "values": [ 0.00723683214187622, 0.006947008132934571, 0.0069922561645507815, 0.006611680030822754, 0.006688704013824463, 0.006732319831848145, 0.0068800320625305176, 0.007149631977081299, 0.007113887786865235, 0.006795872211456299, 0.007045023918151856, 0.006947648048400879, 0.00714847993850708, 0.006938816070556641, 0.006784671783447265, 0.0066026878356933594, 0.006530335903167725, 0.0069028158187866215, 0.007034624099731445, 0.006988160133361817, 0.007056511878967285, 0.00695417594909668, 0.006878528118133545, 0.0070210561752319335, 0.006919007778167724, 0.006945919990539551, 0.006866720199584961, 0.00676035213470459, 0.007006015777587891, 0.006840896129608154, 0.006888095855712891, 0.006996255874633789, 0.0070646400451660155, 0.0070826239585876465, 0.006967487812042236, 0.0069090561866760256, 0.006895391941070556, 0.00645084810256958, 0.006599936008453369, 0.006119391918182373, 0.006438720226287842, 0.006797120094299316, 0.006845952033996582, 0.007076543807983398, 0.006504255771636963, 0.006320735931396484, 0.006260255813598633, 0.006270592212677002, 0.006344575881958008, 0.006333407878875733, 0.006311744213104248, 0.006439263820648193, 0.006270847797393799, 0.006266687870025635, 0.006306623935699463, 0.006230720043182373, 0.006335455894470215, 0.0063482561111450194, 0.00628601598739624, 0.006262559890747071, 0.006276800155639649, 0.006284416198730469, 0.00624022388458252, 0.006298624038696289, 0.006300704002380371, 0.006270304203033448, 0.006260096073150635, 0.006254591941833496, 0.006280288219451904, 0.006232448101043701, 0.006233344078063965, 0.006270847797393799, 0.006255040168762207 ] }, "throughput": { "unit": "tokens/s", "value": 301.02939859478494 }, "energy": { "unit": "kWh", "cpu": 7.504403130079289e-08, "ram": 4.103108103004209e-08, "gpu": 1.4993507072151705e-07, "total": 2.66010183052352e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7518509.16777269 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1048.45312, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 73, "total": 0.5127472310066222, "mean": 0.007023934671323594, "stdev": 0.0003863075054891877, "p50": 0.0069939842224121095, "p90": 0.007489388656616211, "p95": 0.00754407033920288, "p99": 0.007900478515625, "values": [ 0.00743225622177124, 0.007071904182434082, 0.007094687938690185, 0.0069939842224121095, 0.006981503963470459, 0.007270271778106689, 0.007354496002197265, 0.007844863891601562, 0.008043487548828126, 0.007591328144073486, 0.007376959800720215, 0.0073541121482849124, 0.007313888072967529, 0.007111839771270752, 0.006951488018035888, 0.0068663997650146484, 0.0070067839622497555, 0.00724019193649292, 0.007416672229766845, 0.007501920223236084, 0.0074256319999694825, 0.007465919971466064, 0.007436351776123047, 0.007475423812866211, 0.00737065601348877, 0.007318943977355957, 0.007545375823974609, 0.007030272006988526, 0.007316736221313477, 0.007279583930969238, 0.007329887866973877, 0.0074490242004394535, 0.007406271934509277, 0.007491871833801269, 0.007479455947875977, 0.007535967826843262, 0.0070835199356079105, 0.00675116777420044, 0.0066622719764709475, 0.0063928961753845215, 0.006967040061950683, 0.0071588802337646485, 0.007543200016021728, 0.007294303894042968, 0.006623775959014893, 0.006619071960449219, 0.0066657280921936036, 0.006748127937316895, 0.0066427202224731445, 0.006696415901184082, 0.006611231803894043, 0.0065963840484619144, 0.006596704006195068, 0.006632927894592285, 0.006625760078430176, 0.006610015869140625, 0.006574079990386963, 0.006611040115356445, 0.006628191947937011, 0.006599679946899414, 0.006810368061065674, 0.006714047908782959, 0.006636832237243652, 0.006682591915130615, 0.006605855941772461, 0.006608799934387207, 0.006696544170379639, 0.00658070421218872, 0.006748960018157959, 0.006562079906463623, 0.0068137598037719726, 0.006632063865661621, 0.00654307222366333 ] }, "throughput": { "unit": "tokens/s", "value": 142.37034465634622 }, "energy": { "unit": "kWh", "cpu": 7.227418528927738e-08, "ram": 3.951569298163687e-08, "gpu": 1.4066529893280747e-07, "total": 2.5245517720372175e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3961099.1981877163 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.47875225448608394, "mean": 0.006558250061453205, "stdev": 0.00032467359313694514, "p50": 0.006512639999389648, "p90": 0.0069435133934021, "p95": 0.007004364776611328, "p99": 0.007347363872528077, "values": [ 0.006906879901885986, 0.006575104236602783, 0.006601727962493896, 0.006491136074066162, 0.006496128082275391, 0.0067717118263244626, 0.006833183765411377, 0.0072765440940856935, 0.007529471874237061, 0.0070564160346984865, 0.006807551860809326, 0.0068351998329162595, 0.006795263767242431, 0.006602784156799316, 0.006460415840148926, 0.006375487804412842, 0.006512639999389648, 0.00672976016998291, 0.0068782720565795895, 0.0069764480590820315, 0.006895743846893311, 0.006866943836212158, 0.006900735855102539, 0.006945759773254395, 0.00687824010848999, 0.0068167362213134765, 0.00677459192276001, 0.00653004789352417, 0.006761472225189209, 0.006773759841918945, 0.006799359798431396, 0.006923264026641846, 0.006882304191589355, 0.00693452787399292, 0.0069847040176391605, 0.00703385591506958, 0.006583295822143555, 0.006218751907348633, 0.006268928050994873, 0.00601907205581665, 0.006515711784362793, 0.006691840171813965, 0.006953983783721924, 0.006874112129211426, 0.006242144107818604, 0.00623308801651001, 0.0062841281890869145, 0.006362112045288086, 0.0062576642036437985, 0.006304800033569336, 0.0062269439697265625, 0.006214655876159668, 0.006205344200134277, 0.006248447895050049, 0.006230912208557129, 0.006226016044616699, 0.006184959888458252, 0.006195199966430664, 0.006242303848266601, 0.00621670389175415, 0.006427648067474365, 0.0062904319763183595, 0.006246399879455566, 0.0062975997924804685, 0.0062156801223754886, 0.006182911872863769, 0.006313983917236328, 0.006199295997619629, 0.006363135814666748, 0.006168575763702393, 0.006425600051879882, 0.006247360229492188, 0.006158336162567139 ] }, "throughput": { "unit": "tokens/s", "value": 152.4796997109951 }, "energy": null, "efficiency": null } } }