{ "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", "numactl": false, "numactl_kwargs": {}, "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.1", "optimum_benchmark_commit": "43734676b09236e2ae4d7c19f90e8e23d1f2f201", "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1049.481216, "max_global_vram": 1107.546112, "max_process_vram": 245220.020224, "max_reserved": 725.614592, "max_allocated": 513.035776 }, "latency": { "unit": "s", "count": 57, "total": 0.4984840621948241, "mean": 0.008745334424470601, "stdev": 0.0005261464159889045, "p50": 0.008522002220153809, "p90": 0.009290379333496093, "p95": 0.009460553359985352, "p99": 0.010859567070007322, "values": [ 0.011362935066223144, 0.009436553955078125, 0.00936583423614502, 0.008921998023986816, 0.008823119163513183, 0.008714799880981445, 0.008894158363342284, 0.008804558753967285, 0.008830638885498046, 0.009137516021728515, 0.00883543872833252, 0.00879175853729248, 0.008709039688110352, 0.00892615795135498, 0.01046406364440918, 0.008663761138916015, 0.008451281547546386, 0.008412403106689453, 0.008399283409118653, 0.008406323432922363, 0.008921358108520508, 0.00838760280609131, 0.008422001838684082, 0.009033197402954102, 0.009240076065063477, 0.009144716262817383, 0.008869519233703613, 0.008563920974731446, 0.008377842903137207, 0.00848808193206787, 0.008386322975158692, 0.008390322685241699, 0.008583761215209961, 0.008406163215637207, 0.008426321983337402, 0.008394002914428711, 0.008402162551879883, 0.008396082878112793, 0.008471282005310058, 0.009488073348999024, 0.009453673362731934, 0.008828558921813966, 0.00886983871459961, 0.008711759567260741, 0.008433202743530273, 0.008522002220153809, 0.008403923034667969, 0.008444883346557618, 0.00839576244354248, 0.008451441764831542, 0.008422962188720703, 0.008371603012084962, 0.008474802017211914, 0.008381202697753906, 0.008382802963256835, 0.008369523048400879, 0.008421683311462402 ] }, "throughput": { "unit": "tokens/s", "value": 228.6933698502982 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1049.481216, "max_global_vram": 1107.546112, "max_process_vram": 234558.283776, "max_reserved": 725.614592, "max_allocated": 513.25952 }, "latency": { "unit": "s", "count": 57, "total": 0.5037315340042114, "mean": 0.008837395333407218, "stdev": 0.0002283142475375872, "p50": 0.008759279251098633, "p90": 0.009202059173583984, "p95": 0.009257643890380859, "p99": 0.009378243064880372, "values": [ 0.009347114562988281, 0.009203115463256835, 0.00920135498046875, 0.008885839462280273, 0.00887095832824707, 0.008876558303833007, 0.008942317962646485, 0.008972077369689942, 0.00908967685699463, 0.008999438285827636, 0.008902318000793457, 0.009153515815734863, 0.008914318084716797, 0.008910158157348632, 0.009235276222229003, 0.008674160003662109, 0.00866200065612793, 0.008661520004272462, 0.008759279251098633, 0.008673040390014649, 0.008755120277404785, 0.008700079917907715, 0.008933197975158692, 0.009141036033630371, 0.009350153923034668, 0.009220874786376954, 0.009041677474975586, 0.008904077529907227, 0.00867527961730957, 0.00870584011077881, 0.008638641357421876, 0.008735280036926269, 0.008675600051879883, 0.008736399650573731, 0.008809359550476074, 0.00851112174987793, 0.008663439750671386, 0.008719599723815918, 0.009118475914001466, 0.009413992881774903, 0.0087795991897583, 0.008870159149169922, 0.008800079345703125, 0.008683120727539063, 0.00866215991973877, 0.00868008041381836, 0.008625361442565918, 0.008718640327453613, 0.008559922218322753, 0.008598641395568847, 0.008671760559082031, 0.008519440650939942, 0.0085695219039917, 0.00866775894165039, 0.008771279335021972, 0.00850936222076416, 0.008661359786987304 ] }, "throughput": { "unit": "tokens/s", "value": 113.15551271309423 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 56, "total": 0.9843434467315675, "mean": 0.01757756154877799, "stdev": 0.0005801569263428278, "p50": 0.017345920562744144, "p90": 0.018383511543273924, "p95": 0.018703227519989013, "p99": 0.01933270292282105, "values": [ 0.018797908782958984, 0.018478870391845703, 0.018016635894775392, 0.017643198013305664, 0.017615198135375976, 0.01793135643005371, 0.017728635787963867, 0.01795487594604492, 0.01819919204711914, 0.017791196823120116, 0.017906396865844727, 0.017687835693359376, 0.017884315490722655, 0.019741899490356447, 0.01740959930419922, 0.01721504211425781, 0.017084644317626952, 0.017152803421020508, 0.017261600494384764, 0.01762207794189453, 0.01716064453125, 0.01732912063598633, 0.018251512527465822, 0.018671667098999024, 0.01849551010131836, 0.01790079689025879, 0.017525760650634766, 0.017168642044067383, 0.017169761657714843, 0.017095203399658202, 0.017061283111572265, 0.017377119064331054, 0.017181922912597656, 0.017254241943359373, 0.017074563980102538, 0.017144323348999024, 0.017294240951538087, 0.017637277603149416, 0.01899790573120117, 0.01828815269470215, 0.01770063591003418, 0.017686077117919922, 0.017362720489501954, 0.017193283081054687, 0.017237119674682617, 0.017054723739624023, 0.017154561996459962, 0.017124963760375977, 0.017032163619995117, 0.017206562042236327, 0.017035844802856446, 0.01701488494873047, 0.017082244873046874, 0.017172639846801757, 0.01706432342529297, 0.017017763137817384 ] }, "throughput": { "unit": "tokens/s", "value": 56.89071247026986 }, "energy": null, "efficiency": null } } }