IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
c310ef2 verified
raw
history blame
13.4 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": {},
"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.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": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 882.348032,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 201,
"total": 1.0035343947410584,
"mean": 0.004992708431547553,
"stdev": 0.0001636613610732973,
"p50": 0.004874239921569825,
"p90": 0.005215231895446777,
"p95": 0.005257152080535889,
"p99": 0.005547008037567139,
"values": [
0.005547008037567139,
0.005228544235229492,
0.005311488151550293,
0.005215231895446777,
0.0050657281875610355,
0.005152768135070801,
0.005055488109588623,
0.004984831809997559,
0.004966400146484375,
0.00497049617767334,
0.004935679912567138,
0.005660672187805176,
0.004874239921569825,
0.004884479999542236,
0.0049162240028381345,
0.004866047859191895,
0.004869120121002197,
0.004868095874786377,
0.004866047859191895,
0.0048855037689208985,
0.004865024089813232,
0.004868095874786377,
0.004866047859191895,
0.00486195182800293,
0.00486297607421875,
0.004960256099700928,
0.004868095874786377,
0.0049827837944030765,
0.004867072105407715,
0.004863999843597412,
0.004863999843597412,
0.004866047859191895,
0.00486195182800293,
0.004863999843597412,
0.004863999843597412,
0.004863999843597412,
0.004863999843597412,
0.004865024089813232,
0.004868095874786377,
0.004863999843597412,
0.00486297607421875,
0.004867072105407715,
0.00486297607421875,
0.004866047859191895,
0.004867072105407715,
0.004868095874786377,
0.004866047859191895,
0.004957183837890625,
0.004863999843597412,
0.004985856056213379,
0.0048895998001098635,
0.004898816108703613,
0.0048895998001098635,
0.00486297607421875,
0.00486195182800293,
0.00486297607421875,
0.005606400012969971,
0.005273600101470947,
0.005183487892150879,
0.00517632007598877,
0.00511897611618042,
0.00517632007598877,
0.005198847770690918,
0.00535756778717041,
0.0052460160255432126,
0.005220352172851562,
0.0051814718246459964,
0.005262335777282715,
0.005291007995605469,
0.005145599842071533,
0.005070847988128662,
0.00531660795211792,
0.00521830415725708,
0.005231616020202637,
0.005197824001312256,
0.0051476478576660155,
0.005158912181854248,
0.005178368091583252,
0.005157887935638428,
0.005008384227752686,
0.005054463863372802,
0.0051363840103149415,
0.005137407779693603,
0.005145599842071533,
0.005208064079284668,
0.0051333122253417966,
0.0050657281875610355,
0.0051138558387756345,
0.005169151782989502,
0.005107711791992187,
0.005228544235229492,
0.005326848030090332,
0.0051333122253417966,
0.005089280128479004,
0.005180416107177735,
0.005232639789581299,
0.005194752216339111,
0.005246975898742676,
0.0052070398330688475,
0.005220352172851562,
0.005257152080535889,
0.005163008213043213,
0.005153791904449463,
0.00517632007598877,
0.005203968048095703,
0.0051476478576660155,
0.0050432000160217285,
0.005169151782989502,
0.005186560153961181,
0.005079040050506592,
0.0051435518264770505,
0.005142528057098389,
0.0049162240028381345,
0.004876287937164306,
0.004981760025024414,
0.005058559894561767,
0.0049909758567810054,
0.00486195182800293,
0.004865024089813232,
0.00486195182800293,
0.004869120121002197,
0.004866047859191895,
0.004863999843597412,
0.004860928058624267,
0.004965375900268554,
0.005025792121887207,
0.0050800638198852536,
0.005132287979125977,
0.0050954241752624516,
0.005195807933807373,
0.005127168178558349,
0.005124095916748047,
0.005049344062805176,
0.004866047859191895,
0.004960256099700928,
0.004865024089813232,
0.004866047859191895,
0.004866047859191895,
0.00486297607421875,
0.00486297607421875,
0.004867072105407715,
0.004865024089813232,
0.004868095874786377,
0.00486297607421875,
0.004867072105407715,
0.00486297607421875,
0.004863999843597412,
0.004865024089813232,
0.004863999843597412,
0.004865024089813232,
0.00486195182800293,
0.00486195182800293,
0.004863999843597412,
0.004866047859191895,
0.004992000102996826,
0.00486297607421875,
0.004964352130889893,
0.00486195182800293,
0.004865024089813232,
0.00486297607421875,
0.004863999843597412,
0.004863999843597412,
0.004863999843597412,
0.004867072105407715,
0.00486195182800293,
0.004867072105407715,
0.004863999843597412,
0.00486297607421875,
0.004863999843597412,
0.004863999843597412,
0.00486297607421875,
0.004866047859191895,
0.004865024089813232,
0.004858880043029785,
0.004865024089813232,
0.004859903812408447,
0.005025792121887207,
0.004865024089813232,
0.005023744106292725,
0.00486195182800293,
0.004863999843597412,
0.00486297607421875,
0.004863999843597412,
0.00486195182800293,
0.004859903812408447,
0.004866047859191895,
0.004868095874786377,
0.004866047859191895,
0.004865024089813232,
0.004865024089813232,
0.00486195182800293,
0.004865024089813232,
0.004866047859191895,
0.004866047859191895,
0.004863999843597412,
0.00486195182800293,
0.004865024089813232,
0.004863999843597412,
0.005026815891265869,
0.005035007953643799,
0.004894720077514648
]
},
"throughput": {
"unit": "samples/s",
"value": 200.2920886950407
},
"energy": {
"unit": "kWh",
"cpu": 5.7860616478812016e-08,
"ram": 3.163804558443914e-08,
"gpu": 3.43761465109004e-07,
"total": 4.332601271722551e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2308082.228860218
}
}
}
}