IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
0ae3f6a verified
raw
history blame
13.8 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.4.0+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.223-211.872.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.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.1",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 827.854848,
"max_global_vram": 1030.22592,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.47359619140625,
"mean": 7.47359619140625,
"stdev": 0.0,
"p50": 7.47359619140625,
"p90": 7.47359619140625,
"p95": 7.47359619140625,
"p99": 7.47359619140625,
"values": [
7.47359619140625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.5423424722222023e-06,
"ram": 8.293022584675395e-07,
"gpu": 1.8955570720005296e-06,
"total": 4.267201802690272e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1037.504512,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 185,
"total": 0.9975478405952453,
"mean": 0.005392150489704029,
"stdev": 0.00017872085984244415,
"p50": 0.005337088108062744,
"p90": 0.005636710262298584,
"p95": 0.0056875009536743164,
"p99": 0.0058375373458862305,
"values": [
0.005834752082824707,
0.005673984050750733,
0.005734399795532226,
0.005666816234588623,
0.005676032066345215,
0.00568832015991211,
0.005636096000671387,
0.005693439960479736,
0.005642240047454834,
0.0057118721008300784,
0.0056739521026611325,
0.005631999969482422,
0.005581823825836182,
0.005575679779052735,
0.005612544059753418,
0.005583871841430664,
0.005552127838134766,
0.005454847812652588,
0.005384191989898681,
0.005455872058868408,
0.005483520030975342,
0.005488639831542969,
0.005595136165618897,
0.005582848072052002,
0.005637119770050049,
0.005608448028564453,
0.005570559978485107,
0.0053606400489807126,
0.0052705278396606445,
0.005188608169555664,
0.005323775768280029,
0.005338111877441406,
0.005345280170440674,
0.005406720161437988,
0.005345280170440674,
0.005344255924224854,
0.00536575984954834,
0.0053340158462524415,
0.005318655967712403,
0.0052899842262268066,
0.005288928031921387,
0.005337088108062744,
0.0053350400924682614,
0.005331967830657959,
0.005312511920928955,
0.005189631938934326,
0.005086207866668701,
0.005142528057098389,
0.005192704200744629,
0.005195775985717774,
0.005224448204040527,
0.005283840179443359,
0.0052633600234985355,
0.005250048160552978,
0.005347328186035156,
0.005239808082580567,
0.005337088108062744,
0.0053944320678710935,
0.0053688640594482424,
0.005354496002197265,
0.005371903896331787,
0.005307392120361328,
0.005312511920928955,
0.005281792163848877,
0.005161983966827393,
0.005278719902038574,
0.006194176197052002,
0.00537395191192627,
0.005349376201629639,
0.005306367874145508,
0.005452799797058106,
0.005646336078643799,
0.005462016105651855,
0.005511168003082275,
0.005485568046569824,
0.005530623912811279,
0.0055552000999450684,
0.005574656009674072,
0.00563097620010376,
0.005527552127838135,
0.005467135906219483,
0.005574656009674072,
0.005542912006378174,
0.0055285758972167965,
0.00553984022140503,
0.005545983791351319,
0.005616640090942383,
0.00551526403427124,
0.005565440177917481,
0.005631999969482422,
0.005607423782348633,
0.005691391944885254,
0.005598207950592041,
0.005684224128723145,
0.005611519813537597,
0.005545983791351319,
0.005769216060638428,
0.005627903938293457,
0.005852159976959229,
0.005469183921813964,
0.005505023956298828,
0.00566374397277832,
0.005486591815948487,
0.005484543800354004,
0.005454847812652588,
0.0053678078651428224,
0.005259263992309571,
0.0053309440612792965,
0.005493760108947754,
0.005479423999786377,
0.005245952129364013,
0.005201920032501221,
0.005249023914337158,
0.005216224193572998,
0.005254144191741943,
0.005298175811767578,
0.005386240005493164,
0.005416959762573242,
0.005501952171325684,
0.005444608211517334,
0.0055214080810546875,
0.005497856140136719,
0.005542912006378174,
0.00570470380783081,
0.005464064121246338,
0.0052705278396606445,
0.005276671886444092,
0.005245888233184814,
0.005251071929931641,
0.005278719902038574,
0.005238783836364746,
0.00536678409576416,
0.005473279953002929,
0.005265408039093018,
0.005257215976715088,
0.005315584182739258,
0.005251071929931641,
0.005245952129364013,
0.005249023914337158,
0.005223423957824707,
0.005237760066986084,
0.005253056049346924,
0.0052367358207702636,
0.005219327926635742,
0.00526643180847168,
0.0052295680046081545,
0.005261312007904053,
0.005269504070281982,
0.005238783836364746,
0.005206016063690186,
0.005230591773986816,
0.005221375942230225,
0.005213183879852295,
0.005222400188446045,
0.0052367358207702636,
0.005206016063690186,
0.005206016063690186,
0.005245952129364013,
0.005224448204040527,
0.00521830415725708,
0.005246975898742676,
0.00520908784866333,
0.00522649621963501,
0.005279744148254394,
0.005206048011779785,
0.005221375942230225,
0.005276671886444092,
0.005213183879852295,
0.005214208126068115,
0.005224448204040527,
0.005257215976715088,
0.005219327926635742,
0.005224448204040527,
0.0052408318519592285,
0.00522547197341919,
0.005216256141662597,
0.005250048160552978,
0.0052070398330688475,
0.005227519989013672,
0.005227519989013672,
0.005219327926635742,
0.0052285118103027346,
0.005254144191741943,
0.005213183879852295,
0.005254144191741943
]
},
"throughput": {
"unit": "samples/s",
"value": 185.45476464528147
},
"energy": {
"unit": "kWh",
"cpu": 5.989636890432506e-08,
"ram": 3.271437792495021e-08,
"gpu": 3.8407438133333085e-07,
"total": 4.7668512816260616e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2097820.848438304
}
}
}
}