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
d3ffd71
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.dev0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.1", | |
"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.2", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 844.038144, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.1243873291015625 | |
], | |
"count": 1, | |
"total": 0.1243873291015625, | |
"mean": 0.1243873291015625, | |
"p50": 0.1243873291015625, | |
"p90": 0.1243873291015625, | |
"p95": 0.1243873291015625, | |
"p99": 0.1243873291015625, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1054.019584, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.00552345609664917, | |
0.005219327926635742, | |
0.00531660795211792, | |
0.00551526403427124, | |
0.005493760108947754, | |
0.005454847812652588, | |
0.005581823825836182, | |
0.00547430419921875, | |
0.005500927925109863, | |
0.005389311790466309, | |
0.005481472015380859, | |
0.005430272102355957, | |
0.005573631763458252, | |
0.005403647899627686, | |
0.0054568958282470706, | |
0.005486591815948487, | |
0.005400576114654541, | |
0.005303296089172363, | |
0.005288959980010987, | |
0.005348351955413819, | |
0.005355519771575928, | |
0.005446656227111817, | |
0.005384160041809082, | |
0.005402624130249023, | |
0.005450751781463623, | |
0.005422080039978027, | |
0.00538316822052002, | |
0.005420032024383545, | |
0.0053975038528442385, | |
0.005512191772460938, | |
0.005574656009674072, | |
0.005449728012084961, | |
0.005692416191101074, | |
0.005433343887329102, | |
0.0055582718849182125, | |
0.005468160152435303, | |
0.00555622386932373, | |
0.0057415680885314945, | |
0.005150720119476319, | |
0.005173247814178467, | |
0.0052971520423889164, | |
0.0052367358207702636, | |
0.0051660799980163576, | |
0.0052008957862854, | |
0.005175295829772949, | |
0.005145599842071533, | |
0.005753856182098388, | |
0.00536678409576416, | |
0.005262335777282715, | |
0.0053012480735778805, | |
0.005134335994720459, | |
0.005111807823181152, | |
0.005129216194152832, | |
0.00514246416091919, | |
0.005173247814178467, | |
0.005617663860321045, | |
0.005326848030090332, | |
0.0053534722328186036, | |
0.005409791946411133, | |
0.005389311790466309, | |
0.005340159893035889, | |
0.005431295871734619, | |
0.005359615802764893, | |
0.005355519771575928, | |
0.005422080039978027, | |
0.005403647899627686, | |
0.005469183921813964, | |
0.00552345609664917, | |
0.005202943801879883, | |
0.005243904113769531, | |
0.005216256141662597, | |
0.005173247814178467, | |
0.005185535907745361, | |
0.0051998720169067385, | |
0.005145599842071533, | |
0.005124095916748047, | |
0.005194752216339111, | |
0.0051363840103149415, | |
0.0051138558387756345, | |
0.0050462718009948735, | |
0.005114880084991455, | |
0.005204959869384766, | |
0.00516812801361084, | |
0.005131264209747314, | |
0.004983808040618896, | |
0.0050800638198852536, | |
0.004908031940460205, | |
0.0049090561866760255, | |
0.005038080215454102, | |
0.005078015804290771, | |
0.005014527797698975, | |
0.004898816108703613, | |
0.004865024089813232, | |
0.004873216152191162, | |
0.004863999843597412, | |
0.0048793601989746095, | |
0.005178368091583252, | |
0.005219327926635742, | |
0.005167103767395019, | |
0.005244927883148193, | |
0.005268479824066162, | |
0.005467103958129883, | |
0.005475327968597412, | |
0.005234687805175781, | |
0.005105663776397705, | |
0.0051138558387756345, | |
0.00511078405380249, | |
0.005072927951812744, | |
0.0051701760292053225, | |
0.0052408318519592285, | |
0.005134335994720459, | |
0.005321728229522705, | |
0.0050821762084960935, | |
0.00506982421875, | |
0.005048384189605713, | |
0.0051036162376403805, | |
0.0050657281875610355, | |
0.005058559894561767, | |
0.005088255882263183, | |
0.00505241584777832, | |
0.005066751956939697, | |
0.005031936168670655, | |
0.005067808151245117, | |
0.005035007953643799, | |
0.005037055969238281, | |
0.005037055969238281, | |
0.0050800638198852536, | |
0.005051392078399658, | |
0.0050462718009948735, | |
0.005024767875671386, | |
0.00505241584777832, | |
0.005188608169555664, | |
0.005040128231048584, | |
0.005064703941345215, | |
0.005029888153076172, | |
0.0050421757698059086, | |
0.005030911922454834, | |
0.005058559894561767, | |
0.005073919773101807, | |
0.005352447986602784, | |
0.005356544017791748, | |
0.005700607776641845, | |
0.00553984022140503, | |
0.005723135948181152, | |
0.005122047901153564, | |
0.005079040050506592, | |
0.005206048011779785, | |
0.005074944019317627, | |
0.005064703941345215, | |
0.005083199977874756, | |
0.005063712120056152, | |
0.00506060791015625, | |
0.005040128231048584, | |
0.0050657281875610355, | |
0.005048319816589355, | |
0.005054463863372802, | |
0.0050503678321838375, | |
0.005056511878967285, | |
0.0050503678321838375, | |
0.0050432000160217285, | |
0.005037055969238281, | |
0.005175295829772949, | |
0.0050800638198852536, | |
0.005058495998382568, | |
0.005075967788696289, | |
0.005189631938934326, | |
0.005163008213043213, | |
0.005040128231048584, | |
0.005049344062805176, | |
0.005044223785400391, | |
0.005031936168670655, | |
0.005070847988128662, | |
0.005064703941345215, | |
0.005054463863372802, | |
0.005040128231048584, | |
0.005048319816589355, | |
0.0051701760292053225, | |
0.005026815891265869, | |
0.005040128231048584, | |
0.0051333122253417966, | |
0.005051392078399658, | |
0.005032991886138916, | |
0.005053440093994141, | |
0.005039103984832764, | |
0.00506879997253418, | |
0.005031936168670655, | |
0.0050360321998596195, | |
0.005028863906860351, | |
0.005032959938049316, | |
0.005035007953643799, | |
0.005059584140777588, | |
0.005064703941345215 | |
], | |
"count": 192, | |
"total": 0.9997282524108883, | |
"mean": 0.005206917981306711, | |
"p50": 0.005144032001495361, | |
"p90": 0.005480857610702514, | |
"p95": 0.005557145476341247, | |
"p99": 0.005724794840812683, | |
"stdev": 0.00019374680970548938, | |
"stdev_": 3.7209499055114232 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 192.05218971953985 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.755283661859296e-08, | |
"ram": 3.1448810714802136e-08, | |
"gpu": 3.307828500961465e-07, | |
"total": 4.197844974295417e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2382174.6780152214 | |
} | |
} | |
} | |
} |