IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
b219259 verified
raw
history blame
13.7 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.015168,
"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.426154296875,
"mean": 7.426154296875,
"stdev": 0.0,
"p50": 7.426154296875,
"p90": 7.426154296875,
"p95": 7.426154296875,
"p99": 7.426154296875,
"values": [
7.426154296875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.4651543263891003e-06,
"ram": 7.87050632421269e-07,
"gpu": 1.6808346780007588e-06,
"total": 3.933039636811128e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1035.812864,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 183,
"total": 0.9954078073501589,
"mean": 0.005439386925410703,
"stdev": 0.0003910298800409239,
"p50": 0.0055582718849182125,
"p90": 0.005774335861206055,
"p95": 0.006130377626419068,
"p99": 0.00652950647354126,
"values": [
0.006007775783538818,
0.005732351779937744,
0.005774335861206055,
0.005719007968902588,
0.005730303764343261,
0.005736447811126709,
0.0057794561386108395,
0.005668863773345947,
0.005636096000671387,
0.005647359848022461,
0.005605375766754151,
0.005550079822540284,
0.00582144021987915,
0.005774335861206055,
0.00566476821899414,
0.005582848072052002,
0.005502975940704345,
0.005448703765869141,
0.005650432109832764,
0.005587967872619629,
0.00555622386932373,
0.005608448028564453,
0.005618688106536865,
0.005604351997375488,
0.0056258559226989744,
0.005620736122131348,
0.005567488193511963,
0.005574656009674072,
0.0060067839622497555,
0.005628928184509278,
0.005854207992553711,
0.005692416191101074,
0.005702655792236328,
0.005618688106536865,
0.005599232196807862,
0.005659647941589355,
0.005610496044158936,
0.0055623679161071774,
0.0056442880630493165,
0.0055623679161071774,
0.005632031917572022,
0.005593088150024414,
0.005569536209106446,
0.005444608211517334,
0.005434368133544922,
0.005485568046569824,
0.005479423999786377,
0.005540895938873291,
0.005565440177917481,
0.005577727794647217,
0.005547008037567139,
0.0055316481590271,
0.005611519813537597,
0.005726208209991455,
0.0057077760696411135,
0.0056258559226989744,
0.005608448028564453,
0.005611519813537597,
0.005582848072052002,
0.005535744190216065,
0.005505023956298828,
0.005571584224700928,
0.005624832153320313,
0.005634047985076904,
0.005568511962890625,
0.005593088150024414,
0.00658739185333252,
0.005637119770050049,
0.005480447769165039,
0.005479423999786377,
0.005569536209106446,
0.005582848072052002,
0.005618688106536865,
0.0056780800819396975,
0.005561344146728516,
0.005486591815948487,
0.005574656009674072,
0.005590015888214111,
0.0055582718849182125,
0.005696512222290039,
0.0055511040687561035,
0.005547008037567139,
0.005609471797943116,
0.005583871841430664,
0.0057825279235839844,
0.005682144165039062,
0.005682176113128662,
0.005670911788940429,
0.00571289587020874,
0.005721024036407471,
0.005603328227996827,
0.005681151866912842,
0.005641215801239013,
0.005603328227996827,
0.005582848072052002,
0.0055797758102417,
0.005587967872619629,
0.005493760108947754,
0.005465087890625,
0.005494783878326416,
0.0053339838981628414,
0.005307392120361328,
0.005634047985076904,
0.005518335819244385,
0.0053606400489807126,
0.0052295680046081545,
0.005251071929931641,
0.0053043198585510255,
0.005272575855255127,
0.005337088108062744,
0.005876736164093017,
0.006397952079772949,
0.006432767868041992,
0.006502399921417237,
0.006516799926757812,
0.006595647811889648,
0.006351871967315674,
0.006245376110076905,
0.0063415999412536625,
0.00563097620010376,
0.005321728229522705,
0.005341184139251709,
0.005874656200408936,
0.005310463905334473,
0.00501043176651001,
0.004993023872375488,
0.0050032639503479,
0.004999167919158935,
0.004975615978240967,
0.004939775943756103,
0.004958208084106445,
0.004956160068511963,
0.004936736106872558,
0.0049500160217285155,
0.004947968006134033,
0.004994048118591309,
0.004944896221160889,
0.0049162240028381345,
0.0049192957878112795,
0.00491315221786499,
0.004936704158782959,
0.004921343803405762,
0.004965375900268554,
0.004968448162078858,
0.004944896221160889,
0.004928512096405029,
0.004900864124298096,
0.004986879825592041,
0.005048287868499756,
0.004959231853485108,
0.004922368049621582,
0.0049489917755126955,
0.004956160068511963,
0.004934656143188477,
0.004952064037322998,
0.004933631896972656,
0.004900864124298096,
0.004931583881378174,
0.004910079956054687,
0.004917247772216797,
0.004914175987243652,
0.004901887893676758,
0.004921343803405762,
0.004911104202270508,
0.0049090561866760255,
0.004894720077514648,
0.004923391819000244,
0.004908031940460205,
0.004914175987243652,
0.004896768093109131,
0.004903935909271241,
0.00491315221786499,
0.004898816108703613,
0.004918272018432617,
0.004925439834594727,
0.004923391819000244,
0.005122047901153564,
0.006144000053405762,
0.005195775985717774,
0.005030911922454834,
0.005278719902038574,
0.005470208168029785,
0.005248000144958496
]
},
"throughput": {
"unit": "samples/s",
"value": 183.8442482053241
},
"energy": {
"unit": "kWh",
"cpu": 6.249663970760425e-08,
"ram": 3.408880298444008e-08,
"gpu": 3.4639062798947564e-07,
"total": 4.429760706815199e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2257458.2831562376
}
}
}
}