IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
7740b91 verified
raw
history blame
13.5 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.3.0+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.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.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.41.0",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 875.630592,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 204,
"total": 1.0277408251762388,
"mean": 0.005037945221452152,
"stdev": 0.00020909021071119547,
"p50": 0.004947968006134033,
"p90": 0.005266819286346436,
"p95": 0.005339699125289917,
"p99": 0.005833369722366332,
"values": [
0.005590015888214111,
0.0052633600234985355,
0.005340159893035889,
0.005337088108062744,
0.005279744148254394,
0.005272575855255127,
0.005310463905334473,
0.005276671886444092,
0.005182464122772217,
0.005188608169555664,
0.005188608169555664,
0.005311488151550293,
0.005273600101470947,
0.005212160110473632,
0.0051660799980163576,
0.005156864166259765,
0.0050769920349121095,
0.005030911922454834,
0.005132287979125977,
0.005185472011566162,
0.005240896224975586,
0.005248000144958496,
0.005351424217224121,
0.005214208126068115,
0.005192704200744629,
0.005182464122772217,
0.005155839920043945,
0.005214208126068115,
0.005214208126068115,
0.005221375942230225,
0.005230591773986816,
0.005189631938934326,
0.005388224124908447,
0.005195775985717774,
0.005190656185150146,
0.005239808082580567,
0.00521727991104126,
0.005152768135070801,
0.005171199798583984,
0.005066751956939697,
0.005059584140777588,
0.005107711791992187,
0.005155839920043945,
0.005381120204925537,
0.005207104206085205,
0.005190656185150146,
0.005165056228637695,
0.00521014404296875,
0.005283840179443359,
0.005212160110473632,
0.005237760066986084,
0.005246975898742676,
0.005152768135070801,
0.005139455795288086,
0.005141503810882568,
0.005187583923339844,
0.005173247814178467,
0.005141503810882568,
0.005175295829772949,
0.0051435518264770505,
0.005083136081695557,
0.00511078405380249,
0.005139455795288086,
0.005173247814178467,
0.005234687805175781,
0.005231616020202637,
0.0051138558387756345,
0.00511897611618042,
0.005146624088287354,
0.005125120162963868,
0.005153791904449463,
0.005126143932342529,
0.005132287979125977,
0.005132287979125977,
0.0051333122253417966,
0.0052674241065979,
0.005265408039093018,
0.005204991817474365,
0.005260287761688232,
0.005281792163848877,
0.005153791904449463,
0.005185535907745361,
0.00515993595123291,
0.005079040050506592,
0.005145599842071533,
0.005179391860961914,
0.0050063362121582035,
0.005047296047210693,
0.0049192957878112795,
0.0048855037689208985,
0.004981760025024414,
0.005130239963531494,
0.0050954241752624516,
0.004900864124298096,
0.00487014389038086,
0.00485478401184082,
0.004859903812408447,
0.005181439876556396,
0.004976640224456787,
0.00557260799407959,
0.005866496086120605,
0.005840896129608154,
0.005922815799713135,
0.005574656009674072,
0.005356544017791748,
0.005178368091583252,
0.004880383968353271,
0.004878335952758789,
0.005086207866668701,
0.005114880084991455,
0.0048558077812194825,
0.0048558077812194825,
0.00486195182800293,
0.004858880043029785,
0.004858880043029785,
0.0048568320274353025,
0.004859903812408447,
0.004859903812408447,
0.0048558077812194825,
0.00485478401184082,
0.004858880043029785,
0.004857855796813965,
0.0048558077812194825,
0.00485478401184082,
0.004858880043029785,
0.0048568320274353025,
0.004859903812408447,
0.004859903812408447,
0.00486297607421875,
0.004857855796813965,
0.004858880043029785,
0.00485478401184082,
0.00485478401184082,
0.0048558077812194825,
0.004858880043029785,
0.004860928058624267,
0.004857855796813965,
0.0048568320274353025,
0.004857855796813965,
0.004857855796813965,
0.004859903812408447,
0.004858880043029785,
0.004857855796813965,
0.0048568320274353025,
0.0048568320274353025,
0.004859903812408447,
0.004865024089813232,
0.004858880043029785,
0.004860928058624267,
0.004859903812408447,
0.0048568320274353025,
0.004860928058624267,
0.0048568320274353025,
0.004859903812408447,
0.004857855796813965,
0.004857855796813965,
0.004853759765625,
0.0048568320274353025,
0.004857855796813965,
0.004857855796813965,
0.0048558077812194825,
0.004857855796813965,
0.0048579201698303225,
0.0048568320274353025,
0.0048568320274353025,
0.004858880043029785,
0.004859903812408447,
0.004859903812408447,
0.0048558077812194825,
0.0048568320274353025,
0.004857855796813965,
0.004858880043029785,
0.0048568320274353025,
0.004858943939208984,
0.0048558077812194825,
0.00486195182800293,
0.0048558077812194825,
0.00485478401184082,
0.004858880043029785,
0.0048558077812194825,
0.0048558077812194825,
0.004858880043029785,
0.004860928058624267,
0.0048568320274353025,
0.004860928058624267,
0.0048568320274353025,
0.004857855796813965,
0.00486195182800293,
0.004857855796813965,
0.0048578882217407224,
0.004857855796813965,
0.00486195182800293,
0.004859903812408447,
0.004857855796813965,
0.0048558077812194825,
0.00485478401184082,
0.004857855796813965,
0.0048558077812194825,
0.004858880043029785,
0.0048527359962463375,
0.0048568320274353025,
0.004858880043029785,
0.00486195182800293,
0.0048568320274353025
]
},
"throughput": {
"unit": "samples/s",
"value": 198.49362310290405
},
"energy": {
"unit": "kWh",
"cpu": 5.761963282116305e-08,
"ram": 3.150431834824904e-08,
"gpu": 3.25803457707546e-07,
"total": 4.149274088769581e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2410060.1180013595
}
}
}
}