rocm
/
cuda_inference_transformers_image-classification_google
/vit-base-patch16-224
/benchmark.json
![IlyasMoutawwakil's picture](https://cdn-avatars.huggingface.co/v1/production/uploads/1642598610696-noauth.jpeg)
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
2e5228d
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "image-classification", | |
"model": "google/vit-base-patch16-224", | |
"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": "d7339efdbbcababd22ca2f563771622060764f8f", | |
"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": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1063.026688, | |
"max_global_vram": 778.477568, | |
"max_process_vram": 179249.401856, | |
"max_reserved": 406.847488, | |
"max_allocated": 355.912704 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 154, | |
"total": 0.9948758077621458, | |
"mean": 0.006460232517936013, | |
"stdev": 0.00033137255439931115, | |
"p50": 0.006441017150878907, | |
"p90": 0.006690087938308715, | |
"p95": 0.0067214398384094235, | |
"p99": 0.006876780371665954, | |
"values": [ | |
0.006649577140808106, | |
0.006395017147064209, | |
0.006350377082824707, | |
0.006475656986236572, | |
0.00698269510269165, | |
0.006711336135864257, | |
0.006695015907287598, | |
0.006722375869750976, | |
0.006655496120452881, | |
0.0065977368354797365, | |
0.00656717586517334, | |
0.006572617053985596, | |
0.006782855987548828, | |
0.006501896858215332, | |
0.006460617065429688, | |
0.006460136890411377, | |
0.006468616962432862, | |
0.006478696823120117, | |
0.0064930968284606936, | |
0.006458217144012451, | |
0.0064295768737792965, | |
0.006442377090454102, | |
0.006447816848754883, | |
0.006470857143402099, | |
0.006509736061096192, | |
0.006520456790924072, | |
0.00646813678741455, | |
0.006436936855316162, | |
0.006463335990905762, | |
0.006426056861877441, | |
0.0064081368446350095, | |
0.006465577125549317, | |
0.0064241371154785155, | |
0.006439657211303711, | |
0.006494216918945313, | |
0.006548136234283447, | |
0.006685895919799805, | |
0.0066217360496521, | |
0.006551177024841309, | |
0.006686056137084961, | |
0.006570696830749512, | |
0.006657736778259277, | |
0.0066358170509338375, | |
0.006763495922088623, | |
0.006602537155151367, | |
0.006546376228332519, | |
0.006535656929016113, | |
0.006512775897979737, | |
0.010032283782958984, | |
0.0064607768058776854, | |
0.006468616962432862, | |
0.006531336784362793, | |
0.006463656902313233, | |
0.006478217124938965, | |
0.006299817085266114, | |
0.006463976860046386, | |
0.0067135758399963375, | |
0.006290058135986328, | |
0.006720935821533203, | |
0.00635933780670166, | |
0.006375176906585693, | |
0.006543496131896973, | |
0.006524937152862549, | |
0.006514377117156982, | |
0.006397257804870606, | |
0.006252458095550537, | |
0.006391336917877197, | |
0.006457417011260986, | |
0.006449256896972656, | |
0.006416936874389648, | |
0.006279016971588135, | |
0.00653805685043335, | |
0.006585896015167236, | |
0.006345417022705078, | |
0.006536777019500732, | |
0.0066017360687255855, | |
0.006479657173156738, | |
0.006437897205352783, | |
0.006351016998291016, | |
0.006551657199859619, | |
0.0067393360137939454, | |
0.006312138080596924, | |
0.006579175949096679, | |
0.006321577072143555, | |
0.006273898124694824, | |
0.0062937369346618656, | |
0.006327497959136963, | |
0.00626781702041626, | |
0.006286538124084472, | |
0.006251338005065918, | |
0.006299017906188965, | |
0.006288777828216552, | |
0.006293416976928711, | |
0.0062874979972839355, | |
0.006282856941223144, | |
0.006276937961578369, | |
0.006281897068023682, | |
0.006279977798461914, | |
0.006328297138214111, | |
0.006260777950286865, | |
0.006304778099060058, | |
0.006300296783447266, | |
0.0062612581253051755, | |
0.006274537086486816, | |
0.006219657897949218, | |
0.006285898208618164, | |
0.006271976947784424, | |
0.006316937923431396, | |
0.00623757791519165, | |
0.0062471780776977535, | |
0.006240777015686035, | |
0.0062857379913330074, | |
0.006276297092437744, | |
0.006270698070526123, | |
0.006288297176361084, | |
0.0062599778175354, | |
0.006250697135925293, | |
0.006266858100891113, | |
0.006250216960906983, | |
0.006274057865142822, | |
0.006271017074584961, | |
0.006236777782440185, | |
0.006267656803131103, | |
0.006296457767486573, | |
0.0063012571334838865, | |
0.006249417781829834, | |
0.006738535881042481, | |
0.00675437593460083, | |
0.0066561360359191895, | |
0.006638536930084229, | |
0.006496296882629394, | |
0.006698535919189453, | |
0.006628456115722656, | |
0.006521256923675537, | |
0.006691815853118896, | |
0.0066322960853576664, | |
0.00659309720993042, | |
0.00671949577331543, | |
0.006699495792388916, | |
0.0065286169052124025, | |
0.006468616962432862, | |
0.006246696949005127, | |
0.006235817909240723, | |
0.006260137081146241, | |
0.006254218101501465, | |
0.00626157808303833, | |
0.006277738094329834, | |
0.006248457908630371, | |
0.006262537956237793, | |
0.006228937149047852, | |
0.006248776912689209, | |
0.006274218082427978, | |
0.006259817123413086, | |
0.006255817890167236 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 154.79319006299343 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |