IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
fe2079b verified
raw
history blame
13.9 kB
{
"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",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.1",
"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
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 843.833344,
"max_global_vram": 1037.565952,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"values": [
0.24940953063964844
],
"count": 1,
"total": 0.24940953063964844,
"mean": 0.24940953063964844,
"p50": 0.24940953063964844,
"p90": 0.24940953063964844,
"p95": 0.24940953063964844,
"p99": 0.24940953063964844,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1053.61408,
"max_global_vram": 1056.44032,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"values": [
0.0055316481590271,
0.005190656185150146,
0.005282815933227539,
0.0052295680046081545,
0.0052971520423889164,
0.00526854419708252,
0.00521727991104126,
0.005259263992309571,
0.005248000144958496,
0.005273600101470947,
0.005167103767395019,
0.0051588802337646485,
0.005182464122772217,
0.005187615871429443,
0.005339136123657226,
0.005278719902038574,
0.005232575893402099,
0.005224448204040527,
0.005152768135070801,
0.0051773438453674315,
0.0051476478576660155,
0.005260287761688232,
0.005114880084991455,
0.005114880084991455,
0.005093376159667969,
0.005117951869964599,
0.0051404800415039064,
0.005238783836364746,
0.005141503810882568,
0.005155839920043945,
0.005174272060394287,
0.005548031806945801,
0.005573631763458252,
0.005611519813537597,
0.005561344146728516,
0.005587935924530029,
0.005597184181213379,
0.005547008037567139,
0.005532671928405761,
0.005430272102355957,
0.0054784960746765135,
0.005576704025268555,
0.005577727794647217,
0.005549056053161621,
0.0055808000564575196,
0.005669888019561768,
0.00568832015991211,
0.0055623679161071774,
0.005477375984191894,
0.005398528099060058,
0.005921792030334472,
0.005612576007843017,
0.00550707197189331,
0.005543903827667236,
0.0055848960876464845,
0.005566463947296142,
0.005482495784759522,
0.005472256183624268,
0.005442624092102051,
0.00547430419921875,
0.005469183921813964,
0.005488639831542969,
0.0055214400291442875,
0.00573747205734253,
0.005540832042694092,
0.005449728012084961,
0.005540863990783691,
0.0055582718849182125,
0.005632991790771484,
0.005623807907104492,
0.005559296131134033,
0.0055634241104125974,
0.005549056053161621,
0.005573535919189453,
0.005535744190216065,
0.005534719944000244,
0.0055808000564575196,
0.005550079822540284,
0.005471231937408447,
0.005566400051116943,
0.0054988799095153805,
0.0055808000564575196,
0.00541593599319458,
0.005403647899627686,
0.005435455799102784,
0.005305344104766845,
0.0052295680046081545,
0.005395455837249756,
0.005458943843841553,
0.0053637118339538575,
0.005197824001312256,
0.005172224044799805,
0.005184544086456299,
0.005435391902923584,
0.005375999927520752,
0.0053606400489807126,
0.005444608211517334,
0.005403647899627686,
0.005411839962005615,
0.0055244798660278325,
0.005819392204284668,
0.005827583789825439,
0.005414912223815918,
0.005194752216339111,
0.0051968002319335935,
0.005169151782989502,
0.00515174388885498,
0.005208064079284668,
0.0051814718246459964,
0.0051660799980163576,
0.005210112094879151,
0.0056852478981018065,
0.005458943843841553,
0.005139455795288086,
0.005161983966827393,
0.005090367794036865,
0.005288959980010987,
0.0050657281875610355,
0.005088255882263183,
0.005101568222045898,
0.005165056228637695,
0.005108736038208008,
0.005039103984832764,
0.005152768135070801,
0.005042240142822265,
0.0051363840103149415,
0.005038112163543701,
0.005135359764099121,
0.005059584140777588,
0.005061632156372071,
0.0050728960037231445,
0.005047296047210693,
0.005121024131774903,
0.005070847988128662,
0.005149695873260498,
0.0050462718009948735,
0.005121024131774903,
0.0050462718009948735,
0.005128191947937012,
0.005044223785400391,
0.005083136081695557,
0.005076000213623047,
0.005059584140777588,
0.005183487892150879,
0.005041152000427246,
0.005116928100585938,
0.005114880084991455,
0.0051333122253417966,
0.005044223785400391,
0.0051363840103149415,
0.0050421757698059086,
0.005105663776397705,
0.005075967788696289,
0.005084256172180176,
0.005075967788696289,
0.005041152000427246,
0.00521830415725708,
0.005049344062805176,
0.005134335994720459,
0.005067776203155518,
0.005158976078033447,
0.005059584140777588,
0.0050728960037231445,
0.005055488109588623,
0.005041152000427246,
0.005063680171966553,
0.005038080215454102,
0.005105663776397705,
0.005064703941345215,
0.0051221117973327636,
0.005075967788696289,
0.005083136081695557,
0.00505241584777832,
0.0050769920349121095,
0.005048255920410156,
0.005107711791992187,
0.00505241584777832,
0.005058559894561767,
0.005079008102416992,
0.005018623828887939,
0.00506982421875,
0.005092351913452148,
0.005059584140777588,
0.005039103984832764,
0.005082111835479736,
0.005058559894561767,
0.0051066880226135255,
0.005067776203155518,
0.005061632156372071
],
"count": 189,
"total": 0.9977675833702084,
"mean": 0.005279193562805338,
"p50": 0.005187615871429443,
"p90": 0.005574246215820313,
"p95": 0.005612153530120849,
"p99": 0.0058203751945495605,
"stdev": 0.00021458977164229767,
"stdev_": 4.064821058166803
},
"throughput": {
"unit": "samples/s",
"value": 189.42287076676251
},
"energy": {
"unit": "kWh",
"cpu": 5.7209113555025346e-08,
"ram": 3.12613842863679e-08,
"gpu": 3.291001564423105e-07,
"total": 4.175706542837037e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2394804.3037540303
}
}
}
}