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
904ee6c
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "image-classification", | |
"library": "transformers", | |
"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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.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.2.1", | |
"optimum_benchmark_commit": null, | |
"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": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 910.057472, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 176, | |
"total": 1.0005740160942074, | |
"mean": 0.005685079636898908, | |
"stdev": 0.00020121649574724042, | |
"p50": 0.005600256204605103, | |
"p90": 0.005815808057785034, | |
"p95": 0.0062369278669357296, | |
"p99": 0.006512384176254273, | |
"values": [ | |
0.006533120155334473, | |
0.0062341117858886715, | |
0.006288383960723877, | |
0.006245376110076905, | |
0.006333439826965332, | |
0.006302720069885254, | |
0.006266880035400391, | |
0.006209536075592041, | |
0.006294528007507324, | |
0.006568960189819336, | |
0.00601804780960083, | |
0.005635072231292724, | |
0.005743616104125977, | |
0.005567488193511963, | |
0.005608448028564453, | |
0.005570559978485107, | |
0.005647359848022461, | |
0.0055920639038085935, | |
0.0055797758102417, | |
0.005596159934997558, | |
0.005601280212402344, | |
0.005608448028564453, | |
0.005577727794647217, | |
0.0055848960876464845, | |
0.005623807907104492, | |
0.005583871841430664, | |
0.005605375766754151, | |
0.005595136165618897, | |
0.005611519813537597, | |
0.005578752040863037, | |
0.0055808000564575196, | |
0.005610496044158936, | |
0.005577727794647217, | |
0.005606400012969971, | |
0.005607423782348633, | |
0.005500927925109863, | |
0.005552127838134766, | |
0.00552345609664917, | |
0.0055214080810546875, | |
0.005557248115539551, | |
0.00552243185043335, | |
0.005553152084350586, | |
0.005573631763458252, | |
0.005567455768585205, | |
0.005601280212402344, | |
0.005606400012969971, | |
0.005606400012969971, | |
0.005623807907104492, | |
0.005568511962890625, | |
0.005593088150024414, | |
0.005594111919403076, | |
0.005609471797943116, | |
0.0056442880630493165, | |
0.005598144054412842, | |
0.005585919857025146, | |
0.005589056015014649, | |
0.005601280212402344, | |
0.00556441593170166, | |
0.005599232196807862, | |
0.005567488193511963, | |
0.005581823825836182, | |
0.005577727794647217, | |
0.005571584224700928, | |
0.005598207950592041, | |
0.005590015888214111, | |
0.005568511962890625, | |
0.005594111919403076, | |
0.005569536209106446, | |
0.005589983940124512, | |
0.00556441593170166, | |
0.005599232196807862, | |
0.005597184181213379, | |
0.005586944103240967, | |
0.0055920639038085935, | |
0.005550079822540284, | |
0.005566463947296142, | |
0.005602303981781006, | |
0.005565440177917481, | |
0.0055808000564575196, | |
0.005582848072052002, | |
0.005545983791351319, | |
0.005585919857025146, | |
0.00557260799407959, | |
0.0055797758102417, | |
0.005559296131134033, | |
0.005534719944000244, | |
0.005602303981781006, | |
0.005549056053161621, | |
0.005626912117004394, | |
0.005547008037567139, | |
0.005591040134429932, | |
0.005576704025268555, | |
0.005501952171325684, | |
0.005527552127838135, | |
0.005513216018676758, | |
0.005502975940704345, | |
0.0055316481590271, | |
0.0054906878471374515, | |
0.005501952171325684, | |
0.005628928184509278, | |
0.0055511040687561035, | |
0.005552127838134766, | |
0.0055582718849182125, | |
0.005548031806945801, | |
0.005585919857025146, | |
0.005537792205810547, | |
0.005623807907104492, | |
0.0055848960876464845, | |
0.00555622386932373, | |
0.005575679779052735, | |
0.00553984022140503, | |
0.0055848960876464845, | |
0.005554175853729248, | |
0.005554175853729248, | |
0.005577727794647217, | |
0.005547008037567139, | |
0.005590015888214111, | |
0.005544960021972656, | |
0.005573631763458252, | |
0.0059064640998840335, | |
0.005805056095123291, | |
0.005832704067230224, | |
0.0057794561386108395, | |
0.005866496086120605, | |
0.005769184112548828, | |
0.005760000228881836, | |
0.005758975982666016, | |
0.005759039878845215, | |
0.005740543842315674, | |
0.005736447811126709, | |
0.0057487359046936035, | |
0.005715968132019043, | |
0.005733376026153565, | |
0.005700607776641845, | |
0.005720064163208007, | |
0.005692416191101074, | |
0.005603328227996827, | |
0.005530623912811279, | |
0.005495808124542236, | |
0.00551423978805542, | |
0.005502975940704345, | |
0.005819392204284668, | |
0.005768191814422607, | |
0.0058122239112854005, | |
0.005810175895690918, | |
0.00577023983001709, | |
0.005783552169799804, | |
0.005752831935882568, | |
0.005777408123016357, | |
0.005776383876800537, | |
0.0057415680885314945, | |
0.005795839786529541, | |
0.005745664119720459, | |
0.005807104110717773, | |
0.00577023983001709, | |
0.006505472183227539, | |
0.005781504154205322, | |
0.005948383808135987, | |
0.005841951847076416, | |
0.005791744232177734, | |
0.005772287845611572, | |
0.005799967765808106, | |
0.005783552169799804, | |
0.005787648200988769, | |
0.0057794561386108395, | |
0.005745664119720459, | |
0.005775360107421875, | |
0.005766143798828125, | |
0.0058091521263122555, | |
0.005769216060638428, | |
0.005796864032745362, | |
0.005753856182098388, | |
0.005791744232177734, | |
0.005753856182098388, | |
0.0057825279235839844, | |
0.005780479907989502 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 175.8990311251786 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.843175582045341e-08, | |
"ram": 3.729053333104118e-08, | |
"gpu": 3.5492046273562883e-07, | |
"total": 4.606427518871234e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2170879.702119011 | |
} | |
} | |
} | |
} |