IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
428ccb1 verified
raw
history blame
13.6 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.3.1+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "image-classification",
"library": "transformers",
"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": {},
"hub_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,
"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",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.285632,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.219-208.866.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.2.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 876.548096,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 207,
"total": 1.0213406672477725,
"mean": 0.004934012885254938,
"stdev": 0.00010971968406922971,
"p50": 0.004866047859191895,
"p90": 0.005087027072906494,
"p95": 0.005159731388092041,
"p99": 0.005227684068679809,
"values": [
0.00551526403427124,
0.005129216194152832,
0.0051701760292053225,
0.0051660799980163576,
0.005089280128479004,
0.005228544235229492,
0.005096447944641113,
0.0050769920349121095,
0.0051701760292053225,
0.005129216194152832,
0.005086207866668701,
0.005213183879852295,
0.005134335994720459,
0.005062655925750732,
0.0051773438453674315,
0.005028863906860351,
0.0050657281875610355,
0.004866047859191895,
0.004866047859191895,
0.004992000102996826,
0.005058559894561767,
0.005062655925750732,
0.005091328144073487,
0.005088255882263183,
0.005088255882263183,
0.005039103984832764,
0.0050022401809692385,
0.0049797120094299315,
0.005173247814178467,
0.00486297607421875,
0.00486297607421875,
0.00486297607421875,
0.004859903812408447,
0.004865024089813232,
0.004857855796813965,
0.004860928058624267,
0.004996096134185791,
0.00486297607421875,
0.004860928058624267,
0.00486297607421875,
0.004997119903564453,
0.004866047859191895,
0.00486297607421875,
0.00486297607421875,
0.00486195182800293,
0.004865024089813232,
0.004980735778808594,
0.004865024089813232,
0.005040128231048584,
0.00516096019744873,
0.0050841598510742185,
0.005058559894561767,
0.005028863906860351,
0.005064703941345215,
0.004964352130889893,
0.0050769920349121095,
0.005056511878967285,
0.00511897611618042,
0.00501043176651001,
0.005057536125183106,
0.005156864166259765,
0.004927487850189209,
0.004908031940460205,
0.004943871974945068,
0.0049797120094299315,
0.005311488151550293,
0.004981760025024414,
0.004908031940460205,
0.004993023872375488,
0.005031936168670655,
0.0049192957878112795,
0.0050206718444824215,
0.005045248031616211,
0.004976640224456787,
0.0049489917755126955,
0.005055488109588623,
0.0050800638198852536,
0.00505241584777832,
0.005054463863372802,
0.005049344062805176,
0.004988927841186524,
0.005040128231048584,
0.00486297607421875,
0.004869120121002197,
0.004860928058624267,
0.005026815891265869,
0.004860928058624267,
0.00486195182800293,
0.0050094079971313476,
0.004868095874786377,
0.004860928058624267,
0.004865024089813232,
0.00486195182800293,
0.004866047859191895,
0.004867072105407715,
0.004865024089813232,
0.004866047859191895,
0.004863999843597412,
0.00486195182800293,
0.004865024089813232,
0.004867072105407715,
0.004859903812408447,
0.004868095874786377,
0.004863999843597412,
0.00486297607421875,
0.004863999843597412,
0.004858880043029785,
0.00486195182800293,
0.005214208126068115,
0.0050135040283203125,
0.004866047859191895,
0.00486195182800293,
0.004865024089813232,
0.004859903812408447,
0.004863999843597412,
0.004866047859191895,
0.00486195182800293,
0.004867072105407715,
0.004867072105407715,
0.00486297607421875,
0.004860928058624267,
0.004863999843597412,
0.00486195182800293,
0.004863999843597412,
0.00486195182800293,
0.004866047859191895,
0.004860928058624267,
0.004865024089813232,
0.00486195182800293,
0.004968448162078858,
0.004867072105407715,
0.00486195182800293,
0.00486297607421875,
0.004863999843597412,
0.00486297607421875,
0.004857855796813965,
0.005007359981536865,
0.004872191905975342,
0.004894720077514648,
0.004891647815704346,
0.00487116813659668,
0.004866047859191895,
0.00486195182800293,
0.004867072105407715,
0.00486297607421875,
0.004868095874786377,
0.00486195182800293,
0.004867072105407715,
0.004860928058624267,
0.00486195182800293,
0.00486297607421875,
0.004866047859191895,
0.004860928058624267,
0.00486195182800293,
0.004868095874786377,
0.004860928058624267,
0.004975615978240967,
0.00486297607421875,
0.004866047859191895,
0.004860928058624267,
0.004863999843597412,
0.004865024089813232,
0.0050135040283203125,
0.00486195182800293,
0.004867072105407715,
0.004863999843597412,
0.00486195182800293,
0.00486297607421875,
0.00486297607421875,
0.004867072105407715,
0.004863999843597412,
0.00486297607421875,
0.00486297607421875,
0.004863999843597412,
0.004866047859191895,
0.004863999843597412,
0.004865024089813232,
0.004865024089813232,
0.004866047859191895,
0.004863999843597412,
0.00486297607421875,
0.00486195182800293,
0.00486297607421875,
0.004997119903564453,
0.004859903812408447,
0.00486297607421875,
0.004858880043029785,
0.00486195182800293,
0.004860928058624267,
0.0050022401809692385,
0.00486195182800293,
0.00486297607421875,
0.004865024089813232,
0.004865024089813232,
0.004863999843597412,
0.00486195182800293,
0.004863999843597412,
0.00486297607421875,
0.004863999843597412,
0.004865024089813232,
0.00486195182800293,
0.00486297607421875,
0.00486297607421875,
0.00486195182800293,
0.00486297607421875,
0.00486297607421875,
0.004867072105407715
]
},
"throughput": {
"unit": "samples/s",
"value": 202.67478485685604
},
"energy": {
"unit": "kWh",
"cpu": 5.7719376383485647e-08,
"ram": 3.1560688128048036e-08,
"gpu": 3.5501213235071304e-07,
"total": 4.4429219686224676e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2250771.0175023647
}
}
}
}