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
88f061b
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": {}, | |
"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": 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.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"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": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 882.778112, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.85792 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 202, | |
"total": 1.0040791330337528, | |
"mean": 0.0049706887773948135, | |
"stdev": 0.00017663755321172987, | |
"p50": 0.004869119882583619, | |
"p90": 0.005185433530807495, | |
"p95": 0.005257984209060668, | |
"p99": 0.005620439162254334, | |
"values": [ | |
0.005591040134429932, | |
0.005222400188446045, | |
0.005260287761688232, | |
0.005272575855255127, | |
0.005258240222930908, | |
0.005253119945526123, | |
0.005273600101470947, | |
0.005182464122772217, | |
0.005025792121887207, | |
0.0049827837944030765, | |
0.005023744106292725, | |
0.005934080123901367, | |
0.00491315221786499, | |
0.004898816108703613, | |
0.004900864124298096, | |
0.004926464080810547, | |
0.004926464080810547, | |
0.004939775943756103, | |
0.00505241584777832, | |
0.005049344062805176, | |
0.00530841588973999, | |
0.005185535907745361, | |
0.005184512138366699, | |
0.005122047901153564, | |
0.005184512138366699, | |
0.00521830415725708, | |
0.005620736122131348, | |
0.00522547197341919, | |
0.0051998720169067385, | |
0.00515174388885498, | |
0.005104640007019043, | |
0.005157887935638428, | |
0.005158912181854248, | |
0.004973567962646484, | |
0.0049192957878112795, | |
0.004963327884674072, | |
0.004933631896972656, | |
0.0049090561866760255, | |
0.004930560111999512, | |
0.004952064037322998, | |
0.0051333122253417966, | |
0.004878335952758789, | |
0.004908031940460205, | |
0.00496127986907959, | |
0.004980735778808594, | |
0.0049530878067016604, | |
0.0049192957878112795, | |
0.004863999843597412, | |
0.004866047859191895, | |
0.004863999843597412, | |
0.004859903812408447, | |
0.00486297607421875, | |
0.004863999843597412, | |
0.004859903812408447, | |
0.005059584140777588, | |
0.004858880043029785, | |
0.004859903812408447, | |
0.004974592208862305, | |
0.004978687763214112, | |
0.004986879825592041, | |
0.005134335994720459, | |
0.00522649621963501, | |
0.0051773438453674315, | |
0.00518342399597168, | |
0.005153791904449463, | |
0.005085184097290039, | |
0.005902368068695069, | |
0.005183487892150879, | |
0.005173247814178467, | |
0.005172224044799805, | |
0.005241856098175048, | |
0.004965375900268554, | |
0.004932608127593994, | |
0.004874239921569825, | |
0.004874239921569825, | |
0.0048752641677856446, | |
0.004873216152191162, | |
0.004876287937164306, | |
0.0048793601989746095, | |
0.0048752641677856446, | |
0.0048752641677856446, | |
0.005302271842956543, | |
0.005178368091583252, | |
0.005174272060394287, | |
0.0051036162376403805, | |
0.005105663776397705, | |
0.005092351913452148, | |
0.005086207866668701, | |
0.004878335952758789, | |
0.00487116813659668, | |
0.004878335952758789, | |
0.004952064037322998, | |
0.005062655925750732, | |
0.005164031982421875, | |
0.0052070398330688475, | |
0.005470208168029785, | |
0.005146624088287354, | |
0.0051968002319335935, | |
0.005139455795288086, | |
0.0049090561866760255, | |
0.004891647815704346, | |
0.004866047859191895, | |
0.004865024089813232, | |
0.004865024089813232, | |
0.00486297607421875, | |
0.004863999843597412, | |
0.004866047859191895, | |
0.00486297607421875, | |
0.004867072105407715, | |
0.00486195182800293, | |
0.004867072105407715, | |
0.004868095874786377, | |
0.004866047859191895, | |
0.004866047859191895, | |
0.004865024089813232, | |
0.004863999843597412, | |
0.00487014389038086, | |
0.004866047859191895, | |
0.00486297607421875, | |
0.004866047859191895, | |
0.004865024089813232, | |
0.004863999843597412, | |
0.004863999843597412, | |
0.004877312183380127, | |
0.0050124797821044925, | |
0.004898816108703613, | |
0.004874239921569825, | |
0.004858880043029785, | |
0.004860928058624267, | |
0.00486195182800293, | |
0.004860928058624267, | |
0.00486195182800293, | |
0.004860928058624267, | |
0.00486195182800293, | |
0.004865024089813232, | |
0.00487116813659668, | |
0.0050360321998596195, | |
0.004863999843597412, | |
0.004866047859191895, | |
0.004860928058624267, | |
0.004866047859191895, | |
0.005045248031616211, | |
0.0050503678321838375, | |
0.00486297607421875, | |
0.004866047859191895, | |
0.00486195182800293, | |
0.004860928058624267, | |
0.00486195182800293, | |
0.004863999843597412, | |
0.004867072105407715, | |
0.00486297607421875, | |
0.004863999843597412, | |
0.00486195182800293, | |
0.004863999843597412, | |
0.00486195182800293, | |
0.004860928058624267, | |
0.004867072105407715, | |
0.00486195182800293, | |
0.00486297607421875, | |
0.004865024089813232, | |
0.004865024089813232, | |
0.004860928058624267, | |
0.00486195182800293, | |
0.004859903812408447, | |
0.004863999843597412, | |
0.004860928058624267, | |
0.004860928058624267, | |
0.00486297607421875, | |
0.004860928058624267, | |
0.004860960006713867, | |
0.004860928058624267, | |
0.00486195182800293, | |
0.00486297607421875, | |
0.00486195182800293, | |
0.004860928058624267, | |
0.004860928058624267, | |
0.004865024089813232, | |
0.004859903812408447, | |
0.004866047859191895, | |
0.004860928058624267, | |
0.004865024089813232, | |
0.004860928058624267, | |
0.00486300802230835, | |
0.00486297607421875, | |
0.004863999843597412, | |
0.00486297607421875, | |
0.00486297607421875, | |
0.00486195182800293, | |
0.004858880043029785, | |
0.004867072105407715, | |
0.004859903812408447, | |
0.004858880043029785, | |
0.00486297607421875, | |
0.004863999843597412, | |
0.004863999843597412, | |
0.00486297607421875, | |
0.004865024089813232, | |
0.00486297607421875, | |
0.00486195182800293, | |
0.004863999843597412, | |
0.00486297607421875, | |
0.004860928058624267 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 201.17936261624286 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.76955117697211e-08, | |
"ram": 3.154810925291668e-08, | |
"gpu": 3.6106927253080606e-07, | |
"total": 4.5031289355344384e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2220678.1424998627 | |
} | |
} | |
} | |
} |