{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.2.2+rocm5.7", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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": {}, "hub_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, "latency": true, "memory": true, "energy": false, "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 7763 64-Core Processor", "cpu_count": 128, "cpu_ram_mb": 1082015.236096, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "Advanced Micro Devices, Inc. [AMD/ATI]" ], "gpu_count": 1, "gpu_vram_mb": 68702699520, "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "519f5ad32b6cd1fea2bd501503e24d19a1e23c22", "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": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1049.112576, "max_global_vram": 2744.098816, "max_process_vram": 320496.500736, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 59, "total": 0.505707465171814, "mean": 0.008571312969013796, "stdev": 0.0010269707030393937, "p50": 0.008382218360900879, "p90": 0.008886664199829102, "p95": 0.008930297088623047, "p99": 0.011952058181762707, "values": [ 0.01596267795562744, 0.008657096862792969, 0.009047816276550293, 0.008353418350219726, 0.00882237720489502, 0.008603657722473144, 0.008427337646484375, 0.008367657661437988, 0.007881578922271728, 0.007981258869171143, 0.008163018226623535, 0.008199817657470703, 0.008452937126159668, 0.008555497169494629, 0.008366058349609375, 0.00852205753326416, 0.00831885814666748, 0.008111019134521485, 0.008260937690734863, 0.008269417762756347, 0.008246857643127442, 0.00827741813659668, 0.008110858917236329, 0.008441577911376954, 0.008071819305419921, 0.008382218360900879, 0.008189417839050294, 0.008079018592834473, 0.008192138671875, 0.007849578857421874, 0.007866539001464844, 0.008266218185424805, 0.008115018844604492, 0.00809213924407959, 0.007873418807983399, 0.008087339401245118, 0.007986538887023926, 0.008239018440246581, 0.00826077938079834, 0.008550537109375, 0.008373417854309083, 0.008485418319702148, 0.008643177032470703, 0.008530696868896485, 0.008846536636352539, 0.008941096305847168, 0.008822216987609863, 0.008848136901855468, 0.008875656127929687, 0.008886216163635254, 0.008875656127929687, 0.008880776405334473, 0.008929097175598144, 0.008858696937561035, 0.008882376670837402, 0.008888456344604492, 0.0088890962600708, 0.008866536140441894, 0.008881256103515625 ] }, "throughput": { "unit": "tokens/s", "value": 233.33648033040117 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1049.112576, "max_global_vram": 2744.090624, "max_process_vram": 284232.388608, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 59, "total": 0.5032809133529663, "mean": 0.008530184972084175, "stdev": 0.00032734797770625495, "p50": 0.008479178428649902, "p90": 0.008943880081176758, "p95": 0.00897404041290283, "p99": 0.009025355644226074, "values": [ 0.008836457252502442, 0.008606857299804687, 0.008979657173156737, 0.008704776763916016, 0.008585257530212402, 0.008500137329101563, 0.008106538772583008, 0.008119338035583496, 0.007935978889465333, 0.008415018081665039, 0.008100459098815918, 0.008232298851013184, 0.008479178428649902, 0.008152778625488282, 0.008381736755371095, 0.008445577621459961, 0.008139657974243163, 0.008363818168640137, 0.00830317783355713, 0.008263338088989257, 0.008372777938842774, 0.008330218315124512, 0.00833517837524414, 0.00841469669342041, 0.008215977668762206, 0.008420138359069825, 0.008817736625671386, 0.008444936752319335, 0.007907818794250489, 0.008340937614440918, 0.008095819473266602, 0.008149578094482421, 0.008342377662658692, 0.008257098197937011, 0.00825773811340332, 0.008308777809143067, 0.00790717887878418, 0.008583176612854003, 0.008560457229614259, 0.008785737037658692, 0.008550698280334473, 0.008694376945495606, 0.008506697654724121, 0.008782377243041992, 0.008917415618896484, 0.00894477653503418, 0.008941255569458007, 0.008932616233825684, 0.00892605686187744, 0.008958057403564453, 0.0089292573928833, 0.008980937004089355, 0.008973416328430175, 0.008943655967712402, 0.009086695671081543, 0.008920936584472657, 0.0089292573928833, 0.008939817428588867, 0.008922216415405273 ] }, "throughput": { "unit": "tokens/s", "value": 117.23075211998253 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 58, "total": 0.9861196327209469, "mean": 0.01700206263311978, "stdev": 0.0006390946819251854, "p50": 0.016866596221923828, "p90": 0.017863296127319336, "p95": 0.01792263927459717, "p99": 0.01803110363006592, "values": [ 0.017296913146972657, 0.018094032287597657, 0.017103475570678713, 0.01749499320983887, 0.017091154098510742, 0.016615957260131837, 0.016517236709594728, 0.015840598106384277, 0.01643419647216797, 0.016294197082519533, 0.016440916061401366, 0.016969396591186525, 0.016727476119995116, 0.016804275512695314, 0.017008596420288086, 0.016490995407104494, 0.01650651741027832, 0.01659531593322754, 0.01654107666015625, 0.016694835662841797, 0.01658859634399414, 0.016521717071533205, 0.01688107681274414, 0.016308757781982423, 0.01684299659729004, 0.017011796951293946, 0.016599475860595705, 0.016127477645874022, 0.016220436096191407, 0.015947797775268554, 0.016466997146606446, 0.0165186767578125, 0.016377237319946288, 0.016162036895751953, 0.016414997100830078, 0.015923157691955566, 0.016817075729370117, 0.016852115631103514, 0.01736955451965332, 0.01695067596435547, 0.01722251319885254, 0.01717707633972168, 0.01734827423095703, 0.0177916316986084, 0.017920431137084962, 0.017796911239624024, 0.017811151504516603, 0.017833232879638672, 0.01787931251525879, 0.017840272903442384, 0.017895952224731445, 0.017935152053833007, 0.017831472396850585, 0.017983631134033205, 0.01785643196105957, 0.01784587287902832, 0.01784779167175293, 0.017837711334228516 ] }, "throughput": { "unit": "tokens/s", "value": 58.81639313879564 }, "energy": null, "efficiency": null } } }