{ "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.223-212.873.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.2", "transformers_commit": null, "accelerate_version": "0.34.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.12.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 796.01664, "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.661697265625, "mean": 7.661697265625, "stdev": 0.0, "p50": 7.661697265625, "p90": 7.661697265625, "p95": 7.661697265625, "p99": 7.661697265625, "values": [ 7.661697265625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 2.3983455972225127e-06, "ram": 1.2989471831542116e-06, "gpu": 3.1063913739999473e-06, "total": 6.803684154376672e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1219.018752, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 77, "total": 0.491596704006195, "mean": 0.006384372779301234, "stdev": 0.00020348565202049786, "p50": 0.006322976112365723, "p90": 0.006587104034423828, "p95": 0.006623846435546875, "p99": 0.007268014125823972, "values": [ 0.007650591850280762, 0.007147200107574463, 0.006621407985687256, 0.006372928142547607, 0.00634006404876709, 0.00636518383026123, 0.006359551906585693, 0.006345856189727783, 0.006318655967712403, 0.006362912178039551, 0.006337056159973145, 0.006348031997680664, 0.00635148811340332, 0.006384511947631836, 0.006311168193817138, 0.006331583976745605, 0.0063508801460266115, 0.0063439679145812986, 0.0063170561790466305, 0.0063192639350891115, 0.0063408961296081544, 0.006318431854248047, 0.006315231800079346, 0.0063067197799682615, 0.006313471794128418, 0.006308000087738037, 0.006283552169799805, 0.00629747200012207, 0.0062523198127746584, 0.006185535907745361, 0.006227935791015625, 0.006355008125305176, 0.00625603199005127, 0.006339231967926026, 0.0064766077995300295, 0.006633600234985351, 0.006363391876220703, 0.0063340158462524415, 0.006297215938568115, 0.006317503929138183, 0.006334144115447998, 0.00629702377319336, 0.0063005762100219725, 0.006275775909423828, 0.006281311988830566, 0.006320543766021728, 0.00631001615524292, 0.0062778878211975095, 0.006279263973236084, 0.006287007808685303, 0.0062984957695007325, 0.006613791942596436, 0.006701504230499268, 0.0065790400505065915, 0.006550975799560547, 0.006586463928222657, 0.00637116813659668, 0.006570847988128662, 0.006588064193725586, 0.006520639896392822, 0.0065569281578063965, 0.006322976112365723, 0.006293344020843506, 0.00628988790512085, 0.00629807996749878, 0.006315648078918457, 0.0063302721977233885, 0.006272768020629883, 0.006300896167755127, 0.0063257598876953125, 0.006262207984924316, 0.006202464103698731, 0.006220191955566406, 0.006291584014892578, 0.006331552028656006, 0.006592160224914551, 0.006243904113769531 ] }, "throughput": { "unit": "tokens/s", "value": 313.26491562087307 }, "energy": { "unit": "kWh", "cpu": 7.826369889437135e-08, "ram": 4.2791479971333933e-08, "gpu": 1.4633783636842152e-07, "total": 2.6739301523412683e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7479626.938829418 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1237.364736, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 77, "total": 0.5161214685440062, "mean": 0.006702876214857225, "stdev": 0.00022927021118545924, "p50": 0.00663267183303833, "p90": 0.00690254077911377, "p95": 0.006945177745819092, "p99": 0.007789660186767577, "values": [ 0.007743680000305176, 0.007935264110565186, 0.006698400020599365, 0.006665311813354492, 0.006624927997589111, 0.006628511905670166, 0.006670015811920166, 0.006649759769439698, 0.007390560150146485, 0.00664028787612915, 0.006647168159484863, 0.006640351772308349, 0.006652063846588134, 0.0066356477737426756, 0.006621183872222901, 0.006627903938293457, 0.006584959983825684, 0.006649983882904053, 0.006647456169128418, 0.006635392189025879, 0.006580959796905517, 0.006746463775634766, 0.006636159896850586, 0.006615359783172608, 0.006623456001281738, 0.0066102719306945805, 0.0066245441436767576, 0.0066100797653198245, 0.0065140161514282225, 0.006441504001617432, 0.0066241598129272465, 0.006636223793029785, 0.006680768013000488, 0.006595456123352051, 0.006838880062103272, 0.006682240009307862, 0.006616479873657226, 0.006604959964752197, 0.006634399890899658, 0.006640255928039551, 0.006612095832824707, 0.006577663898468018, 0.006620384216308593, 0.006679168224334717, 0.006592000007629394, 0.006597280025482178, 0.0066230401992797856, 0.006730239868164062, 0.00663267183303833, 0.0065944638252258304, 0.0066217598915100095, 0.00684335994720459, 0.006881792068481446, 0.006917471885681152, 0.0069023361206054686, 0.006721312046051025, 0.006811967849731445, 0.00693068790435791, 0.006902847766876221, 0.00693171215057373, 0.006999040126800537, 0.006614943981170654, 0.006628064155578614, 0.006625951766967774, 0.006612800121307373, 0.006608575820922852, 0.006646431922912597, 0.0066249918937683104, 0.0066102719306945805, 0.0065937919616699215, 0.00652732801437378, 0.0065262079238891605, 0.006545023918151855, 0.00667903995513916, 0.006608223915100098, 0.0068451519012451174, 0.0065559039115905765 ] }, "throughput": { "unit": "tokens/s", "value": 149.18968632949768 }, "energy": { "unit": "kWh", "cpu": 7.481485966154098e-08, "ram": 4.090316279469268e-08, "gpu": 1.384629612726022e-07, "total": 2.5418098372883573e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3934204.6180245164 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 77, "total": 0.4853637127876282, "mean": 0.0063034248413977685, "stdev": 0.00020739781227722154, "p50": 0.006239232063293457, "p90": 0.006492774486541748, "p95": 0.006546432113647461, "p99": 0.007229808635711669, "values": [ 0.007177216053009033, 0.007396351814270019, 0.00628326416015625, 0.006278143882751465, 0.00623308801651001, 0.006220799922943115, 0.006253568172454834, 0.006247424125671387, 0.006986752033233643, 0.006235136032104492, 0.00625875186920166, 0.006252543926239014, 0.006259712219238281, 0.006228991985321045, 0.006235136032104492, 0.006240255832672119, 0.006199295997619629, 0.006243328094482422, 0.006260735988616943, 0.0062494721412658695, 0.006195199966430664, 0.006336512088775635, 0.006245376110076905, 0.006228991985321045, 0.006239232063293457, 0.006206463813781738, 0.006239232063293457, 0.006223872184753418, 0.006131711959838867, 0.006043647766113281, 0.006212607860565185, 0.006248447895050049, 0.006277120113372803, 0.0061961917877197265, 0.006434815883636475, 0.006294528007507324, 0.006231040000915527, 0.006220736026763916, 0.0062494721412658695, 0.006253568172454834, 0.0062259202003479, 0.00619212818145752, 0.006234176158905029, 0.006292479991912842, 0.006202367782592774, 0.006190080165863037, 0.0062156801223754886, 0.006333439826965332, 0.006231040000915527, 0.006196224212646485, 0.006209536075592041, 0.00643887996673584, 0.006465536117553711, 0.006516736030578613, 0.006495232105255127, 0.006322175979614258, 0.006409215927124024, 0.0065146880149841305, 0.006491136074066162, 0.006533120155334473, 0.006599679946899414, 0.006227935791015625, 0.006242303848266601, 0.006230016231536865, 0.0062269439697265625, 0.0062228479385375976, 0.006252543926239014, 0.0062280001640319825, 0.006218751907348633, 0.0061931519508361815, 0.006115327835083008, 0.006141952037811279, 0.006162432193756104, 0.006292479991912842, 0.006220799922943115, 0.006457344055175781, 0.006172671794891358 ] }, "throughput": { "unit": "tokens/s", "value": 158.64391583326193 }, "energy": null, "efficiency": null } } }