IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
fcea32d verified
raw
history blame
14.5 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_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.293824,
"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.3.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 757.53472,
"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.20978759765625,
"mean": 7.20978759765625,
"stdev": 0.0,
"p50": 7.20978759765625,
"p90": 7.20978759765625,
"p95": 7.20978759765625,
"p99": 7.20978759765625,
"values": [
7.20978759765625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.552047828833262e-06,
"ram": 8.348593712324259e-07,
"gpu": 1.6380568660014777e-06,
"total": 4.024964066067166e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 890.085376,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 201,
"total": 1.007054013252258,
"mean": 0.00501021897140427,
"stdev": 0.00015549395632616904,
"p50": 0.005007359981536865,
"p90": 0.005192704200744629,
"p95": 0.00522649621963501,
"p99": 0.005337088108062744,
"values": [
0.005286911964416504,
0.005237760066986084,
0.00522649621963501,
0.005350399971008301,
0.005204991817474365,
0.005337088108062744,
0.005237760066986084,
0.005223423957824707,
0.005175295829772949,
0.005246975898742676,
0.005185535907745361,
0.0051036162376403805,
0.005130239963531494,
0.005086207866668701,
0.0051773438453674315,
0.005150720119476319,
0.005181439876556396,
0.005094399929046631,
0.005039103984832764,
0.004939775943756103,
0.00502784013748169,
0.00506982421875,
0.005123072147369385,
0.005223423957824707,
0.005175295829772949,
0.005153791904449463,
0.0051701760292053225,
0.0051333122253417966,
0.005141503810882568,
0.005000192165374756,
0.00501043176651001,
0.0051660799980163576,
0.005156864166259765,
0.005139455795288086,
0.005197824001312256,
0.005165056228637695,
0.005161983966827393,
0.005206016063690186,
0.00516096019744873,
0.005066751956939697,
0.0051435518264770505,
0.0051660799980163576,
0.005189631938934326,
0.005158912181854248,
0.005179391860961914,
0.0050165758132934574,
0.004996096134185791,
0.004955135822296143,
0.0050135040283203125,
0.005064703941345215,
0.005038080215454102,
0.004918272018432617,
0.0051138558387756345,
0.0051066880226135255,
0.00510975980758667,
0.005066751956939697,
0.005220352172851562,
0.005186560153961181,
0.005156864166259765,
0.005303296089172363,
0.005165056228637695,
0.005186560153961181,
0.005213183879852295,
0.005051392078399658,
0.004989952087402344,
0.005150720119476319,
0.0051998720169067385,
0.005098495960235596,
0.005067776203155518,
0.00586348819732666,
0.005089280128479004,
0.005138432025909424,
0.005007359981536865,
0.005048319816589355,
0.00501964807510376,
0.005029888153076172,
0.005033984184265137,
0.005203872203826904,
0.0051066880226135255,
0.0050165758132934574,
0.005053440093994141,
0.005067776203155518,
0.005131328105926513,
0.005049344062805176,
0.0050462718009948735,
0.005124095916748047,
0.005035007953643799,
0.005023744106292725,
0.005184512138366699,
0.005185535907745361,
0.005172224044799805,
0.005253119945526123,
0.005165056228637695,
0.005179391860961914,
0.0051476478576660155,
0.005112832069396973,
0.005100543975830078,
0.005150720119476319,
0.00510975980758667,
0.004959231853485108,
0.005089280128479004,
0.005192704200744629,
0.005088255882263183,
0.004992000102996826,
0.004939775943756103,
0.004866047859191895,
0.004872191905975342,
0.005005311965942383,
0.005023744106292725,
0.004876287937164306,
0.00487014389038086,
0.004868095874786377,
0.004866047859191895,
0.00486297607421875,
0.004869120121002197,
0.004868095874786377,
0.00487014389038086,
0.004869120121002197,
0.004994048118591309,
0.005014527797698975,
0.005098495960235596,
0.005292031764984131,
0.005172255992889404,
0.004935679912567138,
0.0048876161575317385,
0.004867072105407715,
0.004868095874786377,
0.004869120121002197,
0.004868095874786377,
0.004868095874786377,
0.004867072105407715,
0.00487014389038086,
0.004867072105407715,
0.004869120121002197,
0.004868095874786377,
0.004866047859191895,
0.004868095874786377,
0.004867072105407715,
0.004868095874786377,
0.00487014389038086,
0.004863999843597412,
0.00487014389038086,
0.004866047859191895,
0.004869120121002197,
0.004866047859191895,
0.004866047859191895,
0.004865024089813232,
0.004868095874786377,
0.004863999843597412,
0.004869120121002197,
0.00487116813659668,
0.004866047859191895,
0.004868095874786377,
0.004863999843597412,
0.004869120121002197,
0.004866047859191895,
0.00487014389038086,
0.004868095874786377,
0.004866047859191895,
0.00485478401184082,
0.0048568320274353025,
0.004858880043029785,
0.004859903812408447,
0.004859903812408447,
0.004857855796813965,
0.004851712226867676,
0.0048527359962463375,
0.00485478401184082,
0.004857855796813965,
0.0048558077812194825,
0.004851712226867676,
0.0048568320274353025,
0.004858880043029785,
0.004854847908020019,
0.004858880043029785,
0.00485478401184082,
0.00485478401184082,
0.0048568320274353025,
0.0048558077812194825,
0.004857855796813965,
0.0048558077812194825,
0.004857855796813965,
0.004860928058624267,
0.0048568320274353025,
0.00485478401184082,
0.0048558077812194825,
0.00485478401184082,
0.004857855796813965,
0.004859903812408447,
0.004851712226867676,
0.004858880043029785,
0.004853759765625,
0.0048558077812194825,
0.00485478401184082,
0.004857855796813965,
0.004851712226867676,
0.00485478401184082,
0.004860928058624267,
0.004860928058624267,
0.0048568320274353025,
0.0048558077812194825
]
},
"throughput": {
"unit": "samples/s",
"value": 199.5920748588996
},
"energy": {
"unit": "kWh",
"cpu": 5.764767324524607e-08,
"ram": 3.1520536434551506e-08,
"gpu": 3.606017035754745e-07,
"total": 4.497699132552721e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2223359.0343168164
}
}
}
}