{ "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": "b0a0b933f18d5fa56eadb290a26cc2099f2dd4d8", "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": 1050.632192, "max_global_vram": 1118.429184, "max_process_vram": 277378.523136, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 59, "total": 0.4979772119522094, "mean": 0.00844029172800355, "stdev": 0.0005582954940078566, "p50": 0.008359942436218262, "p90": 0.008964706420898437, "p95": 0.009081554126739501, "p99": 0.01036572677612305, "values": [ 0.011277201652526856, 0.008841218948364258, 0.008750338554382325, 0.008464422225952149, 0.008398661613464356, 0.008242822647094727, 0.008196743965148925, 0.00814506435394287, 0.00832234287261963, 0.008203944206237794, 0.008142824172973634, 0.008105863571166992, 0.008387142181396485, 0.008492100715637206, 0.008341222763061524, 0.008374982833862305, 0.009705693244934081, 0.008447141647338867, 0.008916579246520995, 0.008687780380249024, 0.008830179214477539, 0.008555460929870605, 0.008635300636291504, 0.009063298225402833, 0.00893129825592041, 0.009245857238769532, 0.008935458183288574, 0.008934019088745117, 0.008971778869628907, 0.008963138580322265, 0.008535621643066406, 0.008117863655090332, 0.007932745933532714, 0.008091304779052734, 0.007879786014556885, 0.008063624382019043, 0.007925865173339843, 0.007945226192474366, 0.007918344974517823, 0.007945545196533203, 0.007867146015167236, 0.007942665100097656, 0.007896424770355225, 0.007943466186523437, 0.007895785808563233, 0.008082023620605469, 0.00789882516860962, 0.008960417747497559, 0.008628100395202636, 0.008970977783203125, 0.0084551420211792, 0.008395622253417969, 0.00845018196105957, 0.00833834171295166, 0.008359942436218262, 0.00808186435699463, 0.008074983596801758, 0.00793242597579956, 0.007937066078186035 ] }, "throughput": { "unit": "tokens/s", "value": 236.95863418610483 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1050.632192, "max_global_vram": 1118.564352, "max_process_vram": 288160.043008, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 59, "total": 0.5019373459815979, "mean": 0.008507412643755896, "stdev": 0.0006516536055506899, "p50": 0.008353222846984863, "p90": 0.009074850082397461, "p95": 0.009129041004180908, "p99": 0.010591207084655767, "values": [ 0.009121376991271973, 0.009232096672058106, 0.008735939979553223, 0.008492260932922364, 0.008330022811889649, 0.008293863296508788, 0.008212423324584961, 0.00820858383178711, 0.008239144325256348, 0.008212102890014648, 0.00813050365447998, 0.00830970287322998, 0.008622020721435546, 0.008454022407531738, 0.00831578254699707, 0.00826170253753662, 0.008424741744995117, 0.008891939163208008, 0.009052417755126952, 0.008671139717102051, 0.008606821060180665, 0.008745220184326172, 0.008575620651245118, 0.009071778297424317, 0.012468073844909668, 0.00908713722229004, 0.009198017120361328, 0.009056417465209961, 0.009039457321166993, 0.009012898445129395, 0.008211302757263183, 0.008003305435180665, 0.007991465091705322, 0.007974345207214356, 0.008001225471496582, 0.00800202465057373, 0.00799274492263794, 0.008003785133361816, 0.008012584686279297, 0.007998344898223876, 0.00861642074584961, 0.008012744903564453, 0.008002985000610351, 0.008022664070129394, 0.008012584686279297, 0.008040584564208985, 0.0083773832321167, 0.009027297973632813, 0.00909241771697998, 0.00884665870666504, 0.008591140747070312, 0.0084137020111084, 0.008440261840820312, 0.008514822006225586, 0.008353222846984863, 0.008166983604431152, 0.008127143859863281, 0.008002985000610351, 0.008010984420776367 ] }, "throughput": { "unit": "tokens/s", "value": 117.54455107264138 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 58, "total": 0.9815089216232301, "mean": 0.016922567614193616, "stdev": 0.000958246887814815, "p50": 0.016721645355224607, "p90": 0.018027828216552733, "p95": 0.01816857967376709, "p99": 0.019716186084747313, "values": [ 0.01798243522644043, 0.01761203956604004, 0.017029163360595703, 0.016807403564453125, 0.01658836555480957, 0.016477806091308594, 0.016398126602172852, 0.016574445724487304, 0.016474126815795898, 0.016305488586425783, 0.016403406143188477, 0.017042123794555664, 0.016984043121337892, 0.01672868537902832, 0.016681005477905273, 0.018195236206054687, 0.017365959167480467, 0.018000356674194334, 0.017420839309692383, 0.017463239669799804, 0.01730739974975586, 0.017282440185546876, 0.018131235122680663, 0.021258731842041016, 0.01855251121520996, 0.018163875579833986, 0.018019876480102538, 0.01804339599609375, 0.018007396697998047, 0.016823883056640624, 0.01613412857055664, 0.015965649604797363, 0.01609173011779785, 0.015909170150756834, 0.016092050552368165, 0.01594661045074463, 0.015971409797668458, 0.015960691452026367, 0.0159678897857666, 0.016513965606689454, 0.015983409881591797, 0.015925650596618653, 0.01599460983276367, 0.015937809944152833, 0.01615412902832031, 0.016256208419799804, 0.018021156311035156, 0.017754758834838867, 0.01786067581176758, 0.017067243576049804, 0.01688452339172363, 0.016919403076171874, 0.01687412452697754, 0.016714605331420898, 0.01631092643737793, 0.016229169845581055, 0.015963890075683593, 0.015978288650512696 ] }, "throughput": { "unit": "tokens/s", "value": 59.09268751635899 }, "energy": null, "efficiency": null } } }