{ "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.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "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": 723.980288, "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.22399560546875, "mean": 7.22399560546875, "stdev": 0.0, "p50": 7.22399560546875, "p90": 7.22399560546875, "p95": 7.22399560546875, "p99": 7.22399560546875, "values": [ 7.22399560546875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0454085423609803e-06, "ram": 5.278629535050634e-07, "gpu": 1.7588902960000413e-06, "total": 3.3321617918660853e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1024.098304, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 73, "total": 0.4886718378067017, "mean": 0.006694134764475366, "stdev": 0.00032174785382332947, "p50": 0.006717279911041259, "p90": 0.007071987152099609, "p95": 0.0071018687248229975, "p99": 0.0073179518699646, "values": [ 0.007551807880401612, 0.007197184085845947, 0.007045119762420654, 0.006978303909301758, 0.006717599868774414, 0.006927807807922363, 0.007023231983184814, 0.007081215858459473, 0.007068927764892578, 0.006991072177886963, 0.007109183788299561, 0.007096992015838623, 0.007071680068969727, 0.007081727981567382, 0.006815743923187256, 0.007024415969848633, 0.0068466877937316895, 0.006944064140319824, 0.00707206392288208, 0.00688153600692749, 0.007043871879577637, 0.007017759799957275, 0.0067441282272338865, 0.006959680080413818, 0.006610144138336182, 0.006623936176300049, 0.007003007888793945, 0.006913087844848633, 0.0068904638290405275, 0.006925695896148681, 0.007227007865905762, 0.007057151794433594, 0.006987232208251953, 0.006729599952697754, 0.006893599987030029, 0.006531583786010742, 0.006372735977172851, 0.006879807949066162, 0.006484288215637207, 0.00663753604888916, 0.006717279911041259, 0.006829440116882324, 0.0068726401329040525, 0.006622399806976318, 0.006595200061798096, 0.006527391910552979, 0.006489408016204834, 0.00647219181060791, 0.006367424011230469, 0.006382207870483398, 0.006443552017211914, 0.006355135917663574, 0.006339871883392334, 0.006374207973480225, 0.006347519874572754, 0.0064587841033935545, 0.0063482561111450194, 0.0063547840118408205, 0.006387263774871826, 0.006190911769866943, 0.006123775959014892, 0.006360352039337158, 0.006386784076690674, 0.006381375789642334, 0.006356448173522949, 0.006396128177642822, 0.006082784175872802, 0.006358687877655029, 0.006338367938995362, 0.006353439807891846, 0.006366496086120606, 0.0063014721870422365, 0.006331168174743653 ] }, "throughput": { "unit": "tokens/s", "value": 298.76900755175404 }, "energy": { "unit": "kWh", "cpu": 7.545169456387012e-08, "ram": 4.125285706808791e-08, "gpu": 1.5280090072611566e-07, "total": 2.695054523580737e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7421000.141187255 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1039.740928, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 73, "total": 0.5145351037979126, "mean": 0.00704842607942346, "stdev": 0.00034801838947721536, "p50": 0.006994847774505615, "p90": 0.007471065711975098, "p95": 0.007509740924835205, "p99": 0.007672184295654297, "values": [ 0.007531936168670654, 0.0075435199737548825, 0.00728927993774414, 0.007460576057434082, 0.007166880130767822, 0.007319680213928223, 0.007474944114685058, 0.007390399932861328, 0.007439680099487304, 0.0074386558532714845, 0.007425343990325928, 0.007311647891998291, 0.007494944095611572, 0.007351647853851318, 0.0072409920692443844, 0.007310431957244873, 0.0073116798400878905, 0.0073697280883789065, 0.007477856159210205, 0.007962880134582519, 0.007273439884185791, 0.007559135913848877, 0.007082015991210938, 0.00729702377319336, 0.006994847774505615, 0.007384607791900635, 0.007237279891967773, 0.007330560207366944, 0.007271103858947754, 0.007435840129852295, 0.007469759941101074, 0.007471392154693604, 0.0074479360580444335, 0.006930335998535157, 0.007366112232208252, 0.006716063976287842, 0.007172959804534912, 0.00687775993347168, 0.006884736061096191, 0.006871871948242188, 0.006969151973724365, 0.007282080173492432, 0.006842720031738281, 0.0067972478866577144, 0.006809919834136963, 0.006802527904510498, 0.006861055850982666, 0.006782976150512696, 0.006712800025939942, 0.006652416229248047, 0.006676511764526367, 0.006644000053405761, 0.006718495845794678, 0.006671487808227539, 0.006653279781341553, 0.0066902399063110355, 0.006628960132598877, 0.006679647922515869, 0.006641056060791016, 0.006685823917388916, 0.007011168003082276, 0.00667628812789917, 0.006667712211608887, 0.006660799980163574, 0.006697184085845948, 0.006673920154571533, 0.006394559860229492, 0.006738111972808838, 0.006638400077819824, 0.006719647884368896, 0.006672800064086914, 0.006712160110473633, 0.006682464122772217 ] }, "throughput": { "unit": "tokens/s", "value": 141.87564553160456 }, "energy": { "unit": "kWh", "cpu": 7.08214512008825e-08, "ram": 3.872214155959359e-08, "gpu": 1.456526988047462e-07, "total": 2.551962915652222e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3918552.240185761 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.48058383846282976, "mean": 0.006583340252915475, "stdev": 0.00028642523975956684, "p50": 0.006521920204162598, "p90": 0.006934527969360352, "p95": 0.006980198383331299, "p99": 0.007136542549133301, "values": [ 0.006988800048828125, 0.007021567821502686, 0.006778880119323731, 0.006910975933074951, 0.006681600093841553, 0.006807551860809326, 0.006953983783721924, 0.006864895820617676, 0.006899712085723877, 0.006918144226074219, 0.0068853759765625, 0.006799359798431396, 0.006974463939666748, 0.00684441614151001, 0.0067420158386230465, 0.006770751953125, 0.006797311782836914, 0.0068321280479431154, 0.006895616054534912, 0.007432191848754883, 0.006760543823242188, 0.007001023769378662, 0.006575104236602783, 0.006749184131622315, 0.006486015796661377, 0.006811583995819092, 0.006716383934020996, 0.006799359798431396, 0.0067645440101623535, 0.006855679988861084, 0.006938623905181885, 0.006944767951965332, 0.006908927917480469, 0.006440959930419922, 0.00683622407913208, 0.006294528007507324, 0.006663167953491211, 0.006458367824554443, 0.006457344055175781, 0.006440959930419922, 0.006521920204162598, 0.006713344097137451, 0.006419456005096436, 0.0063805441856384275, 0.006398975849151611, 0.006406144142150879, 0.006463488101959228, 0.006395904064178467, 0.006326303958892822, 0.0062638077735900875, 0.0062873601913452145, 0.006246399879455566, 0.006329343795776367, 0.00628326416015625, 0.006264832019805908, 0.0062975997924804685, 0.006235136032104492, 0.0062873601913452145, 0.006255616188049316, 0.006292479991912842, 0.006617087841033936, 0.0062494721412658695, 0.006270976066589356, 0.006275072097778321, 0.006309887886047363, 0.0062740478515625, 0.006014976024627685, 0.006350912094116211, 0.006250495910644531, 0.006302720069885254, 0.006276095867156982, 0.006325247764587402, 0.006294528007507324 ] }, "throughput": { "unit": "tokens/s", "value": 151.89857452030427 }, "energy": null, "efficiency": null } } }