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
ab2b6f2
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.0", | |
"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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 911.835136, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 165, | |
"total": 0.9947032976150514, | |
"mean": 0.006028504834030614, | |
"stdev": 0.0002600844592717947, | |
"p50": 0.006110208034515381, | |
"p90": 0.006268928050994873, | |
"p95": 0.006333235263824463, | |
"p99": 0.00666234872817993, | |
"values": [ | |
0.0067573761940002445, | |
0.006318079948425293, | |
0.006372384071350098, | |
0.006284287929534912, | |
0.006309887886047363, | |
0.006328320026397705, | |
0.006487040042877197, | |
0.006168575763702393, | |
0.006179776191711426, | |
0.00618390417098999, | |
0.00616755199432373, | |
0.006231008052825927, | |
0.006564864158630371, | |
0.0062259202003479, | |
0.00620851182937622, | |
0.006128608226776123, | |
0.006090752124786377, | |
0.006053887844085694, | |
0.006115327835083008, | |
0.006147071838378906, | |
0.006446080207824707, | |
0.006203392028808594, | |
0.006253568172454834, | |
0.006356031894683838, | |
0.006171648025512695, | |
0.006148096084594727, | |
0.006110208034515381, | |
0.006188032150268555, | |
0.006184959888458252, | |
0.006200384140014648, | |
0.0062566399574279785, | |
0.006241312026977539, | |
0.006227968215942382, | |
0.006160384178161621, | |
0.0061859841346740725, | |
0.006198272228240966, | |
0.0061972479820251464, | |
0.00617574405670166, | |
0.006189055919647217, | |
0.006220799922943115, | |
0.006137856006622314, | |
0.006087679862976075, | |
0.006096896171569824, | |
0.006143968105316162, | |
0.006072319984436035, | |
0.006113279819488526, | |
0.006144000053405762, | |
0.006105088233947754, | |
0.006164480209350586, | |
0.006237184047698975, | |
0.006198272228240966, | |
0.006334464073181153, | |
0.006281184196472168, | |
0.006165503978729248, | |
0.006173696041107178, | |
0.006157311916351318, | |
0.006319104194641113, | |
0.0062197761535644535, | |
0.006195199966430664, | |
0.006178815841674804, | |
0.006176767826080322, | |
0.006102015972137451, | |
0.00611737585067749, | |
0.006150144100189209, | |
0.006146048069000244, | |
0.006148096084594727, | |
0.006191103935241699, | |
0.0062494721412658695, | |
0.00607539176940918, | |
0.006100992202758789, | |
0.006168575763702393, | |
0.006124544143676758, | |
0.006132736206054688, | |
0.006120448112487793, | |
0.006144991874694824, | |
0.006277120113372803, | |
0.006139904022216797, | |
0.006164480209350586, | |
0.006277120113372803, | |
0.00623308801651001, | |
0.006245376110076905, | |
0.006244351863861084, | |
0.006168575763702393, | |
0.006160384178161621, | |
0.006160384178161621, | |
0.006111231803894043, | |
0.006076416015625, | |
0.006250495910644531, | |
0.006048736095428467, | |
0.006184000015258789, | |
0.005964799880981446, | |
0.005893119812011719, | |
0.006077439785003662, | |
0.0061562881469726565, | |
0.006110208034515381, | |
0.005825535774230957, | |
0.005806079864501953, | |
0.00594323205947876, | |
0.005863423824310303, | |
0.005913599967956543, | |
0.005911551952362061, | |
0.00591871976852417, | |
0.00587775993347168, | |
0.006001664161682129, | |
0.0060067839622497555, | |
0.006153215885162353, | |
0.005880832195281982, | |
0.005858304023742676, | |
0.005793791770935058, | |
0.005898240089416504, | |
0.005822463989257813, | |
0.005861408233642578, | |
0.005826560020446778, | |
0.0057794561386108395, | |
0.005715968132019043, | |
0.005728256225585937, | |
0.005720064163208007, | |
0.005763072013854981, | |
0.005740543842315674, | |
0.00576204776763916, | |
0.006071296215057373, | |
0.007379968166351319, | |
0.006608895778656006, | |
0.005900288105010986, | |
0.005836800098419189, | |
0.005860352039337159, | |
0.0058122239112854005, | |
0.005750783920288086, | |
0.0057118721008300784, | |
0.005697535991668701, | |
0.005752831935882568, | |
0.005695487976074219, | |
0.0056893758773803715, | |
0.005683199882507324, | |
0.00572822380065918, | |
0.00570470380783081, | |
0.005739520072937012, | |
0.005695456027984619, | |
0.005726208209991455, | |
0.005677055835723877, | |
0.005687295913696289, | |
0.005716991901397705, | |
0.00568012809753418, | |
0.005681151866912842, | |
0.0057190399169921875, | |
0.005692416191101074, | |
0.005690368175506591, | |
0.00567193603515625, | |
0.0057149438858032225, | |
0.005670911788940429, | |
0.005715968132019043, | |
0.005700607776641845, | |
0.005700607776641845, | |
0.005695487976074219, | |
0.005665791988372803, | |
0.005707808017730713, | |
0.005677055835723877, | |
0.005735424041748047, | |
0.005666816234588623, | |
0.005695487976074219, | |
0.005736447811126709, | |
0.005662720203399658, | |
0.00570470380783081, | |
0.00566374397277832, | |
0.005697535991668701 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 165.87860962722448 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.777853530550761e-08, | |
"ram": 3.705675496062862e-08, | |
"gpu": 3.4072566940571446e-07, | |
"total": 4.4556095967185066e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2244361.8057032777 | |
} | |
} | |
} | |
} |