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
6c0fee1
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.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.43.1", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 757.891072, | |
"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.28622607421875, | |
"mean": 7.28622607421875, | |
"stdev": 0.0, | |
"p50": 7.28622607421875, | |
"p90": 7.28622607421875, | |
"p95": 7.28622607421875, | |
"p99": 7.28622607421875, | |
"values": [ | |
7.28622607421875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5718489885330202e-06, | |
"ram": 8.455038964794426e-07, | |
"gpu": 1.826668127999885e-06, | |
"total": 4.244021013012348e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 890.478592, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 203, | |
"total": 1.0089737954139708, | |
"mean": 0.004970314263123009, | |
"stdev": 0.0001697063805903819, | |
"p50": 0.004869120121002197, | |
"p90": 0.005192908763885498, | |
"p95": 0.005350195407867431, | |
"p99": 0.0055701090240478516, | |
"values": [ | |
0.005386240005493164, | |
0.005404672145843506, | |
0.00542310380935669, | |
0.005354496002197265, | |
0.005497824192047119, | |
0.005407743930816651, | |
0.00535859203338623, | |
0.005351424217224121, | |
0.005339136123657226, | |
0.005303296089172363, | |
0.005161983966827393, | |
0.005004288196563721, | |
0.0049459199905395506, | |
0.004876287937164306, | |
0.00486195182800293, | |
0.004867072105407715, | |
0.004956160068511963, | |
0.004860928058624267, | |
0.004865024089813232, | |
0.00486297607421875, | |
0.00486297607421875, | |
0.004859903812408447, | |
0.004860928058624267, | |
0.004857855796813965, | |
0.00487014389038086, | |
0.004858880043029785, | |
0.004866047859191895, | |
0.004858880043029785, | |
0.004858880043029785, | |
0.00486297607421875, | |
0.004857855796813965, | |
0.004858880043029785, | |
0.004858880043029785, | |
0.004860928058624267, | |
0.00486195182800293, | |
0.004860928058624267, | |
0.004860928058624267, | |
0.004857855796813965, | |
0.004934656143188477, | |
0.004898816108703613, | |
0.004865024089813232, | |
0.0048855037689208985, | |
0.00486297607421875, | |
0.00486297607421875, | |
0.004865024089813232, | |
0.004858880043029785, | |
0.004883456230163574, | |
0.00491315221786499, | |
0.004883456230163574, | |
0.004860928058624267, | |
0.004858880043029785, | |
0.004869120121002197, | |
0.004868095874786377, | |
0.004867072105407715, | |
0.004869120121002197, | |
0.004863999843597412, | |
0.004869120121002197, | |
0.00486195182800293, | |
0.004868095874786377, | |
0.00486297607421875, | |
0.004865024089813232, | |
0.004868095874786377, | |
0.004867072105407715, | |
0.004866047859191895, | |
0.004867072105407715, | |
0.00487116813659668, | |
0.004867072105407715, | |
0.00487116813659668, | |
0.004867072105407715, | |
0.004880383968353271, | |
0.004865024089813232, | |
0.004960256099700928, | |
0.005270592212677002, | |
0.005171199798583984, | |
0.0051701760292053225, | |
0.0051404800415039064, | |
0.005197760105133057, | |
0.005178368091583252, | |
0.005008384227752686, | |
0.00496127986907959, | |
0.005082111835479736, | |
0.005132287979125977, | |
0.005078015804290771, | |
0.0051968002319335935, | |
0.005145599842071533, | |
0.005031936168670655, | |
0.005129216194152832, | |
0.005115903854370117, | |
0.0050728960037231445, | |
0.005023744106292725, | |
0.005085184097290039, | |
0.005130239963531494, | |
0.005135359764099121, | |
0.005085184097290039, | |
0.005193727970123291, | |
0.005202943801879883, | |
0.005178368091583252, | |
0.005189631938934326, | |
0.005197824001312256, | |
0.005180416107177735, | |
0.005163008213043213, | |
0.005116928100585938, | |
0.005021696090698242, | |
0.005167103767395019, | |
0.005100543975830078, | |
0.005078015804290771, | |
0.005235712051391602, | |
0.004892672061920166, | |
0.004868095874786377, | |
0.0049387521743774416, | |
0.005124095916748047, | |
0.00487014389038086, | |
0.004899839878082276, | |
0.005134335994720459, | |
0.0051036162376403805, | |
0.005087232112884522, | |
0.005051392078399658, | |
0.00486297607421875, | |
0.005085184097290039, | |
0.005600255966186523, | |
0.0050954241752624516, | |
0.005061632156372071, | |
0.005571584224700928, | |
0.005683199882507324, | |
0.005152768135070801, | |
0.005067776203155518, | |
0.005051392078399658, | |
0.005102591991424561, | |
0.0051138558387756345, | |
0.005235712051391602, | |
0.005086207866668701, | |
0.004976640224456787, | |
0.004911104202270508, | |
0.004863999843597412, | |
0.004865024089813232, | |
0.004867072105407715, | |
0.004863999843597412, | |
0.004866047859191895, | |
0.004866047859191895, | |
0.004869120121002197, | |
0.00487014389038086, | |
0.004867072105407715, | |
0.00487116813659668, | |
0.004869120121002197, | |
0.004868095874786377, | |
0.00486297607421875, | |
0.004867072105407715, | |
0.00486195182800293, | |
0.004863999843597412, | |
0.00486297607421875, | |
0.004865024089813232, | |
0.004860928058624267, | |
0.004859903812408447, | |
0.004866047859191895, | |
0.004863999843597412, | |
0.00487116813659668, | |
0.004869120121002197, | |
0.00486297607421875, | |
0.004869120121002197, | |
0.00487014389038086, | |
0.004869120121002197, | |
0.004865024089813232, | |
0.00487014389038086, | |
0.004869120121002197, | |
0.004865024089813232, | |
0.004868095874786377, | |
0.004867072105407715, | |
0.004872191905975342, | |
0.004865024089813232, | |
0.004866047859191895, | |
0.004869120121002197, | |
0.004867072105407715, | |
0.004869120121002197, | |
0.004869120121002197, | |
0.004869120121002197, | |
0.004868095874786377, | |
0.004873216152191162, | |
0.004867072105407715, | |
0.00487014389038086, | |
0.004866047859191895, | |
0.004867072105407715, | |
0.004869120121002197, | |
0.004865024089813232, | |
0.004869120121002197, | |
0.0048558077812194825, | |
0.0048527359962463375, | |
0.0048568320274353025, | |
0.0048527359962463375, | |
0.0048558077812194825, | |
0.0048527359962463375, | |
0.0048527359962463375, | |
0.004850687980651855, | |
0.0048568320274353025, | |
0.0048527359962463375, | |
0.004851712226867676, | |
0.004853759765625, | |
0.0048527359962463375, | |
0.004848639965057373, | |
0.0048558077812194825, | |
0.0048568320274353025, | |
0.0048558077812194825, | |
0.004853759765625, | |
0.00485478401184082 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 201.19452152541916 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.771183948757902e-08, | |
"ram": 3.155534013104656e-08, | |
"gpu": 3.6809666098578126e-07, | |
"total": 4.573638406044069e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2186443.070528922 | |
} | |
} | |
} | |
} |