cuda
/
cuda_inference_transformers_image-classification_google
/vit-base-patch16-224
/benchmark.json

IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
3cb23df
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "image-classification", | |
"library": "transformers", | |
"model_type": "vit", | |
"model": "google/vit-base-patch16-224", | |
"processor": "google/vit-base-patch16-224", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"model_kwargs": {}, | |
"processor_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, | |
"memory": true, | |
"latency": true, | |
"energy": true, | |
"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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 760.569856, | |
"max_global_vram": 1030.22592, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.26475146484375, | |
"mean": 7.26475146484375, | |
"stdev": 0.0, | |
"p50": 7.26475146484375, | |
"p90": 7.26475146484375, | |
"p95": 7.26475146484375, | |
"p99": 7.26475146484375, | |
"values": [ | |
7.26475146484375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5578855013892224e-06, | |
"ram": 8.378318280296324e-07, | |
"gpu": 1.8069458900000362e-06, | |
"total": 4.202663219418891e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 892.14976, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 199, | |
"total": 1.004580958366393, | |
"mean": 0.005048145519429116, | |
"stdev": 0.00021159772600437397, | |
"p50": 0.005049344062805176, | |
"p90": 0.005221990489959717, | |
"p95": 0.005298790454864502, | |
"p99": 0.005856707210540772, | |
"values": [ | |
0.005369855880737305, | |
0.005248000144958496, | |
0.005258240222930908, | |
0.005297120094299316, | |
0.005244927883148193, | |
0.005241856098175048, | |
0.0052674560546875, | |
0.0052111358642578124, | |
0.005204991817474365, | |
0.005313536167144775, | |
0.005241856098175048, | |
0.005190656185150146, | |
0.0052715520858764645, | |
0.0051588802337646485, | |
0.005163008213043213, | |
0.00517632007598877, | |
0.005189631938934326, | |
0.0050462718009948735, | |
0.005007359981536865, | |
0.004980735778808594, | |
0.005146624088287354, | |
0.0051138558387756345, | |
0.005121024131774903, | |
0.005210112094879151, | |
0.00516096019744873, | |
0.005180416107177735, | |
0.005187583923339844, | |
0.005161983966827393, | |
0.005094399929046631, | |
0.00501964807510376, | |
0.005204991817474365, | |
0.005653503894805908, | |
0.00521830415725708, | |
0.005204991817474365, | |
0.00515993595123291, | |
0.005188608169555664, | |
0.0057077760696411135, | |
0.0051404800415039064, | |
0.005149695873260498, | |
0.0052367358207702636, | |
0.005163008213043213, | |
0.005149695873260498, | |
0.005212160110473632, | |
0.0051435518264770505, | |
0.005107711791992187, | |
0.004974592208862305, | |
0.0050165758132934574, | |
0.005017600059509277, | |
0.005049344062805176, | |
0.0050769920349121095, | |
0.004983808040618896, | |
0.005066815853118896, | |
0.005153791904449463, | |
0.00511897611618042, | |
0.005187583923339844, | |
0.00517632007598877, | |
0.005214208126068115, | |
0.005204991817474365, | |
0.005164031982421875, | |
0.005152768135070801, | |
0.005212160110473632, | |
0.005153791904449463, | |
0.005073919773101807, | |
0.005104640007019043, | |
0.005194752216339111, | |
0.0051476478576660155, | |
0.0051476478576660155, | |
0.005173247814178467, | |
0.005157887935638428, | |
0.0051435518264770505, | |
0.005445631980895996, | |
0.005128191947937012, | |
0.005071872234344482, | |
0.005115903854370117, | |
0.00515993595123291, | |
0.00515993595123291, | |
0.005171199798583984, | |
0.00517632007598877, | |
0.005074944019317627, | |
0.0051138558387756345, | |
0.005132287979125977, | |
0.005123072147369385, | |
0.00506982421875, | |
0.005101568222045898, | |
0.005144576072692871, | |
0.0051333122253417966, | |
0.005157887935638428, | |
0.005178368091583252, | |
0.005214208126068115, | |
0.005150720119476319, | |
0.0052971520423889164, | |
0.005201920032501221, | |
0.005165056228637695, | |
0.005141503810882568, | |
0.005163008213043213, | |
0.0051968002319335935, | |
0.005146624088287354, | |
0.0050360321998596195, | |
0.005028863906860351, | |
0.005141503810882568, | |
0.005049344062805176, | |
0.0049797120094299315, | |
0.004997119903564453, | |
0.0048568320274353025, | |
0.0048527359962463375, | |
0.0049428482055664065, | |
0.005096447944641113, | |
0.00501043176651001, | |
0.004853759765625, | |
0.004850687980651855, | |
0.004859903812408447, | |
0.004851712226867676, | |
0.005086207866668701, | |
0.004957183837890625, | |
0.005923840045928955, | |
0.0058788161277771, | |
0.005816319942474365, | |
0.005856256008148194, | |
0.005781504154205322, | |
0.005216256141662597, | |
0.00506879997253418, | |
0.004973567962646484, | |
0.004997119903564453, | |
0.004971519947052002, | |
0.0048558077812194825, | |
0.004859903812408447, | |
0.004910111904144287, | |
0.004869120121002197, | |
0.004904960155487061, | |
0.0048527359962463375, | |
0.0048496642112731934, | |
0.0048558077812194825, | |
0.004848639965057373, | |
0.0048527359962463375, | |
0.0048527359962463375, | |
0.0048527359962463375, | |
0.004851712226867676, | |
0.004853759765625, | |
0.004851712226867676, | |
0.0048558077812194825, | |
0.0048527359962463375, | |
0.004850719928741455, | |
0.0048558077812194825, | |
0.004851712226867676, | |
0.004851712226867676, | |
0.004853759765625, | |
0.004859903812408447, | |
0.004853759765625, | |
0.0048527359962463375, | |
0.004853759765625, | |
0.004850687980651855, | |
0.0048558077812194825, | |
0.004853759765625, | |
0.0048527359962463375, | |
0.004857855796813965, | |
0.004851712226867676, | |
0.004853759765625, | |
0.004853759765625, | |
0.004853759765625, | |
0.004851712226867676, | |
0.004850687980651855, | |
0.004851712226867676, | |
0.004851712226867676, | |
0.004851712226867676, | |
0.004851712226867676, | |
0.004850687980651855, | |
0.004857855796813965, | |
0.004851712226867676, | |
0.0048527359962463375, | |
0.00485478401184082, | |
0.00485478401184082, | |
0.004853759765625, | |
0.004853759765625, | |
0.004853759765625, | |
0.004851712226867676, | |
0.00485478401184082, | |
0.004853759765625, | |
0.004853759765625, | |
0.0048527359962463375, | |
0.0048527359962463375, | |
0.004853759765625, | |
0.0048558077812194825, | |
0.0048496642112731934, | |
0.0048568320274353025, | |
0.004853759765625, | |
0.004850687980651855, | |
0.004851712226867676, | |
0.0048496642112731934, | |
0.004848639965057373, | |
0.004850687980651855, | |
0.004851712226867676, | |
0.0048527359962463375, | |
0.004853759765625, | |
0.0048568320274353025, | |
0.0048527359962463375, | |
0.0048558077812194825, | |
0.0048558077812194825, | |
0.00485478401184082, | |
0.00485478401184082 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 198.09254629273997 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.7559126460952425e-08, | |
"ram": 3.1471901629368995e-08, | |
"gpu": 3.393831331415081e-07, | |
"total": 4.2841416123182955e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2334189.8809429547 | |
} | |
} | |
} | |
} |