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
f0568a7
verified
{ | |
"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.224-212.876.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.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.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 840.597504, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.9836025390625, | |
"mean": 7.9836025390625, | |
"stdev": 0.0, | |
"p50": 7.9836025390625, | |
"p90": 7.9836025390625, | |
"p95": 7.9836025390625, | |
"p99": 7.9836025390625, | |
"values": [ | |
7.9836025390625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5495858888879216e-06, | |
"ram": 7.892894140813673e-07, | |
"gpu": 3.7241696459995935e-06, | |
"total": 6.063044948968882e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1050.497024, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 188, | |
"total": 0.9974178886413577, | |
"mean": 0.005305414301283816, | |
"stdev": 0.00019255853694238295, | |
"p50": 0.005235215902328491, | |
"p90": 0.005576998376846313, | |
"p95": 0.005622579336166382, | |
"p99": 0.005712005190849304, | |
"values": [ | |
0.005604351997375488, | |
0.005593088150024414, | |
0.00571289587020874, | |
0.005540768146514893, | |
0.0056145920753479005, | |
0.005568511962890625, | |
0.005626880168914795, | |
0.005581823825836182, | |
0.005539968013763428, | |
0.005763936042785645, | |
0.005502975940704345, | |
0.005416927814483642, | |
0.00515993595123291, | |
0.005123072147369385, | |
0.005171199798583984, | |
0.0053350400924682614, | |
0.005179391860961914, | |
0.005169151782989502, | |
0.005208064079284668, | |
0.005098495960235596, | |
0.005055488109588623, | |
0.005045248031616211, | |
0.0050022401809692385, | |
0.0050800638198852536, | |
0.005121024131774903, | |
0.005153791904449463, | |
0.005249023914337158, | |
0.005206016063690186, | |
0.005302271842956543, | |
0.0052295680046081545, | |
0.005265408039093018, | |
0.005233695983886719, | |
0.005089280128479004, | |
0.005092351913452148, | |
0.005108736038208008, | |
0.005386240005493164, | |
0.005195775985717774, | |
0.0052470722198486325, | |
0.005255231857299805, | |
0.005204127788543701, | |
0.005192704200744629, | |
0.005242879867553711, | |
0.0051968002319335935, | |
0.005158912181854248, | |
0.005187615871429443, | |
0.005158912181854248, | |
0.005203968048095703, | |
0.00521727991104126, | |
0.0051968002319335935, | |
0.00521727991104126, | |
0.005161983966827393, | |
0.00511078405380249, | |
0.0050421757698059086, | |
0.0050206718444824215, | |
0.005037055969238281, | |
0.0051066880226135255, | |
0.005130239963531494, | |
0.005705728054046631, | |
0.005444608211517334, | |
0.005501952171325684, | |
0.005443583965301513, | |
0.005446656227111817, | |
0.005427328109741211, | |
0.005593088150024414, | |
0.005525536060333252, | |
0.005590015888214111, | |
0.00568012809753418, | |
0.005542912006378174, | |
0.0055797758102417, | |
0.005533696174621582, | |
0.005469183921813964, | |
0.005404831886291504, | |
0.005411680221557617, | |
0.005640192031860352, | |
0.005453824043273926, | |
0.005549056053161621, | |
0.005488639831542969, | |
0.00548038387298584, | |
0.005533696174621582, | |
0.005495808124542236, | |
0.005425151824951172, | |
0.005702816009521485, | |
0.005385216236114502, | |
0.005543935775756836, | |
0.005437439918518067, | |
0.005477375984191894, | |
0.005587967872619629, | |
0.005511168003082275, | |
0.005340159893035889, | |
0.005463039875030518, | |
0.005403647899627686, | |
0.005699584007263184, | |
0.005469183921813964, | |
0.00548038387298584, | |
0.005458943843841553, | |
0.005471231937408447, | |
0.00542406415939331, | |
0.0055214080810546875, | |
0.005491807937622071, | |
0.0057118721008300784, | |
0.005602303981781006, | |
0.0056442880630493165, | |
0.005480447769165039, | |
0.005575808048248291, | |
0.005502848148345947, | |
0.005476352214813233, | |
0.0054568958282470706, | |
0.005511231899261474, | |
0.005476352214813233, | |
0.005425151824951172, | |
0.005281919956207275, | |
0.005451776027679443, | |
0.005533696174621582, | |
0.005394336223602295, | |
0.005274623870849609, | |
0.005415808200836181, | |
0.005220352172851562, | |
0.0051476478576660155, | |
0.005354496002197265, | |
0.005407743930816651, | |
0.005255167961120606, | |
0.005136256217956543, | |
0.005146624088287354, | |
0.005108736038208008, | |
0.005277696132659912, | |
0.005184639930725097, | |
0.0053647360801696775, | |
0.005375999927520752, | |
0.005362688064575195, | |
0.005350592136383056, | |
0.005517312049865723, | |
0.005455808162689209, | |
0.005529600143432617, | |
0.005545983791351319, | |
0.005244927883148193, | |
0.005124095916748047, | |
0.0052367358207702636, | |
0.005087232112884522, | |
0.005137407779693603, | |
0.005174272060394287, | |
0.0050503678321838375, | |
0.0050165758132934574, | |
0.0051404800415039064, | |
0.005105663776397705, | |
0.00502784013748169, | |
0.005094399929046631, | |
0.005222400188446045, | |
0.005173247814178467, | |
0.005094399929046631, | |
0.00511084794998169, | |
0.005108736038208008, | |
0.005150720119476319, | |
0.0050636157989501955, | |
0.005165056228637695, | |
0.005128191947937012, | |
0.005095456123352051, | |
0.005157887935638428, | |
0.005163008213043213, | |
0.005185535907745361, | |
0.005104640007019043, | |
0.00521830415725708, | |
0.0051190400123596195, | |
0.005144576072692871, | |
0.00516096019744873, | |
0.0051660799980163576, | |
0.0050954241752624516, | |
0.005134335994720459, | |
0.005184512138366699, | |
0.00516096019744873, | |
0.005138336181640625, | |
0.005165056228637695, | |
0.005137407779693603, | |
0.005093567848205567, | |
0.005137407779693603, | |
0.0051773438453674315, | |
0.005180416107177735, | |
0.005134335994720459, | |
0.005158912181854248, | |
0.0050728960037231445, | |
0.005169151782989502, | |
0.005093376159667969, | |
0.005149695873260498, | |
0.005097631931304932, | |
0.005066751956939697, | |
0.005213183879852295, | |
0.005112864017486572, | |
0.005137407779693603, | |
0.00542310380935669 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 188.48669363258168 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.9557553863067376e-08, | |
"ram": 3.2548034173714876e-08, | |
"gpu": 3.4883891670351685e-07, | |
"total": 4.4094450474029913e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2267859.0826048846 | |
} | |
} | |
} | |
} |