IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
62af906
verified
{ | |
"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.1", | |
"optimum_benchmark_commit": "c1d0b062e90b79e7705510c58cea731c0d90da8a", | |
"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": 1050.083328, | |
"max_global_vram": 2810.720256, | |
"max_process_vram": 307764.027392, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.832512 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.4998089108467103, | |
"mean": 0.00847133747197814, | |
"stdev": 0.0006574000241828071, | |
"p50": 0.008257292747497558, | |
"p90": 0.009270253944396973, | |
"p95": 0.009703934955596922, | |
"p99": 0.010595187377929688, | |
"values": [ | |
0.01121425724029541, | |
0.009659214973449707, | |
0.01014689540863037, | |
0.010106414794921874, | |
0.009101773262023926, | |
0.008626253128051757, | |
0.008464973449707031, | |
0.00962369441986084, | |
0.008921933174133301, | |
0.008912813186645508, | |
0.008891532897949219, | |
0.008843213081359864, | |
0.008257292747497558, | |
0.008761452674865724, | |
0.008072491645812988, | |
0.008330093383789063, | |
0.00795441198348999, | |
0.007900492191314697, | |
0.007932812213897704, | |
0.007907371997833252, | |
0.007924012184143066, | |
0.007904012203216553, | |
0.007912652015686035, | |
0.007908492088317872, | |
0.007928331851959229, | |
0.007935532093048096, | |
0.007937451839447022, | |
0.007943371772766113, | |
0.00818529224395752, | |
0.007956652164459229, | |
0.008297612190246582, | |
0.007980812072753906, | |
0.00831793212890625, | |
0.007993771076202392, | |
0.008484651565551758, | |
0.00855249309539795, | |
0.008413613319396973, | |
0.008303532600402832, | |
0.008204651832580566, | |
0.008174892425537109, | |
0.008147692680358887, | |
0.008212653160095215, | |
0.008848493576049804, | |
0.00926241397857666, | |
0.009301613807678223, | |
0.008843214035034179, | |
0.008726733207702637, | |
0.008887212753295898, | |
0.008465453147888184, | |
0.008405291557312011, | |
0.008533452987670899, | |
0.008250251770019531, | |
0.00807345199584961, | |
0.008164651870727539, | |
0.007921611785888672, | |
0.00793473196029663, | |
0.007914892196655273, | |
0.007932810783386231, | |
0.008093132972717285 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 236.09022856375248 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1050.083328, | |
"max_global_vram": 2098.839552, | |
"max_process_vram": 283260.522496, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.056256 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.5099842853546143, | |
"mean": 0.008643801446688377, | |
"stdev": 0.00088447817466458, | |
"p50": 0.008374892234802245, | |
"p90": 0.009379150390625, | |
"p95": 0.010265535259246825, | |
"p99": 0.012278124160766603, | |
"values": [ | |
0.009679054260253906, | |
0.010233135223388671, | |
0.010557135581970216, | |
0.009698735237121583, | |
0.009085774421691895, | |
0.008700013160705566, | |
0.012774418830871583, | |
0.009060173988342286, | |
0.009044814109802245, | |
0.009012173652648926, | |
0.009032334327697754, | |
0.008260171890258789, | |
0.008618733406066895, | |
0.008442413330078126, | |
0.008216651916503906, | |
0.008188812255859376, | |
0.008210572242736816, | |
0.00804177188873291, | |
0.008054411888122559, | |
0.008054732322692871, | |
0.008048011779785156, | |
0.008045771598815917, | |
0.008054411888122559, | |
0.008040811538696289, | |
0.008115852355957031, | |
0.008016652107238769, | |
0.008734092712402344, | |
0.008250732421875, | |
0.008078891754150391, | |
0.00823857307434082, | |
0.008041452407836915, | |
0.008412652969360352, | |
0.008095051765441895, | |
0.008146892547607422, | |
0.008534092903137207, | |
0.008533452987670899, | |
0.00839873218536377, | |
0.008290411949157715, | |
0.008208653450012208, | |
0.008214732170104981, | |
0.008436012268066406, | |
0.008467692375183106, | |
0.009255852699279785, | |
0.009304174423217773, | |
0.008775213241577148, | |
0.008837932586669922, | |
0.01191873836517334, | |
0.008651212692260742, | |
0.008409293174743652, | |
0.008652173042297363, | |
0.008610733032226562, | |
0.007996171951293944, | |
0.00818337345123291, | |
0.00800897216796875, | |
0.008179532051086427, | |
0.008194891929626465, | |
0.008232172012329102, | |
0.008029291152954102, | |
0.008374892234802245 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 115.68983926431132 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.9909701290130615, | |
"mean": 0.01708569187953554, | |
"stdev": 0.001273799513391891, | |
"p50": 0.0165813045501709, | |
"p90": 0.018693547821044924, | |
"p95": 0.02007831048965454, | |
"p99": 0.0208809934425354, | |
"values": [ | |
0.019804670333862306, | |
0.020708511352539063, | |
0.020001150131225585, | |
0.018242748260498046, | |
0.017408985137939453, | |
0.02110963249206543, | |
0.01894386863708496, | |
0.017997148513793946, | |
0.017959707260131835, | |
0.017956348419189454, | |
0.017134586334228517, | |
0.01695346450805664, | |
0.017195386886596678, | |
0.016353944778442382, | |
0.016558584213256837, | |
0.016195863723754884, | |
0.015972344398498536, | |
0.016019384384155275, | |
0.015992823600769042, | |
0.016005144119262696, | |
0.01597922420501709, | |
0.01599762439727783, | |
0.01598418426513672, | |
0.016066104888916015, | |
0.015984343528747558, | |
0.01669730567932129, | |
0.016216184616088865, | |
0.01630498504638672, | |
0.0162254638671875, | |
0.01637218475341797, | |
0.016366104125976562, | |
0.01650098419189453, | |
0.016148984909057616, | |
0.016997625350952148, | |
0.017123064041137694, | |
0.01688978385925293, | |
0.016645145416259766, | |
0.01646178436279297, | |
0.016426265716552733, | |
0.01660402488708496, | |
0.016723384857177736, | |
0.01810898780822754, | |
0.018586267471313478, | |
0.018170427322387696, | |
0.01768306541442871, | |
0.020515552520751955, | |
0.017821468353271485, | |
0.01686578369140625, | |
0.01708930587768555, | |
0.01721954345703125, | |
0.016280824661254883, | |
0.016278743743896484, | |
0.016209463119506835, | |
0.0161261043548584, | |
0.0161595458984375, | |
0.016175703048706056, | |
0.01598978328704834, | |
0.01646050453186035 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 58.528504847834355 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |