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
3e74449
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "image-classification", | |
"model": "google/vit-base-patch16-224", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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, | |
"latency": true, | |
"memory": 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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 904.757248, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 183, | |
"total": 0.9988874578475951, | |
"mean": 0.005458401409003253, | |
"stdev": 0.00021808223133829203, | |
"p50": 0.005513216018676758, | |
"p90": 0.0056920062065124516, | |
"p95": 0.005798249769210816, | |
"p99": 0.006087188405990601, | |
"values": [ | |
0.0062228479385375976, | |
0.00576204776763916, | |
0.0058429441452026365, | |
0.005654528141021729, | |
0.005624832153320313, | |
0.005593088150024414, | |
0.005586944103240967, | |
0.005603328227996827, | |
0.005566527843475342, | |
0.005626880168914795, | |
0.005574656009674072, | |
0.00573747205734253, | |
0.005603328227996827, | |
0.005612544059753418, | |
0.005605343818664551, | |
0.005559296131134033, | |
0.00546611213684082, | |
0.005450751781463623, | |
0.005479423999786377, | |
0.005571584224700928, | |
0.005557248115539551, | |
0.0056135039329528805, | |
0.005612544059753418, | |
0.005607423782348633, | |
0.005640192031860352, | |
0.00561356782913208, | |
0.005636096000671387, | |
0.005513216018676758, | |
0.005576704025268555, | |
0.005617663860321045, | |
0.005575679779052735, | |
0.005605375766754151, | |
0.005628928184509278, | |
0.005599232196807862, | |
0.005601280212402344, | |
0.00553984022140503, | |
0.005571584224700928, | |
0.005603328227996827, | |
0.005581823825836182, | |
0.005618688106536865, | |
0.00551423978805542, | |
0.005463039875030518, | |
0.00551423978805542, | |
0.00551423978805542, | |
0.005561344146728516, | |
0.005527552127838135, | |
0.0054906878471374515, | |
0.005585919857025146, | |
0.005548064231872559, | |
0.005604351997375488, | |
0.005594111919403076, | |
0.005624832153320313, | |
0.005652480125427246, | |
0.005611487865447998, | |
0.005656576156616211, | |
0.005567488193511963, | |
0.0055285758972167965, | |
0.005540863990783691, | |
0.005598207950592041, | |
0.005647359848022461, | |
0.0055552000999450684, | |
0.005578752040863037, | |
0.005607423782348633, | |
0.005543935775756836, | |
0.005481472015380859, | |
0.0054876160621643065, | |
0.005576704025268555, | |
0.005532671928405761, | |
0.005570496082305908, | |
0.005657599925994873, | |
0.0054906878471374515, | |
0.005483520030975342, | |
0.005552127838134766, | |
0.005536767959594726, | |
0.0060661759376525876, | |
0.0057497601509094234, | |
0.0058264961242675785, | |
0.005710847854614258, | |
0.005763072013854981, | |
0.005734399795532226, | |
0.005772287845611572, | |
0.005811200141906738, | |
0.005917791843414307, | |
0.005863423824310303, | |
0.005822463989257813, | |
0.005633024215698243, | |
0.005594175815582275, | |
0.005595136165618897, | |
0.005495808124542236, | |
0.005533696174621582, | |
0.005700607776641845, | |
0.005582848072052002, | |
0.005534719944000244, | |
0.005574624061584473, | |
0.005286911964416504, | |
0.005392384052276611, | |
0.005585919857025146, | |
0.0053944320678710935, | |
0.005252096176147461, | |
0.0053002238273620605, | |
0.005252096176147461, | |
0.005302271842956543, | |
0.005288959980010987, | |
0.005348320007324219, | |
0.0053309440612792965, | |
0.005303296089172363, | |
0.0054282240867614745, | |
0.0055582718849182125, | |
0.005438464164733887, | |
0.005339136123657226, | |
0.005292031764984131, | |
0.005646336078643799, | |
0.006182911872863769, | |
0.005774432182312011, | |
0.005626880168914795, | |
0.005582848072052002, | |
0.005369855880737305, | |
0.005396480083465576, | |
0.00538316822052002, | |
0.00530838394165039, | |
0.005343232154846191, | |
0.005298175811767578, | |
0.0053155522346496585, | |
0.005356544017791748, | |
0.005290048122406006, | |
0.00530944013595581, | |
0.005222400188446045, | |
0.005158912181854248, | |
0.00522547197341919, | |
0.005251071929931641, | |
0.005210112094879151, | |
0.0053534722328186036, | |
0.0053975038528442385, | |
0.005385216236114502, | |
0.005387263774871826, | |
0.005268479824066162, | |
0.005212096214294434, | |
0.0052367358207702636, | |
0.005250016212463379, | |
0.005203968048095703, | |
0.00522652816772461, | |
0.005265408039093018, | |
0.005221375942230225, | |
0.005235712051391602, | |
0.005234687805175781, | |
0.005201920032501221, | |
0.005152768135070801, | |
0.00515174388885498, | |
0.005157887935638428, | |
0.005148672103881836, | |
0.005145599842071533, | |
0.00515174388885498, | |
0.0051333122253417966, | |
0.005149695873260498, | |
0.005142528057098389, | |
0.005134335994720459, | |
0.005168191909790039, | |
0.005165056228637695, | |
0.005161983966827393, | |
0.005144576072692871, | |
0.005134335994720459, | |
0.00516096019744873, | |
0.005153791904449463, | |
0.005139455795288086, | |
0.005140448093414306, | |
0.005167103767395019, | |
0.005143583774566651, | |
0.005180416107177735, | |
0.005167103767395019, | |
0.005139488220214844, | |
0.005183519840240479, | |
0.005800896167755127, | |
0.005336063861846924, | |
0.005250048160552978, | |
0.005285888195037842, | |
0.0052705278396606445, | |
0.005249023914337158, | |
0.005272575855255127, | |
0.005325823783874512, | |
0.005252096176147461, | |
0.005265408039093018, | |
0.005208064079284668, | |
0.005184512138366699 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 183.2038219744282 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.415977402850315e-08, | |
"ram": 3.507929569447721e-08, | |
"gpu": 3.5473902252970366e-07, | |
"total": 4.5397809225268407e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2202749.465371559 | |
} | |
} | |
} | |
} |