{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.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": 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.225-213.878.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", "optimum_benchmark_commit": null, "transformers_version": "4.45.2", "transformers_commit": null, "accelerate_version": "1.0.0", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.13.0", "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 804.040704, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.07794585418701172 ], "count": 1, "total": 0.07794585418701172, "mean": 0.07794585418701172, "p50": 0.07794585418701172, "p90": 0.07794585418701172, "p95": 0.07794585418701172, "p99": 0.07794585418701172, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1250.885632, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.410496 }, "latency": { "unit": "s", "values": [ 0.006532320022583008, 0.006452991962432862, 0.006228576183319092, 0.006328800201416016, 0.006341951847076416, 0.0063405442237854, 0.006332096099853516, 0.006310272216796875, 0.006348800182342529, 0.006405600070953369, 0.006330592155456543, 0.006291007995605469, 0.006296192169189453, 0.006341184139251709, 0.006357151985168457, 0.0063357119560241695, 0.006456128120422363, 0.006342336177825928, 0.006376416206359863, 0.0063805441856384275, 0.0062919678688049315, 0.006300096035003662, 0.006297664165496826, 0.006324543952941895, 0.006321792125701904, 0.006289247989654541, 0.006284639835357666, 0.006284704208374023, 0.006336160182952881, 0.0063385281562805176, 0.006313727855682373, 0.0063062081336975094, 0.006305984020233154, 0.0063333439826965335, 0.006336544036865234, 0.0062674880027771, 0.006267680168151856, 0.006705887794494629, 0.0066200637817382816, 0.0064910402297973634, 0.006529727935791016, 0.006498271942138672, 0.006456064224243164, 0.006446400165557861, 0.006320767879486084, 0.006428383827209473, 0.0065203838348388676, 0.006257919788360595, 0.006285696029663086, 0.006291039943695068, 0.007637440204620361, 0.006288991928100586, 0.00630463981628418, 0.006337344169616699, 0.00628988790512085, 0.00625164794921875, 0.006278431892395019, 0.006229279994964599, 0.006310431957244873, 0.006292640209197998, 0.006249536037445069, 0.00626259183883667, 0.006296607971191406, 0.006322656154632568, 0.006274144172668457, 0.006257823944091797, 0.006297088146209716, 0.006299488067626953, 0.00727126407623291, 0.007529280185699463, 0.006707456111907959, 0.006707039833068848, 0.006565663814544678, 0.006492063999176025, 0.0065213761329650875, 0.006509791851043701, 0.006286431789398193, 0.006305503845214844 ], "count": 78, "total": 0.4995577301979066, "mean": 0.006404586284588544, "p50": 0.006326672077178955, "p90": 0.006542323160171509, "p95": 0.006707102274894715, "p99": 0.00755415699005127, "stdev": 0.00024296666436617514, "stdev_": 3.793635585031146 }, "throughput": { "unit": "tokens/s", "value": 312.27622068464143 }, "energy": { "unit": "kWh", "cpu": 8.070154068404932e-08, "ram": 4.403843000247089e-08, "gpu": 1.632144162857135e-07, "total": 2.879543869722337e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6945544.469835954 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1250.885632, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.458112 }, "latency": { "unit": "s", "values": [ 0.006772319793701172, 0.006488768100738526, 0.006663936138153076, 0.006465760231018067, 0.006486720085144043, 0.006467199802398681, 0.006624032020568848, 0.006561408042907715, 0.006475615978240967, 0.006456287860870361, 0.00650275182723999, 0.0064988799095153805, 0.006488287925720215, 0.006446688175201416, 0.006422048091888428, 0.0066063361167907715, 0.006504703998565673, 0.006483391761779785, 0.006454112052917481, 0.006478432178497314, 0.006472383975982666, 0.0064551677703857425, 0.006455679893493652, 0.006422175884246826, 0.006448671817779541, 0.006451583862304687, 0.006473087787628174, 0.0064633917808532716, 0.006529248237609863, 0.006362016201019287, 0.006482751846313477, 0.006482272148132324, 0.006480063915252686, 0.006452576160430908, 0.006462528228759766, 0.006466720104217529, 0.006466944217681885, 0.006743360042572022, 0.006801695823669434, 0.00670576000213623, 0.006636064052581787, 0.006792191982269287, 0.006705440044403076, 0.00646073579788208, 0.006437376022338868, 0.006539040088653565, 0.006515999794006347, 0.006485536098480225, 0.006413440227508545, 0.006436223983764648, 0.006556416034698486, 0.006450079917907715, 0.006446591854095459, 0.0064256319999694824, 0.00654640007019043, 0.006493375778198242, 0.006447487831115722, 0.00647273588180542, 0.006446623802185058, 0.006480735778808594, 0.006491968154907227, 0.006481215953826904, 0.006426784038543701, 0.006471360206604004, 0.006473951816558838, 0.006475008010864257, 0.006484447956085205, 0.006844575881958008, 0.007157440185546875, 0.007537600040435791, 0.006810272216796875, 0.006799327850341797, 0.006724415779113769, 0.006692671775817871, 0.006641727924346924, 0.006573279857635498, 0.006480991840362549, 0.006488287925720215 ], "count": 78, "total": 0.5106692142486572, "mean": 0.0065470412083161195, "p50": 0.006481744050979614, "p90": 0.006752047967910767, "p95": 0.00680298228263855, "p99": 0.007244876952171327, "stdev": 0.00017306302705000787, "stdev_": 2.6433776960221573 }, "throughput": { "unit": "tokens/s", "value": 152.74075237678198 }, "energy": { "unit": "kWh", "cpu": 7.468430490578097e-08, "ram": 4.08706002954442e-08, "gpu": 1.2466820940260009e-07, "total": 2.4022311460382537e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4162796.7468875526 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.00638156795501709, 0.006097919940948486, 0.006284287929534912, 0.006090752124786377, 0.006110208034515381, 0.006077439785003662, 0.006245440006256104, 0.006182911872863769, 0.006098944187164307, 0.006071296215057373, 0.0060928001403808595, 0.006115327835083008, 0.0061112961769104, 0.006072319984436035, 0.006047743797302246, 0.0062259202003479, 0.00612556791305542, 0.006109183788299561, 0.006079487800598145, 0.00608355188369751, 0.006096896171569824, 0.006080512046813965, 0.006081535816192627, 0.006047743797302246, 0.006072319984436035, 0.006078464031219482, 0.006097919940948486, 0.006089727878570556, 0.006149119853973388, 0.005984255790710449, 0.006106112003326416, 0.006108160018920898, 0.006100992202758789, 0.006076416015625, 0.006067200183868408, 0.006090720176696777, 0.0060928001403808595, 0.0063539199829101565, 0.006408192157745361, 0.00632422399520874, 0.006255616188049316, 0.006366208076477051, 0.006323200225830078, 0.006086656093597412, 0.006052864074707031, 0.006141952037811279, 0.0061296639442443845, 0.0060999999046325686, 0.006038527965545654, 0.006051839828491211, 0.006182911872863769, 0.00607539176940918, 0.0060590081214904785, 0.006048768043518066, 0.006171648025512695, 0.006119423866271972, 0.0060661759376525876, 0.006088704109191895, 0.006055935859680176, 0.006094848155975342, 0.006103104114532471, 0.006103040218353272, 0.006055935859680176, 0.006073344230651856, 0.006096896171569824, 0.006097919940948486, 0.006100992202758789, 0.0064429759979248045, 0.006680575847625733, 0.007117824077606201, 0.0064174079895019534, 0.006395904064178467, 0.006338560104370118, 0.006309919834136963, 0.006243328094482422, 0.006198272228240966, 0.006105088233947754, 0.006108160018920898 ], "count": 78, "total": 0.4807097930908202, "mean": 0.006162946065266927, "p50": 0.0061004960536956785, "p90": 0.006357606410980225, "p95": 0.00640957453250885, "p99": 0.006781142940521242, "stdev": 0.0001631684073331046, "stdev_": 2.6475715608268513 }, "throughput": { "unit": "tokens/s", "value": 162.26006027146505 }, "energy": null, "efficiency": null } } }