{ "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.25696, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.220-209.869.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.43.4", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 720.85504, "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.2044072265625, "mean": 7.2044072265625, "stdev": 0.0, "p50": 7.2044072265625, "p90": 7.2044072265625, "p95": 7.2044072265625, "p99": 7.2044072265625, "values": [ 7.2044072265625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.86441775694047e-07, "ram": 5.242215130710883e-07, "gpu": 1.6397235339999684e-06, "total": 3.150386822765104e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1021.616128, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 78, "total": 0.49380828857421855, "mean": 0.006330875494541265, "stdev": 0.000339561970161911, "p50": 0.0062498881816864015, "p90": 0.006526764678955078, "p95": 0.006782406377792351, "p99": 0.007615727739334107, "values": [ 0.007710912227630615, 0.007587296009063721, 0.006355391979217529, 0.006140511989593506, 0.006133088111877441, 0.006301951885223389, 0.006136127948760986, 0.006118527889251709, 0.006081823825836182, 0.0064340801239013675, 0.007573440074920655, 0.006445663928985596, 0.006392767906188965, 0.006225247859954834, 0.006214303970336914, 0.00615718412399292, 0.0061411199569702144, 0.00611187219619751, 0.0064810881614685055, 0.006140160083770752, 0.006100512027740478, 0.006110943794250488, 0.006074944019317627, 0.00606547212600708, 0.006056159973144531, 0.006095359802246094, 0.006109471797943115, 0.006108704090118408, 0.006097472190856933, 0.006085343837738037, 0.006067647933959961, 0.006057536125183106, 0.006066688060760498, 0.006061535835266113, 0.0061140480041503905, 0.006126143932342529, 0.0062306241989135746, 0.006093760013580322, 0.006096928119659424, 0.006095871925354004, 0.006071455955505371, 0.006114175796508789, 0.006068448066711426, 0.0061214079856872555, 0.006269152164459228, 0.006148352146148682, 0.0061437439918518065, 0.006087007999420166, 0.0061296639442443845, 0.006601888179779053, 0.006454207897186279, 0.006399040222167969, 0.0063836159706115725, 0.006437888145446777, 0.006394720077514649, 0.006365119934082031, 0.006388800144195557, 0.006365664005279541, 0.006594367980957031, 0.00754640007019043, 0.006647583961486817, 0.006532095909118653, 0.006524479866027832, 0.006513760089874267, 0.006452127933502198, 0.006506688117980957, 0.006376543998718262, 0.006394368171691894, 0.006405439853668213, 0.0064143362045288085, 0.0063487358093261715, 0.006420159816741943, 0.006389344215393066, 0.006351776123046875, 0.0064774398803710935, 0.006425087928771973, 0.006393631935119629, 0.006351840019226074 ] }, "throughput": { "unit": "tokens/s", "value": 315.91207278116275 }, "energy": { "unit": "kWh", "cpu": 7.719459381313284e-08, "ram": 4.220529313630199e-08, "gpu": 1.5252717829870057e-07, "total": 2.719270652481354e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7354913.341101172 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1037.529088, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 78, "total": 0.5120302715301516, "mean": 0.006564490660642966, "stdev": 0.0002503599733800698, "p50": 0.006454240083694458, "p90": 0.006870870590209961, "p95": 0.006938398432731628, "p99": 0.007315908813476565, "values": [ 0.007774335861206055, 0.0067740159034729, 0.006423808097839355, 0.006405951976776123, 0.006383135795593262, 0.006388192176818848, 0.0063482561111450194, 0.006364799976348877, 0.006590816020965576, 0.006876448154449463, 0.006923840045928955, 0.006625279903411865, 0.006458752155303955, 0.00643881607055664, 0.006462399959564209, 0.006408959865570068, 0.006370528221130371, 0.006868480205535888, 0.006518432140350342, 0.006359263896942139, 0.006326335906982422, 0.006356544017791748, 0.006351615905761719, 0.006449728012084961, 0.00636352014541626, 0.0063567042350769045, 0.006318624019622803, 0.0063396477699279785, 0.006361216068267822, 0.006353184223175049, 0.00635097599029541, 0.006352511882781983, 0.006438528060913086, 0.006372384071350098, 0.006328320026397705, 0.006343711853027343, 0.006325920104980468, 0.0063281598091125485, 0.006362527847290039, 0.006350207805633545, 0.00634716796875, 0.0064083199501037596, 0.006353375911712647, 0.006420224189758301, 0.006348800182342529, 0.006331967830657959, 0.006393184185028076, 0.006415296077728272, 0.006396448135375977, 0.006650271892547607, 0.006794079780578614, 0.006700895786285401, 0.006670752048492432, 0.006668352127075196, 0.006701600074768066, 0.006728799819946289, 0.006643231868743897, 0.006912415981292725, 0.007058335781097412, 0.007178976058959961, 0.006764095783233642, 0.0068000640869140625, 0.006895584106445312, 0.0067309122085571285, 0.006622079849243164, 0.0066613759994506834, 0.006669407844543457, 0.006638559818267822, 0.006734272003173828, 0.006654911994934082, 0.006639904022216797, 0.006685056209564209, 0.006729087829589844, 0.0070208959579467775, 0.006688735961914063, 0.006684480190277099, 0.0066752638816833494, 0.006718207836151123 ] }, "throughput": { "unit": "tokens/s", "value": 152.33474334809304 }, "energy": { "unit": "kWh", "cpu": 7.327917734544466e-08, "ram": 4.005736116330374e-08, "gpu": 1.4293367691649287e-07, "total": 2.5627021542524134e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3902131.187351025 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 78, "total": 0.4814469757080077, "mean": 0.006172397124461638, "stdev": 0.00023019383444452336, "p50": 0.006074879884719849, "p90": 0.006426419115066528, "p95": 0.006515711951255798, "p99": 0.006876354360580446, "values": [ 0.007233535766601563, 0.00637440013885498, 0.006046720027923584, 0.006030335903167725, 0.006000639915466309, 0.006005760192871094, 0.005975039958953857, 0.005966847896575928, 0.006140927791595459, 0.006415359973907471, 0.00648089599609375, 0.006244351863861084, 0.006082560062408447, 0.006057983875274659, 0.006074368000030517, 0.00597811222076416, 0.005989376068115234, 0.006452223777770996, 0.006130688190460205, 0.005979135990142822, 0.005946368217468262, 0.005962751865386963, 0.005980160236358643, 0.00607539176940918, 0.005991424083709717, 0.005984255790710449, 0.005945343971252442, 0.005967872142791748, 0.005971968173980713, 0.005973983764648438, 0.005967872142791748, 0.005981184005737304, 0.0060661759376525876, 0.0059955201148986816, 0.005956607818603516, 0.005966847896575928, 0.005942272186279297, 0.005949471950531006, 0.005964799880981446, 0.00597811222076416, 0.005974016189575195, 0.006036511898040772, 0.005980160236358643, 0.006045695781707764, 0.005963776111602783, 0.005959680080413818, 0.00601907205581665, 0.0060405759811401364, 0.006023168087005615, 0.006264832019805908, 0.006363103866577149, 0.006316031932830811, 0.006285312175750732, 0.006270976066589356, 0.006315008163452148, 0.006340608119964599, 0.006251520156860352, 0.006458367824554443, 0.006602752208709717, 0.00676966381072998, 0.006377503871917724, 0.006404096126556396, 0.006500351905822754, 0.006343679904937744, 0.006238207817077636, 0.006252543926239014, 0.006284287929534912, 0.006254591941833496, 0.006335487842559814, 0.006264832019805908, 0.006253568172454834, 0.006284287929534912, 0.006322175979614258, 0.006620160102844238, 0.006296576023101807, 0.006288415908813476, 0.0062863359451293946, 0.006331391811370849 ] }, "throughput": { "unit": "tokens/s", "value": 162.01161069771916 }, "energy": null, "efficiency": null } } }