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
e4c8cdd
verified
{ | |
"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-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.33.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": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 827.088896, | |
"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.43054833984375, | |
"mean": 7.43054833984375, | |
"stdev": 0.0, | |
"p50": 7.43054833984375, | |
"p90": 7.43054833984375, | |
"p95": 7.43054833984375, | |
"p99": 7.43054833984375, | |
"values": [ | |
7.43054833984375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5300379312512922e-06, | |
"ram": 8.087286173024054e-07, | |
"gpu": 1.6636124420005977e-06, | |
"total": 4.002378990554295e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1035.923456, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 187, | |
"total": 0.9967441287040716, | |
"mean": 0.005330182506438882, | |
"stdev": 0.00015305932062206632, | |
"p50": 0.005282815933227539, | |
"p90": 0.00556441593170166, | |
"p95": 0.0056009729385375975, | |
"p99": 0.0056689049053192135, | |
"values": [ | |
0.005438464164733887, | |
0.005370880126953125, | |
0.005500927925109863, | |
0.00536575984954834, | |
0.005445631980895996, | |
0.005409791946411133, | |
0.005396480083465576, | |
0.0053534722328186036, | |
0.005350399971008301, | |
0.00541593599319458, | |
0.005421023845672607, | |
0.005371903896331787, | |
0.0052592320442199705, | |
0.005326848030090332, | |
0.005347328186035156, | |
0.0053340158462524415, | |
0.00535859203338623, | |
0.005194752216339111, | |
0.005149695873260498, | |
0.005138432025909424, | |
0.005202943801879883, | |
0.005194752216339111, | |
0.005281792163848877, | |
0.005328896045684814, | |
0.005297247886657715, | |
0.005325823783874512, | |
0.005341184139251709, | |
0.005298175811767578, | |
0.005238783836364746, | |
0.005215231895446777, | |
0.0051998400688171385, | |
0.005286911964416504, | |
0.0053606400489807126, | |
0.005307392120361328, | |
0.005336063861846924, | |
0.005322751998901368, | |
0.005339136123657226, | |
0.005288959980010987, | |
0.005344255924224854, | |
0.005256192207336426, | |
0.005281792163848877, | |
0.005341184139251709, | |
0.005285888195037842, | |
0.0053678078651428224, | |
0.00531660795211792, | |
0.005203999996185303, | |
0.005108736038208008, | |
0.005146624088287354, | |
0.005157887935638428, | |
0.005165056228637695, | |
0.0053043198585510255, | |
0.00517632007598877, | |
0.005250048160552978, | |
0.005244927883148193, | |
0.005222400188446045, | |
0.005278719902038574, | |
0.005349376201629639, | |
0.0053606400489807126, | |
0.0053002238273620605, | |
0.0053606400489807126, | |
0.0052715840339660645, | |
0.005322751998901368, | |
0.0052899842262268066, | |
0.005192704200744629, | |
0.005234623908996582, | |
0.005318687915802002, | |
0.006210559844970703, | |
0.005327871799468994, | |
0.005322751998901368, | |
0.005273600101470947, | |
0.005372928142547607, | |
0.005577727794647217, | |
0.005412864208221436, | |
0.0055285758972167965, | |
0.005538815975189209, | |
0.005566463947296142, | |
0.00555622386932373, | |
0.005612576007843017, | |
0.00556441593170166, | |
0.00547219181060791, | |
0.005514175891876221, | |
0.00556441593170166, | |
0.005496831893920898, | |
0.005588992118835449, | |
0.005632991790771484, | |
0.005505023956298828, | |
0.005561344146728516, | |
0.005519360065460205, | |
0.00566374397277832, | |
0.005601280212402344, | |
0.005641248226165772, | |
0.005649407863616943, | |
0.00561356782913208, | |
0.00562278413772583, | |
0.005565440177917481, | |
0.005582911968231201, | |
0.005600255966186523, | |
0.005527552127838135, | |
0.005486591815948487, | |
0.00555622386932373, | |
0.005552127838134766, | |
0.005501952171325684, | |
0.005403615951538086, | |
0.005533696174621582, | |
0.005279744148254394, | |
0.005295104026794434, | |
0.005448703765869141, | |
0.005502975940704345, | |
0.005312511920928955, | |
0.0052008957862854, | |
0.005227519989013672, | |
0.005212160110473632, | |
0.005274623870849609, | |
0.005241856098175048, | |
0.005303296089172363, | |
0.005472256183624268, | |
0.005438464164733887, | |
0.005511168003082275, | |
0.005565440177917481, | |
0.005573599815368652, | |
0.005700607776641845, | |
0.005463039875030518, | |
0.0052674560546875, | |
0.005323775768280029, | |
0.005206016063690186, | |
0.00520300817489624, | |
0.005299200057983398, | |
0.005190656185150146, | |
0.005231616020202637, | |
0.005256192207336426, | |
0.005260287761688232, | |
0.005184512138366699, | |
0.005277696132659912, | |
0.005208064079284668, | |
0.005189631938934326, | |
0.00522547197341919, | |
0.0051998720169067385, | |
0.005297120094299316, | |
0.005206016063690186, | |
0.005265408039093018, | |
0.005161983966827393, | |
0.0052008957862854, | |
0.005269504070281982, | |
0.005190656185150146, | |
0.005220352172851562, | |
0.005275648117065429, | |
0.0052336640357971195, | |
0.005185535907745361, | |
0.0052008957862854, | |
0.005212160110473632, | |
0.005167103767395019, | |
0.00520908784866333, | |
0.005210112094879151, | |
0.005214208126068115, | |
0.005194752216339111, | |
0.005215231895446777, | |
0.005244927883148193, | |
0.005180416107177735, | |
0.005251071929931641, | |
0.005174272060394287, | |
0.005223423957824707, | |
0.005203968048095703, | |
0.005187583923339844, | |
0.005282815933227539, | |
0.00521727991104126, | |
0.005221375942230225, | |
0.005191679954528809, | |
0.005208064079284668, | |
0.005244927883148193, | |
0.00516096019744873, | |
0.005188608169555664, | |
0.0052295680046081545, | |
0.00520908784866333, | |
0.0052111358642578124, | |
0.005244927883148193, | |
0.005215231895446777, | |
0.00522649621963501, | |
0.005198847770690918, | |
0.005238783836364746, | |
0.005197824001312256, | |
0.0051998400688171385, | |
0.005238783836364746, | |
0.0051998720169067385, | |
0.005230591773986816, | |
0.005227519989013672, | |
0.005194752216339111, | |
0.005228544235229492 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 187.61083673814093 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.888375945619822e-08, | |
"ram": 3.2192536839023986e-08, | |
"gpu": 3.478927603482618e-07, | |
"total": 4.389690566434841e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2278064.8997138003 | |
} | |
} | |
} | |
} |