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
de5a816
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+cu124", | |
"_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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.225-213.878.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.5.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.13.0", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 843.956224, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.12071526336669922 | |
], | |
"count": 1, | |
"total": 0.12071526336669922, | |
"mean": 0.12071526336669922, | |
"p50": 0.12071526336669922, | |
"p90": 0.12071526336669922, | |
"p95": 0.12071526336669922, | |
"p99": 0.12071526336669922, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1053.954048, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.005387263774871826, | |
0.004998144149780274, | |
0.005567488193511963, | |
0.0050432000160217285, | |
0.005040128231048584, | |
0.005008384227752686, | |
0.004968448162078858, | |
0.005310463905334473, | |
0.005022719860076904, | |
0.0049725441932678225, | |
0.004975615978240967, | |
0.004984831809997559, | |
0.00499507188796997, | |
0.00496230411529541, | |
0.004959231853485108, | |
0.0049489917755126955, | |
0.004980735778808594, | |
0.004971519947052002, | |
0.00496127986907959, | |
0.004967423915863037, | |
0.004985856056213379, | |
0.004973567962646484, | |
0.004955135822296143, | |
0.0049725441932678225, | |
0.0050135040283203125, | |
0.0049909758567810054, | |
0.0049530878067016604, | |
0.004981760025024414, | |
0.004992000102996826, | |
0.0049909758567810054, | |
0.00496127986907959, | |
0.004957183837890625, | |
0.0049725441932678225, | |
0.0049797120094299315, | |
0.004965375900268554, | |
0.00495411205291748, | |
0.0049530878067016604, | |
0.004988927841186524, | |
0.004951039791107178, | |
0.004878335952758789, | |
0.0048189439773559575, | |
0.004824063777923584, | |
0.0048230400085449215, | |
0.004820991992950439, | |
0.0048230400085449215, | |
0.004827136039733886, | |
0.004825088024139404, | |
0.0048189439773559575, | |
0.004820991992950439, | |
0.004819968223571777, | |
0.004820991992950439, | |
0.004820991992950439, | |
0.0048220157623291016, | |
0.004820991992950439, | |
0.004820991992950439, | |
0.0048230400085449215, | |
0.0048220157623291016, | |
0.004818975925445557, | |
0.004817920207977295, | |
0.0048220157623291016, | |
0.004820991992950439, | |
0.0048261117935180665, | |
0.004824063777923584, | |
0.004820991992950439, | |
0.0048230400085449215, | |
0.004820991992950439, | |
0.0048230400085449215, | |
0.004824063777923584, | |
0.0048220157623291016, | |
0.004820991992950439, | |
0.004817920207977295, | |
0.0048230400085449215, | |
0.004824063777923584, | |
0.004820991992950439, | |
0.0048230400085449215, | |
0.0048230400085449215, | |
0.0048261117935180665, | |
0.004846591949462891, | |
0.0048496642112731934, | |
0.004832255840301514, | |
0.0048189439773559575, | |
0.0048148479461669925, | |
0.0048158721923828125, | |
0.004817920207977295, | |
0.0048148479461669925, | |
0.0048158721923828125, | |
0.0048189439773559575, | |
0.0048189439773559575, | |
0.0048148479461669925, | |
0.004816895961761475, | |
0.00481382417678833, | |
0.004820991992950439, | |
0.004819968223571777, | |
0.004816895961761475, | |
0.0048158721923828125, | |
0.0048158721923828125, | |
0.00481382417678833, | |
0.0048220157623291016, | |
0.004816895961761475, | |
0.00481382417678833, | |
0.0048189439773559575, | |
0.004817920207977295, | |
0.004816895961761475, | |
0.0048189439773559575, | |
0.0048189439773559575, | |
0.004816895961761475, | |
0.004821055889129638, | |
0.004819968223571777, | |
0.0048148479461669925, | |
0.004817920207977295, | |
0.0048189439773559575, | |
0.0048220157623291016, | |
0.004817920207977295, | |
0.0048148479461669925, | |
0.00481382417678833, | |
0.004819968223571777, | |
0.004817920207977295, | |
0.004816895961761475, | |
0.0048148479461669925, | |
0.0048148479461669925, | |
0.0048189439773559575, | |
0.00481382417678833, | |
0.004816895961761475, | |
0.0048148479461669925, | |
0.004816895961761475, | |
0.0048189439773559575, | |
0.004816895961761475, | |
0.004816895961761475, | |
0.0048189439773559575, | |
0.004816895961761475, | |
0.00481382417678833, | |
0.004817920207977295, | |
0.0048189439773559575, | |
0.00481279993057251, | |
0.0048189439773559575, | |
0.004819968223571777, | |
0.004817920207977295, | |
0.004817920207977295, | |
0.004981760025024414, | |
0.004983808040618896, | |
0.0048895998001098635, | |
0.004922368049621582, | |
0.004994048118591309, | |
0.004988927841186524, | |
0.004936704158782959, | |
0.00496230411529541, | |
0.004967423915863037, | |
0.004977663993835449, | |
0.004819968223571777, | |
0.0048158721923828125, | |
0.004819968223571777, | |
0.004817920207977295, | |
0.004816895961761475, | |
0.0048158721923828125, | |
0.00481382417678833, | |
0.004817920207977295, | |
0.004817920207977295, | |
0.00481279993057251, | |
0.0048158721923828125, | |
0.004820991992950439, | |
0.004817920207977295, | |
0.0048189439773559575, | |
0.004817920207977295, | |
0.0048158721923828125, | |
0.0048158721923828125, | |
0.0048158721923828125, | |
0.00481382417678833, | |
0.0048158721923828125, | |
0.0048189439773559575, | |
0.004816895961761475, | |
0.00481279993057251, | |
0.004817920207977295, | |
0.00481382417678833, | |
0.00481382417678833, | |
0.0048148479461669925, | |
0.004816895961761475, | |
0.004819968223571777, | |
0.004816895961761475, | |
0.0048189439773559575, | |
0.004816895961761475, | |
0.0048189439773559575, | |
0.0048158721923828125, | |
0.0048158721923828125, | |
0.004811776161193848, | |
0.004817920207977295, | |
0.0048148479461669925, | |
0.0048189439773559575, | |
0.00481279993057251, | |
0.004816895961761475, | |
0.004816895961761475, | |
0.004816895961761475, | |
0.0048158721923828125, | |
0.004817920207977295, | |
0.0048189439773559575, | |
0.004820991992950439, | |
0.0048189439773559575, | |
0.004816895961761475, | |
0.004817920207977295, | |
0.004817920207977295, | |
0.0048189439773559575, | |
0.004817920207977295, | |
0.0048189439773559575, | |
0.004819968223571777, | |
0.0048158721923828125, | |
0.004820991992950439, | |
0.004816895961761475 | |
], | |
"count": 206, | |
"total": 1.0017362928390507, | |
"mean": 0.004862797538053642, | |
"p50": 0.0048189439773559575, | |
"p90": 0.004981247901916504, | |
"p95": 0.004993536114692688, | |
"p99": 0.0052971007108688324, | |
"stdev": 9.581387691231228e-05, | |
"stdev_": 1.970344768880965 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 205.64294362957477 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.744646885632646e-08, | |
"ram": 3.130623214580146e-08, | |
"gpu": 3.2507867579904166e-07, | |
"total": 4.1383137680116956e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2416443.160327262 | |
} | |
} | |
} | |
} |