IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
372e101 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.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.223-212.873.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.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 839.70048,
"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.9034970703125,
"mean": 7.9034970703125,
"stdev": 0.0,
"p50": 7.9034970703125,
"p90": 7.9034970703125,
"p95": 7.9034970703125,
"p99": 7.9034970703125,
"values": [
7.9034970703125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.481577294445676e-06,
"ram": 7.963631951742118e-07,
"gpu": 1.583334599999063e-06,
"total": 3.861275089618951e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1048.53504,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 184,
"total": 0.9945828785896299,
"mean": 0.0054053417314653815,
"stdev": 0.00018731454860716054,
"p50": 0.0054609918594360355,
"p90": 0.005603737592697143,
"p95": 0.005645004630088806,
"p99": 0.005755998110771179,
"values": [
0.005728256225585937,
0.005647359848022461,
0.005753920078277588,
0.005607423782348633,
0.005766143798828125,
0.005643263816833496,
0.005662720203399658,
0.00566374397277832,
0.00561356782913208,
0.005667840003967285,
0.005616640090942383,
0.005549056053161621,
0.00555622386932373,
0.005567488193511963,
0.005586944103240967,
0.006099904060363769,
0.005597184181213379,
0.005450751781463623,
0.005408768177032471,
0.005416959762573242,
0.00535862398147583,
0.005458943843841553,
0.005517312049865723,
0.005508063793182373,
0.005578752040863037,
0.0055316481590271,
0.005563392162322998,
0.005597184181213379,
0.005553152084350586,
0.005536767959594726,
0.005431295871734619,
0.005479423999786377,
0.005535776138305664,
0.005547008037567139,
0.005590015888214111,
0.005526527881622314,
0.005540863990783691,
0.005570559978485107,
0.005525504112243652,
0.005554175853729248,
0.005536767959594726,
0.005492735862731934,
0.00556444787979126,
0.005513216018676758,
0.005518367767333984,
0.0055623679161071774,
0.005476352214813233,
0.0054271998405456545,
0.00531763219833374,
0.005368832111358642,
0.005471231937408447,
0.005426176071166992,
0.0054609918594360355,
0.005486656188964844,
0.005430240154266358,
0.0055244798660278325,
0.005480447769165039,
0.005465087890625,
0.005544960021972656,
0.005600255966186523,
0.005588960170745849,
0.005533664226531982,
0.005550079822540284,
0.005568511962890625,
0.005501952171325684,
0.005463039875030518,
0.005645311832427978,
0.005473279953002929,
0.005594111919403076,
0.0055552000999450684,
0.005544960021972656,
0.005552127838134766,
0.005492735862731934,
0.0056258559226989744,
0.0055296640396118165,
0.0054609918594360355,
0.005455872058868408,
0.005434368133544922,
0.0055244798660278325,
0.005502975940704345,
0.005500927925109863,
0.005620736122131348,
0.005535744190216065,
0.005421055793762207,
0.005463039875030518,
0.0054876160621643065,
0.0055214080810546875,
0.005435391902923584,
0.005484543800354004,
0.005548064231872559,
0.005429247856140137,
0.005511168003082275,
0.005543935775756836,
0.005573567867279053,
0.005608448028564453,
0.005548031806945801,
0.005613632202148437,
0.005557248115539551,
0.005579840183258056,
0.005604351997375488,
0.005500927925109863,
0.005570496082305908,
0.005516287803649903,
0.0055285758972167965,
0.005419007778167725,
0.005486591815948487,
0.005559296131134033,
0.005448703765869141,
0.005397535800933838,
0.0057077760696411135,
0.005361663818359375,
0.005256192207336426,
0.0053944320678710935,
0.005437439918518067,
0.005331967830657959,
0.00522547197341919,
0.005169151782989502,
0.005178368091583252,
0.005220352172851562,
0.005329919815063477,
0.005276671886444092,
0.005351424217224121,
0.005250048160552978,
0.0052633600234985355,
0.005355519771575928,
0.005422143936157226,
0.005602303981781006,
0.005354496002197265,
0.005190656185150146,
0.005178368091583252,
0.005251071929931641,
0.00516812801361084,
0.005188608169555664,
0.005243904113769531,
0.0051701760292053225,
0.005181439876556396,
0.00516812801361084,
0.005210112094879151,
0.005154816150665284,
0.005167103767395019,
0.005198847770690918,
0.0051476478576660155,
0.00522649621963501,
0.005215231895446777,
0.005154816150665284,
0.0051435518264770505,
0.005157887935638428,
0.005154816150665284,
0.00515174388885498,
0.005172224044799805,
0.005165056228637695,
0.005139455795288086,
0.005165056228637695,
0.005172224044799805,
0.005161983966827393,
0.005127168178558349,
0.005143519878387451,
0.005161983966827393,
0.005156864166259765,
0.005142528057098389,
0.00556444787979126,
0.005144576072692871,
0.005157887935638428,
0.005174272060394287,
0.005132287979125977,
0.00515174388885498,
0.005141503810882568,
0.005167103767395019,
0.005142528057098389,
0.005140448093414306,
0.00515993595123291,
0.005145599842071533,
0.005192704200744629,
0.005178368091583252,
0.005154816150665284,
0.005144639968872071,
0.0051456642150878905,
0.005165056228637695,
0.005146624088287354,
0.0051998720169067385,
0.005180416107177735,
0.005138432025909424,
0.005156864166259765,
0.005145599842071533
]
},
"throughput": {
"unit": "samples/s",
"value": 185.00217926626837
},
"energy": {
"unit": "kWh",
"cpu": 5.922755485420782e-08,
"ram": 3.222609181329309e-08,
"gpu": 3.574256590746227e-07,
"total": 4.4887930574212363e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2227770.3320421935
}
}
}
}