{ "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": 1078.059008, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 55, "total": 0.49556258773803713, "mean": 0.009010228867964312, "stdev": 0.00033507785541267866, "p50": 0.009013952255249024, "p90": 0.009343385887145996, "p95": 0.009663321208953857, "p99": 0.009970869235992432, "values": [ 0.009908736228942871, 0.009691231727600098, 0.009651359558105468, 0.009584511756896973, 0.009111200332641602, 0.008970272064208985, 0.00928649616241455, 0.009381312370300293, 0.009027647972106933, 0.00913980770111084, 0.00913167953491211, 0.009203359603881836, 0.009138431549072266, 0.008936832427978516, 0.00899350357055664, 0.009044672012329101, 0.009195967674255371, 0.009172063827514648, 0.009017567634582519, 0.009006175994873047, 0.008882368087768554, 0.009013952255249024, 0.009224543571472168, 0.009019583702087402, 0.009019359588623047, 0.008982144355773925, 0.00919961643218994, 0.010043807983398437, 0.009213055610656738, 0.00918899154663086, 0.009106687545776367, 0.008763872146606445, 0.008922495841979981, 0.009085536003112793, 0.00925772762298584, 0.008981023788452148, 0.009042688369750976, 0.00887507152557373, 0.008783040046691894, 0.008798656463623046, 0.008515007972717285, 0.008529888153076173, 0.008488832473754883, 0.00847811222076416, 0.00850937557220459, 0.008470047950744629, 0.008755583763122559, 0.008723999977111816, 0.008741151809692383, 0.008776000022888183, 0.00870524787902832, 0.008707103729248046, 0.008737343788146973, 0.008716095924377441, 0.00871174430847168 ] }, "throughput": { "unit": "tokens/s", "value": 221.96994430529506 }, "energy": { "unit": "kWh", "cpu": 1.0602001603397113e-07, "ram": 5.796418177591736e-08, "gpu": 1.8729429666070338e-07, "total": 3.512784944705919e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5693488.304811197 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1078.059008, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 55, "total": 0.5126871309280394, "mean": 0.009321584198691628, "stdev": 0.0003043009398044304, "p50": 0.009374688148498535, "p90": 0.00966974048614502, "p95": 0.00979739532470703, "p99": 0.010045547485351563, "values": [ 0.010007776260375977, 0.010089887619018554, 0.009968128204345703, 0.00958841609954834, 0.009395648002624511, 0.009321375846862793, 0.009721823692321777, 0.009635775566101075, 0.009423583984375, 0.009432543754577636, 0.009443424224853515, 0.009440799713134766, 0.009431424140930176, 0.009342783927917481, 0.009325663566589355, 0.009389087677001954, 0.009529888153076172, 0.009379615783691406, 0.009443615913391113, 0.00941596794128418, 0.009332799911499023, 0.009374688148498535, 0.009580415725708008, 0.009363679885864258, 0.009364543914794922, 0.009484607696533203, 0.009625408172607422, 0.009692383766174316, 0.009724224090576172, 0.00943398380279541, 0.009551712036132812, 0.008835359573364258, 0.009400192260742188, 0.009467679977416993, 0.009410528182983399, 0.009238240242004394, 0.009288064002990723, 0.009091744422912598, 0.009089247703552246, 0.008910495758056641, 0.008887231826782227, 0.008777471542358398, 0.008780735969543457, 0.008784255981445312, 0.00876915168762207, 0.009145119667053222, 0.00905519962310791, 0.009029343605041503, 0.009055551528930663, 0.009058464050292968, 0.009081631660461427, 0.009011296272277832, 0.009036864280700684, 0.009061471939086914, 0.009166111946105957 ] }, "throughput": { "unit": "tokens/s", "value": 107.27790241280654 }, "energy": { "unit": "kWh", "cpu": 1.1105243291324177e-07, "ram": 6.071712103481071e-08, "gpu": 1.879837813393138e-07, "total": 3.597533352873662e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2779682.359862524 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.9902325763702392, "mean": 0.018337640303152575, "stdev": 0.0005973989233382165, "p50": 0.018404351234436032, "p90": 0.01900451889038086, "p95": 0.019419791984558104, "p99": 0.019791974678039552, "values": [ 0.019808256149291992, 0.01973865509033203, 0.019248096466064454, 0.018545663833618165, 0.018322431564331054, 0.019017728805541992, 0.019072000503540038, 0.01843916893005371, 0.01863270378112793, 0.0186296329498291, 0.01863680076599121, 0.01865216064453125, 0.018307071685791015, 0.018351104736328124, 0.0184453125, 0.018766847610473633, 0.01859174346923828, 0.018505727767944336, 0.018408447265625, 0.018278432846069337, 0.018415584564208984, 0.01887027168273926, 0.01840025520324707, 0.01842278480529785, 0.018473983764648438, 0.01886412811279297, 0.019777536392211914, 0.018973695755004884, 0.018710527420043945, 0.0186562557220459, 0.017718271255493166, 0.018265119552612306, 0.018587615966796874, 0.018753599166870118, 0.018248640060424804, 0.018335744857788085, 0.018067455291748045, 0.017878015518188475, 0.017772544860839845, 0.01742950439453125, 0.017332223892211913, 0.017298431396484376, 0.017286207199096678, 0.017284032821655273, 0.01764659118652344, 0.017836032867431642, 0.01778483200073242, 0.017829887390136717, 0.01785856056213379, 0.017811456680297853, 0.017743871688842772, 0.01778892707824707, 0.017811456680297853, 0.017900543212890627 ] }, "throughput": { "unit": "tokens/s", "value": 54.53264343003182 }, "energy": null, "efficiency": null } } }