{ "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": 792.240128, "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.4002587890625, "mean": 7.4002587890625, "stdev": 0.0, "p50": 7.4002587890625, "p90": 7.4002587890625, "p95": 7.4002587890625, "p99": 7.4002587890625, "values": [ 7.4002587890625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.918844555554942e-07, "ram": 5.278597053858437e-07, "gpu": 1.7091680340000377e-06, "total": 3.2289121949413756e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1194.090496, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 71, "total": 0.4899392623901368, "mean": 0.0069005529914103764, "stdev": 0.0003591825353600614, "p50": 0.00694598388671875, "p90": 0.0073259520530700685, "p95": 0.007428400039672852, "p99": 0.007794255828857421, "values": [ 0.007695615768432617, 0.00735203218460083, 0.007326848030090332, 0.0073259520530700685, 0.007324704170227051, 0.006891839981079102, 0.0069616961479187014, 0.007112895965576172, 0.007067264080047608, 0.007131904125213623, 0.007120031833648682, 0.007063295841217041, 0.007038559913635254, 0.0070486397743225095, 0.0070536317825317385, 0.0068644161224365235, 0.006945824146270752, 0.007002880096435547, 0.007082943916320801, 0.007184415817260742, 0.0071205439567565915, 0.007015999794006348, 0.007068927764892578, 0.006988575935363769, 0.007031583786010742, 0.006898528099060059, 0.007047008037567139, 0.007067039966583252, 0.006968287944793701, 0.006937151908874512, 0.006960991859436035, 0.007309375762939453, 0.007433599948883056, 0.007423200130462646, 0.0072988801002502445, 0.006900832176208496, 0.0068713917732238766, 0.006763423919677734, 0.00694598388671875, 0.006636223793029785, 0.006591104030609131, 0.006974624156951904, 0.006974751949310303, 0.007208896160125732, 0.008024415969848632, 0.0076845760345458985, 0.006881440162658691, 0.006863999843597412, 0.006642848014831543, 0.0066650562286376955, 0.006825984001159668, 0.006645760059356689, 0.006674655914306641, 0.006672800064086914, 0.006638432025909424, 0.006650144100189209, 0.006406079769134521, 0.006395904064178467, 0.006424287796020508, 0.006431903839111328, 0.006397535800933838, 0.006415264129638672, 0.00641212797164917, 0.006402751922607422, 0.00643555212020874, 0.006401311874389648, 0.006394336223602295, 0.0063660798072814944, 0.00635811185836792, 0.006409440040588379, 0.006386144161224365 ] }, "throughput": { "unit": "tokens/s", "value": 289.831844272415 }, "energy": { "unit": "kWh", "cpu": 8.182414035863492e-08, "ram": 4.4603446208611234e-08, "gpu": 1.6140804389041264e-07, "total": 2.8783563045765883e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6948410.093705212 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1212.768256, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 71, "total": 0.5136261119842529, "mean": 0.007234170591327506, "stdev": 0.0003703615061678444, "p50": 0.00725267219543457, "p90": 0.007698400020599365, "p95": 0.007777215957641602, "p99": 0.00822783660888672, "values": [ 0.00771449613571167, 0.007698400020599365, 0.007674335956573486, 0.007723264217376709, 0.007250432014465332, 0.007349855899810791, 0.0074282240867614745, 0.00743120002746582, 0.007625408172607422, 0.007557151794433593, 0.0074414401054382325, 0.007402976036071777, 0.007382207870483398, 0.007402880191802979, 0.00725267219543457, 0.007249375820159912, 0.007470335960388184, 0.007365888118743897, 0.007518911838531494, 0.0075162239074707034, 0.007440000057220459, 0.007419519901275635, 0.007465536117553711, 0.007363999843597412, 0.007189055919647217, 0.007321760177612304, 0.007416831970214844, 0.007259263992309571, 0.00730511999130249, 0.007250688076019287, 0.007373216152191162, 0.00783455991744995, 0.007787487983703613, 0.007665791988372803, 0.00776694393157959, 0.007428639888763427, 0.007173632144927979, 0.006936672210693359, 0.0072494401931762695, 0.006752927780151367, 0.007249375820159912, 0.0073805441856384275, 0.007429408073425293, 0.008213791847229004, 0.008260607719421387, 0.00713427209854126, 0.007143424034118652, 0.007115744113922119, 0.007005663871765136, 0.007011839866638184, 0.0070061120986938475, 0.006993855953216553, 0.0069604477882385255, 0.00699622392654419, 0.007002880096435547, 0.006948544025421143, 0.006725664138793945, 0.006734879970550537, 0.0067404799461364745, 0.006707295894622802, 0.0067966079711914065, 0.006716479778289795, 0.006707839965820313, 0.006740352153778076, 0.006764448165893554, 0.006675551891326905, 0.0067263998985290525, 0.006741280078887939, 0.006702591896057129, 0.00669542407989502, 0.006741312026977539 ] }, "throughput": { "unit": "tokens/s", "value": 138.23284748065294 }, "energy": { "unit": "kWh", "cpu": 7.235732240846046e-08, "ram": 3.947561152741385e-08, "gpu": 1.4323251321214766e-07, "total": 2.5506544714802183e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3920562.3936184156 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.4799958424568176, "mean": 0.00676050482333546, "stdev": 0.00032059803396486213, "p50": 0.0067645440101623535, "p90": 0.007174143791198731, "p95": 0.0072299520969390865, "p99": 0.0077050048828125, "values": [ 0.007193600177764893, 0.007174143791198731, 0.007098368167877197, 0.007187456130981445, 0.0067645440101623535, 0.00681056022644043, 0.006917119979858399, 0.006905856132507324, 0.007074816226959229, 0.007041024208068848, 0.006913023948669434, 0.0068884482383728025, 0.0068689918518066405, 0.00689356803894043, 0.006758399963378906, 0.006747136116027832, 0.006973440170288086, 0.006851583957672119, 0.006971392154693603, 0.006987775802612305, 0.0069283838272094726, 0.00688640022277832, 0.006938623905181885, 0.006852608203887939, 0.006709216117858886, 0.006812672138214112, 0.006831103801727295, 0.006752255916595459, 0.00679423999786377, 0.006747136116027832, 0.006864895820617676, 0.007288832187652588, 0.007206912040710449, 0.007136256217956543, 0.007252992153167725, 0.0069253120422363285, 0.0066713600158691405, 0.006486015796661377, 0.006761472225189209, 0.006331391811370849, 0.006793216228485107, 0.006894591808319092, 0.0069283838272094726, 0.007681024074554443, 0.007760960102081299, 0.006688767910003662, 0.0066979842185974124, 0.006706175804138184, 0.006589439868927002, 0.006604800224304199, 0.006586368083953857, 0.006594560146331787, 0.006557695865631104, 0.006597631931304931, 0.00659660816192627, 0.006546432018280029, 0.006305791854858398, 0.006336512088775635, 0.006343679904937744, 0.006322175979614258, 0.0064102401733398436, 0.006325247764587402, 0.006310912132263183, 0.006341631889343262, 0.006376448154449463, 0.006281216144561768, 0.0063170561790466305, 0.006340576171875, 0.006307839870452881, 0.006308864116668702, 0.006343679904937744 ] }, "throughput": { "unit": "tokens/s", "value": 147.91794786511602 }, "energy": null, "efficiency": null } } }