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
105eb68
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-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.650048, | |
"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.4076865234375, | |
"mean": 7.4076865234375, | |
"stdev": 0.0, | |
"p50": 7.4076865234375, | |
"p90": 7.4076865234375, | |
"p95": 7.4076865234375, | |
"p99": 7.4076865234375, | |
"values": [ | |
7.4076865234375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4722161145841362e-06, | |
"ram": 7.912407896975165e-07, | |
"gpu": 1.8250014600009606e-06, | |
"total": 4.0884583642826135e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1037.549568, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 189, | |
"total": 1.000086558818817, | |
"mean": 0.005291463274173635, | |
"stdev": 0.000189325971660758, | |
"p50": 0.005263391971588135, | |
"p90": 0.005431500911712647, | |
"p95": 0.005605785465240478, | |
"p99": 0.0062502462577819825, | |
"values": [ | |
0.005662720203399658, | |
0.005587967872619629, | |
0.005553215980529785, | |
0.005673984050750733, | |
0.005583871841430664, | |
0.005458943843841553, | |
0.005412864208221436, | |
0.005371903896331787, | |
0.005879871845245362, | |
0.00532371187210083, | |
0.005102591991424561, | |
0.005331967830657959, | |
0.005349376201629639, | |
0.005264383792877197, | |
0.005287936210632324, | |
0.005314559936523438, | |
0.0052930560111999515, | |
0.0052715520858764645, | |
0.005272575855255127, | |
0.005251071929931641, | |
0.005338111877441406, | |
0.005260287761688232, | |
0.005213183879852295, | |
0.005372928142547607, | |
0.005192704200744629, | |
0.0051435518264770505, | |
0.0052111358642578124, | |
0.005276671886444092, | |
0.005223423957824707, | |
0.005321728229522705, | |
0.005310463905334473, | |
0.005278719902038574, | |
0.005255167961120606, | |
0.0053309440612792965, | |
0.005259263992309571, | |
0.005286911964416504, | |
0.0052285118103027346, | |
0.005302271842956543, | |
0.005253119945526123, | |
0.005362688064575195, | |
0.005224512100219726, | |
0.005234687805175781, | |
0.005279744148254394, | |
0.005372928142547607, | |
0.005310527801513672, | |
0.005269567966461181, | |
0.005332992076873779, | |
0.005342207908630371, | |
0.0053043198585510255, | |
0.005224448204040527, | |
0.005298240184783936, | |
0.005254144191741943, | |
0.005213119983673096, | |
0.005230591773986816, | |
0.005402624130249023, | |
0.005246975898742676, | |
0.0052674560546875, | |
0.005271520137786865, | |
0.0053043198585510255, | |
0.005135359764099121, | |
0.005453760147094726, | |
0.0053975038528442385, | |
0.005234687805175781, | |
0.005243904113769531, | |
0.00521830415725708, | |
0.005248000144958496, | |
0.006293471813201904, | |
0.005371903896331787, | |
0.005298175811767578, | |
0.005449728012084961, | |
0.005268479824066162, | |
0.005393407821655274, | |
0.005228544235229492, | |
0.005502975940704345, | |
0.005331935882568359, | |
0.005296127796173096, | |
0.005321728229522705, | |
0.0052899842262268066, | |
0.005282815933227539, | |
0.0052899842262268066, | |
0.005287936210632324, | |
0.005436416149139404, | |
0.005243904113769531, | |
0.005305344104766845, | |
0.005242879867553711, | |
0.005763072013854981, | |
0.005325823783874512, | |
0.005430272102355957, | |
0.005232639789581299, | |
0.005361663818359375, | |
0.005252096176147461, | |
0.005288959980010987, | |
0.005288959980010987, | |
0.005261312007904053, | |
0.005206016063690186, | |
0.00506982421875, | |
0.005017600059509277, | |
0.0050032639503479, | |
0.005064703941345215, | |
0.005071872234344482, | |
0.005025792121887207, | |
0.0050206718444824215, | |
0.005053440093994141, | |
0.005035007953643799, | |
0.0050032639503479, | |
0.005037055969238281, | |
0.005204991817474365, | |
0.005214176177978516, | |
0.0052111358642578124, | |
0.005237760066986084, | |
0.0051968002319335935, | |
0.005212160110473632, | |
0.005191679954528809, | |
0.005253056049346924, | |
0.005246975898742676, | |
0.005198912143707275, | |
0.005253056049346924, | |
0.005278719902038574, | |
0.005231616020202637, | |
0.005235712051391602, | |
0.00516096019744873, | |
0.005216256141662597, | |
0.005286911964416504, | |
0.005189631938934326, | |
0.005175295829772949, | |
0.006244351863861084, | |
0.00530841588973999, | |
0.005232575893402099, | |
0.005550079822540284, | |
0.00530841588973999, | |
0.0052111358642578124, | |
0.005275648117065429, | |
0.005210112094879151, | |
0.00520908784866333, | |
0.005395391941070557, | |
0.005194752216339111, | |
0.005251071929931641, | |
0.005282815933227539, | |
0.005882880210876465, | |
0.005617663860321045, | |
0.005285888195037842, | |
0.005245952129364013, | |
0.005244927883148193, | |
0.005245952129364013, | |
0.005263391971588135, | |
0.005235712051391602, | |
0.005262400150299072, | |
0.005174272060394287, | |
0.006393856048583985, | |
0.0052930560111999515, | |
0.005284863948822022, | |
0.005339136123657226, | |
0.005249023914337158, | |
0.005307392120361328, | |
0.005237760066986084, | |
0.005182464122772217, | |
0.005244927883148193, | |
0.0057415680885314945, | |
0.005319680213928223, | |
0.005082111835479736, | |
0.005053440093994141, | |
0.005044223785400391, | |
0.005014527797698975, | |
0.005282815933227539, | |
0.005264383792877197, | |
0.005277696132659912, | |
0.005307392120361328, | |
0.005234687805175781, | |
0.005295104026794434, | |
0.0052295680046081545, | |
0.005346303939819336, | |
0.005251071929931641, | |
0.005255167961120606, | |
0.005307392120361328, | |
0.0052163200378417965, | |
0.005298143863677979, | |
0.0052674560546875, | |
0.005288959980010987, | |
0.005253119945526123, | |
0.00526643180847168, | |
0.005198847770690918, | |
0.0051066880226135255, | |
0.005210112094879151, | |
0.0051066880226135255, | |
0.0051660799980163576, | |
0.005119999885559082, | |
0.005192704200744629, | |
0.0051814718246459964, | |
0.005109792232513428 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 188.98364179919014 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.207637238773224e-08, | |
"ram": 3.39418735851927e-08, | |
"gpu": 3.791367454507787e-07, | |
"total": 4.7515499142370363e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2104576.4393713027 | |
} | |
} | |
} | |
} |