{ "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": "2d3261cf9b992810a685ce736f41254a91cd091e", "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": 1051.090944, "max_global_vram": 1118.416896, "max_process_vram": 290114.256896, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 54, "total": 0.5035227260589599, "mean": 0.009324494927017776, "stdev": 0.00012499072583201882, "p50": 0.009297114372253418, "p90": 0.009389289855957031, "p95": 0.009443081665039063, "p99": 0.009848024396896362, "values": [ 0.009654233932495117, 0.010066554069519043, 0.00927151393890381, 0.009409593582153321, 0.009305113792419434, 0.009389913558959961, 0.009332313537597656, 0.009276313781738281, 0.009352153778076171, 0.009259993553161622, 0.009387834548950195, 0.009263194084167481, 0.009308314323425293, 0.009505273818969727, 0.009255675315856934, 0.009265753746032715, 0.009267193794250488, 0.009357275009155274, 0.009327994346618653, 0.009250714302062988, 0.009294554710388184, 0.009211994171142579, 0.009367354393005371, 0.009259194374084472, 0.009275033950805664, 0.009364633560180665, 0.00928895378112793, 0.009270554542541503, 0.00927679443359375, 0.009392313957214356, 0.009357595443725586, 0.009308314323425293, 0.009350234031677247, 0.009282553672790527, 0.00933631420135498, 0.009259034156799316, 0.009315513610839843, 0.009325274467468262, 0.009260313987731934, 0.009278714179992676, 0.00920639419555664, 0.009344474792480469, 0.009349594116210938, 0.00927679443359375, 0.00931807518005371, 0.009335034370422364, 0.009291193962097167, 0.009240155220031738, 0.009259993553161622, 0.009299674034118653, 0.00923311424255371, 0.009259353637695313, 0.00921983528137207, 0.00930687427520752 ] }, "throughput": { "unit": "tokens/s", "value": 214.48882922387452 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1051.090944, "max_global_vram": 1118.404608, "max_process_vram": 293054.595072, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 54, "total": 0.5102832021713258, "mean": 0.009449688929098624, "stdev": 0.0005274323502854653, "p50": 0.009367674350738524, "p90": 0.00946277780532837, "p95": 0.009495082473754883, "p99": 0.011572591323852535, "values": [ 0.013187352180480958, 0.009492954254150391, 0.00937375545501709, 0.009384954452514648, 0.009463833808898927, 0.009368953704833984, 0.009427675247192383, 0.00934127426147461, 0.00944815444946289, 0.009446073532104492, 0.009311834335327148, 0.009356634140014648, 0.00945327377319336, 0.00946031379699707, 0.00939583396911621, 0.009321273803710938, 0.00943359375, 0.009332473754882813, 0.00937343406677246, 0.009296954154968262, 0.00941279411315918, 0.00946799373626709, 0.00930959415435791, 0.009366394996643067, 0.009316473960876466, 0.009369274139404297, 0.009499034881591796, 0.009378554344177246, 0.009443034172058105, 0.009302873611450196, 0.009352474212646485, 0.009303194046020508, 0.009391353607177735, 0.009379674911499023, 0.009322234153747559, 0.00934847354888916, 0.009301115036010742, 0.00937407398223877, 0.009304154396057128, 0.009346875190734863, 0.010140633583068848, 0.009349754333496094, 0.009365754127502441, 0.009259353637695313, 0.009347833633422852, 0.009370074272155762, 0.009258554458618165, 0.009356313705444336, 0.009246394157409668, 0.009381435394287109, 0.00927695369720459, 0.00933967399597168, 0.009374873161315918, 0.009255353927612304 ] }, "throughput": { "unit": "tokens/s", "value": 105.82358927400024 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 53, "total": 0.9929819240570068, "mean": 0.0187355080010756, "stdev": 0.00019534394683177802, "p50": 0.01871358871459961, "p90": 0.01881390838623047, "p95": 0.01889909210205078, "p99": 0.019595571517944336, "values": [ 0.01982894706726074, 0.018695188522338868, 0.018834388732910157, 0.01880622863769531, 0.01876430892944336, 0.01881582832336426, 0.018654388427734377, 0.01880046844482422, 0.018766067504882813, 0.018735187530517578, 0.01865182876586914, 0.01879326820373535, 0.018996147155761717, 0.018660947799682616, 0.018646387100219725, 0.018732147216796877, 0.01871358871459961, 0.018733108520507812, 0.018592788696289064, 0.01873390769958496, 0.018714548110961914, 0.018708467483520508, 0.01865966796875, 0.018616947174072265, 0.01877278709411621, 0.018816627502441407, 0.0186663875579834, 0.018767988204956055, 0.01871822738647461, 0.018731508255004883, 0.018657747268676757, 0.018774707794189452, 0.01869934844970703, 0.018675188064575195, 0.018657108306884766, 0.01864670753479004, 0.018728948593139647, 0.018580308914184572, 0.018688468933105468, 0.019380147933959962, 0.018726547241210936, 0.018744787216186522, 0.01856926727294922, 0.018696308135986328, 0.018741268157958985, 0.01858494758605957, 0.01862270736694336, 0.01854766845703125, 0.018717748641967773, 0.01854638862609863, 0.018635988235473633, 0.018630708694458008, 0.01860062789916992 ] }, "throughput": { "unit": "tokens/s", "value": 53.37458690432041 }, "energy": null, "efficiency": null } } }