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
70fea86
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.224-212.876.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.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"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 | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 842.543104, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.16994287109375, | |
"mean": 8.16994287109375, | |
"stdev": 0.0, | |
"p50": 8.16994287109375, | |
"p90": 8.16994287109375, | |
"p95": 8.16994287109375, | |
"p99": 8.16994287109375, | |
"values": [ | |
8.16994287109375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 2.9893617770236846e-06, | |
"ram": 1.6016948008206733e-06, | |
"gpu": 3.81750305389339e-06, | |
"total": 8.408559631737747e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1052.147712, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 199, | |
"total": 1.0015929617881778, | |
"mean": 0.005033130461247122, | |
"stdev": 0.00026525090045617335, | |
"p50": 0.004999167919158935, | |
"p90": 0.005248000144958496, | |
"p95": 0.005511225795745848, | |
"p99": 0.006201569290161133, | |
"values": [ | |
0.005299200057983398, | |
0.005273600101470947, | |
0.005329919815063477, | |
0.005238783836364746, | |
0.005934080123901367, | |
0.005695487976074219, | |
0.005378047943115235, | |
0.0052705278396606445, | |
0.005248000144958496, | |
0.005319680213928223, | |
0.005490752220153808, | |
0.005021696090698242, | |
0.004869120121002197, | |
0.00487014389038086, | |
0.004851712226867676, | |
0.004832255840301514, | |
0.004833280086517334, | |
0.0048158721923828125, | |
0.0048496642112731934, | |
0.004829184055328369, | |
0.00481382417678833, | |
0.00481279993057251, | |
0.004836351871490479, | |
0.004859903812408447, | |
0.004835328102111816, | |
0.00487116813659668, | |
0.0048189439773559575, | |
0.0048148479461669925, | |
0.004833280086517334, | |
0.004816895961761475, | |
0.004819968223571777, | |
0.004836351871490479, | |
0.004846591949462891, | |
0.004865024089813232, | |
0.004820991992950439, | |
0.004860928058624267, | |
0.004842495918273926, | |
0.004869120121002197, | |
0.004845632076263428, | |
0.004936704158782959, | |
0.00497049617767334, | |
0.004997119903564453, | |
0.005248000144958496, | |
0.005754879951477051, | |
0.0051066880226135255, | |
0.005017600059509277, | |
0.0050124797821044925, | |
0.005026815891265869, | |
0.005048319816589355, | |
0.004998144149780274, | |
0.005206016063690186, | |
0.005235712051391602, | |
0.005104640007019043, | |
0.005022719860076904, | |
0.004992000102996826, | |
0.005031936168670655, | |
0.0050032639503479, | |
0.0050094079971313476, | |
0.004988927841186524, | |
0.005031936168670655, | |
0.004987904071807861, | |
0.005017600059509277, | |
0.004983808040618896, | |
0.005005311965942383, | |
0.005001215934753418, | |
0.005025792121887207, | |
0.004973567962646484, | |
0.004992000102996826, | |
0.004997119903564453, | |
0.004997119903564453, | |
0.004998144149780274, | |
0.005007359981536865, | |
0.005001279830932617, | |
0.004976640224456787, | |
0.004983808040618896, | |
0.005015552043914795, | |
0.005001215934753418, | |
0.005001215934753418, | |
0.0050032639503479, | |
0.005023744106292725, | |
0.0049827837944030765, | |
0.005004288196563721, | |
0.004997119903564453, | |
0.0050165758132934574, | |
0.0050135040283203125, | |
0.00501964807510376, | |
0.005000192165374756, | |
0.00502784013748169, | |
0.00499507188796997, | |
0.0050206718444824215, | |
0.004985856056213379, | |
0.005021696090698242, | |
0.004986879825592041, | |
0.004984831809997559, | |
0.00499507188796997, | |
0.005039103984832764, | |
0.004992000102996826, | |
0.0050135040283203125, | |
0.004987904071807861, | |
0.00501043176651001, | |
0.004986879825592041, | |
0.004985856056213379, | |
0.004994080066680908, | |
0.005021696090698242, | |
0.004984831809997559, | |
0.005004288196563721, | |
0.004987904071807861, | |
0.005017600059509277, | |
0.004999167919158935, | |
0.005008384227752686, | |
0.004984831809997559, | |
0.005000192165374756, | |
0.004993023872375488, | |
0.005000192165374756, | |
0.005001215934753418, | |
0.0049909758567810054, | |
0.0050094079971313476, | |
0.005007359981536865, | |
0.0050094079971313476, | |
0.005018623828887939, | |
0.0050042238235473635, | |
0.00501043176651001, | |
0.0050094079971313476, | |
0.0050094079971313476, | |
0.00497049617767334, | |
0.005005248069763183, | |
0.005094399929046631, | |
0.0050094079971313476, | |
0.004986879825592041, | |
0.005007359981536865, | |
0.0050032639503479, | |
0.005000192165374756, | |
0.004999104022979736, | |
0.0050124797821044925, | |
0.0050165758132934574, | |
0.004998144149780274, | |
0.0050022401809692385, | |
0.00502784013748169, | |
0.005102591991424561, | |
0.0050206718444824215, | |
0.005141503810882568, | |
0.005014527797698975, | |
0.005025792121887207, | |
0.005007359981536865, | |
0.005015615940093994, | |
0.005028895854949951, | |
0.005016608238220215, | |
0.005061632156372071, | |
0.005114880084991455, | |
0.005053440093994141, | |
0.005329919815063477, | |
0.006008831977844238, | |
0.006116352081298828, | |
0.006066143989562988, | |
0.006212607860565185, | |
0.006217728137969971, | |
0.006171648025512695, | |
0.006201344013214111, | |
0.005032959938049316, | |
0.004944896221160889, | |
0.004939775943756103, | |
0.005447679996490478, | |
0.00510975980758667, | |
0.00491315221786499, | |
0.004865024089813232, | |
0.004890624046325683, | |
0.00496230411529541, | |
0.004865024089813232, | |
0.004824063777923584, | |
0.004838399887084961, | |
0.004831232070922851, | |
0.0048158721923828125, | |
0.00481279993057251, | |
0.004824063777923584, | |
0.0048158721923828125, | |
0.004835328102111816, | |
0.004817920207977295, | |
0.0048230400085449215, | |
0.004819968223571777, | |
0.004828159809112549, | |
0.004835328102111816, | |
0.004819968223571777, | |
0.0048189439773559575, | |
0.004806655883789063, | |
0.004808703899383545, | |
0.00481382417678833, | |
0.00481279993057251, | |
0.004809728145599365, | |
0.004809728145599365, | |
0.004808703899383545, | |
0.004810751914978028, | |
0.004816895961761475, | |
0.0048496642112731934, | |
0.0050432000160217285, | |
0.00499507188796997, | |
0.004989952087402344, | |
0.004980735778808594, | |
0.004999167919158935, | |
0.005000192165374756 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 198.68350476896188 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.780996864607354e-08, | |
"ram": 3.1515028134878585e-08, | |
"gpu": 3.5546144941793844e-07, | |
"total": 4.4478644619889056e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2248269.9474004214 | |
} | |
} | |
} | |
} |