{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "model": "openai-community/gpt2", "library": "transformers", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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, "latency": true, "memory": 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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.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.2.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1075.843072, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 58, "total": 0.4996990060806275, "mean": 0.008615500104838403, "stdev": 0.0005897721553713689, "p50": 0.008458687782287599, "p90": 0.008813766574859619, "p95": 0.009043792057037352, "p99": 0.010861496553421019, "values": [ 0.012706144332885742, 0.009469920158386231, 0.009197471618652343, 0.00873366355895996, 0.00845967960357666, 0.00839241600036621, 0.008382559776306153, 0.008397791862487793, 0.008760543823242187, 0.008529631614685059, 0.008423935890197755, 0.008412128448486328, 0.008401920318603515, 0.008457695960998535, 0.008279647827148438, 0.008562432289123536, 0.008483360290527344, 0.008793248176574706, 0.00872822380065918, 0.008363519668579102, 0.008435903549194336, 0.008494751930236816, 0.008315711975097657, 0.008351840019226075, 0.00835311985015869, 0.008377632141113282, 0.008397567749023437, 0.009016672134399413, 0.0087324800491333, 0.008686495780944823, 0.008795488357543945, 0.008638496398925782, 0.00869279956817627, 0.008352095603942872, 0.008385663986206054, 0.008373151779174805, 0.008490240097045899, 0.008447104454040528, 0.008303359985351562, 0.008585344314575196, 0.00874015998840332, 0.008656255722045899, 0.008856415748596191, 0.009008319854736328, 0.008697279930114746, 0.008330816268920899, 0.008596832275390626, 0.008344063758850098, 0.008327712059020996, 0.008469504356384277, 0.008551839828491212, 0.00838259220123291, 0.008368415832519531, 0.008357631683349609, 0.008386528015136719, 0.008426176071166993, 0.008684288024902344, 0.008352319717407226 ] }, "throughput": { "unit": "tokens/s", "value": 232.13974530356217 }, "energy": { "unit": "kWh", "cpu": 1.0525669349447232e-07, "ram": 5.754577871337347e-08, "gpu": 1.787489138937954e-07, "total": 3.415513861016412e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5855634.265834385 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1075.843072, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 58, "total": 0.5144683542251588, "mean": 0.008870144038364804, "stdev": 0.0005804053733587484, "p50": 0.008707711696624754, "p90": 0.00903934087753296, "p95": 0.009228441667556762, "p99": 0.011206815662384031, "values": [ 0.012778976440429687, 0.009548640251159668, 0.01002079963684082, 0.008882911682128906, 0.008691871643066406, 0.008943807601928712, 0.008792991638183595, 0.008578432083129884, 0.008924415588378906, 0.00868115234375, 0.008566752433776855, 0.008609888076782226, 0.008992416381835937, 0.008712415695190429, 0.00852291202545166, 0.00877286434173584, 0.00885750389099121, 0.008967967987060546, 0.008965279579162598, 0.008703007698059081, 0.008760736465454102, 0.008569664001464843, 0.00862332820892334, 0.008652480125427246, 0.008528384208679199, 0.008587615966796875, 0.009147007942199708, 0.008999263763427735, 0.008954719543457031, 0.008981663703918457, 0.009038496017456054, 0.009038016319274903, 0.008941951751708985, 0.008636992454528808, 0.008600319862365723, 0.008701600074768067, 0.00867795181274414, 0.008572959899902343, 0.008570464134216308, 0.009006560325622559, 0.00917193603515625, 0.009041312217712403, 0.00895747184753418, 0.009030400276184082, 0.008980128288269043, 0.00877945613861084, 0.008621120452880859, 0.008627648353576661, 0.008603520393371582, 0.008640768051147461, 0.00859273624420166, 0.008637663841247558, 0.008581791877746582, 0.008585375785827637, 0.008721376419067383, 0.00861628818511963, 0.00859449577331543, 0.008579680442810059 ] }, "throughput": { "unit": "tokens/s", "value": 112.73774086134776 }, "energy": { "unit": "kWh", "cpu": 1.0083138710811511e-07, "ram": 5.5135943643278315e-08, "gpu": 1.7195538965794204e-07, "total": 3.2792272040933556e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3049498.9757090686 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 57, "total": 0.9905675563812257, "mean": 0.017378378182126765, "stdev": 0.0004865355853395067, "p50": 0.01720217514038086, "p90": 0.017830298233032227, "p95": 0.01804656562805176, "p99": 0.019252223358154297, "values": [ 0.01924095916748047, 0.01926655960083008, 0.01778278350830078, 0.017184768676757813, 0.017346559524536134, 0.01720217514038086, 0.01701683235168457, 0.01769267272949219, 0.017237119674682617, 0.01703923225402832, 0.01704652786254883, 0.01740598487854004, 0.017209312438964845, 0.016829439163208008, 0.017318912506103516, 0.01740287971496582, 0.01778892707824707, 0.01767628860473633, 0.017134592056274413, 0.017101823806762697, 0.017228799819946287, 0.016969728469848632, 0.01703424072265625, 0.016907264709472656, 0.016987136840820313, 0.017555456161499023, 0.01804287910461426, 0.017716224670410157, 0.01770086479187012, 0.017827840805053712, 0.017716224670410157, 0.01767628860473633, 0.01702400016784668, 0.01701273536682129, 0.017106943130493164, 0.017177631378173828, 0.017058784484863282, 0.01690220832824707, 0.017610687255859375, 0.017929216384887696, 0.017736703872680663, 0.017833984375, 0.018061311721801757, 0.017717248916625978, 0.017120256423950195, 0.01724825668334961, 0.01698099136352539, 0.016982015609741212, 0.017142847061157228, 0.01717036819458008, 0.01705062484741211, 0.01697689628601074, 0.016963584899902344, 0.017130495071411133, 0.017067007064819336, 0.017303552627563477, 0.01697190475463867 ] }, "throughput": { "unit": "tokens/s", "value": 57.54276892353945 }, "energy": null, "efficiency": null } } }