{ "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", "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": 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": "3e2eebdc0f80ae6deeb2e1faad3e889ed5a4df2d", "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": 1047.945216, "max_global_vram": 1118.425088, "max_process_vram": 285219.606528, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 53, "total": 0.5036106195449829, "mean": 0.009502087161226093, "stdev": 0.00043804482795613357, "p50": 0.009412053108215333, "p90": 0.00990225601196289, "p95": 0.010106701469421386, "p99": 0.01112758575439453, "values": [ 0.011241152763366699, 0.009712530136108398, 0.0098778076171875, 0.009704211235046386, 0.009658611297607422, 0.009777809143066406, 0.009412053108215333, 0.009444533348083496, 0.009934927940368652, 0.009561652183532715, 0.009585811614990234, 0.009853487968444824, 0.009697810173034668, 0.009977486610412598, 0.009490612983703614, 0.009404053688049316, 0.009553972244262696, 0.009812369346618652, 0.01030052375793457, 0.00970436954498291, 0.009908368110656738, 0.009751568794250489, 0.009341014862060546, 0.009429813385009766, 0.009327415466308595, 0.009273015022277831, 0.00953477191925049, 0.009663411140441894, 0.009589971542358399, 0.011022754669189453, 0.00939621353149414, 0.009291093826293945, 0.009293014526367188, 0.009100216865539551, 0.009145016670227052, 0.009252215385437012, 0.009222775459289552, 0.009522932052612305, 0.009219735145568848, 0.009156856536865234, 0.009110297203063965, 0.009134615898132324, 0.009165976524353027, 0.00910789680480957, 0.009102135658264161, 0.00928837490081787, 0.009080698013305664, 0.009111256599426269, 0.0090811767578125, 0.009069018363952637, 0.009071896553039551, 0.009090136528015137, 0.009049178123474121 ] }, "throughput": { "unit": "tokens/s", "value": 210.48007306869746 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1047.945216, "max_global_vram": 1118.437376, "max_process_vram": 297961.41056, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 53, "total": 0.5056981067657471, "mean": 0.009541473712561267, "stdev": 0.00033700349040542775, "p50": 0.009443572998046875, "p90": 0.009963534545898437, "p95": 0.010009070205688477, "p99": 0.01028773567199707, "values": [ 0.009618290901184082, 0.0100134859085083, 0.009870448112487794, 0.009876208305358887, 0.009913647651672363, 0.009635411262512206, 0.009533652305603027, 0.009903887748718261, 0.009909646987915039, 0.009422133445739746, 0.009950286865234375, 0.009965646743774413, 0.009965486526489258, 0.009852048873901367, 0.009464853286743164, 0.009656370162963867, 0.009588211059570313, 0.010401802062988281, 0.010182443618774415, 0.0099094877243042, 0.009947406768798827, 0.009559412002563477, 0.009443572998046875, 0.009431254386901856, 0.009312053680419922, 0.009399092674255372, 0.009955726623535156, 0.009660210609436035, 0.010006126403808593, 0.009628371238708496, 0.009351094245910645, 0.009353653907775879, 0.009252055168151856, 0.009181495666503905, 0.009159735679626465, 0.00918021583557129, 0.009355733871459961, 0.009416852951049805, 0.009252535820007323, 0.009190936088562012, 0.009895567893981933, 0.00922757625579834, 0.009196056365966796, 0.00919429588317871, 0.009196696281433105, 0.009180855751037598, 0.00917525577545166, 0.009177495956420898, 0.009215255737304688, 0.009157336235046387, 0.009141176223754884, 0.009141817092895507, 0.009127735137939453 ] }, "throughput": { "unit": "tokens/s", "value": 104.8056128565872 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 52, "total": 0.9908806209564208, "mean": 0.01905539655685425, "stdev": 0.0006711370669764621, "p50": 0.019016024589538574, "p90": 0.019906879997253418, "p95": 0.020018814277648924, "p99": 0.0208063881111145, "values": [ 0.019712575912475584, 0.01983353614807129, 0.01962313652038574, 0.019625858306884767, 0.019522979736328126, 0.019015304565429686, 0.019295459747314454, 0.01993097686767578, 0.019117544174194336, 0.01947050094604492, 0.019885856628417967, 0.01972185516357422, 0.019909215927124024, 0.01905962371826172, 0.01906074333190918, 0.01921210479736328, 0.020126171112060547, 0.020578168869018556, 0.019679935455322265, 0.019928415298461913, 0.019450019836425782, 0.018831466674804686, 0.0188997859954834, 0.01873114776611328, 0.018707788467407227, 0.019455299377441407, 0.019393220901489257, 0.01938249969482422, 0.021043922424316405, 0.018823787689208983, 0.018671947479248045, 0.018598989486694337, 0.018302671432495116, 0.01835147285461426, 0.01845979118347168, 0.018589708328247072, 0.01901674461364746, 0.01851083183288574, 0.018396591186523436, 0.01903290367126465, 0.018389551162719727, 0.018405712127685547, 0.01833627128601074, 0.018326032638549806, 0.01850939178466797, 0.018281871795654298, 0.018341712951660157, 0.01833259201049805, 0.018268594741821288, 0.018245872497558595, 0.01827035140991211, 0.018212112426757812 ] }, "throughput": { "unit": "tokens/s", "value": 52.47857198963927 }, "energy": null, "efficiency": null } } }