IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
424395b 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.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.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.0",
"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": 875.986944,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 203,
"total": 1.0098341174125658,
"mean": 0.004974552302524961,
"stdev": 0.0001499058851268515,
"p50": 0.00485478401184082,
"p90": 0.005183487892150879,
"p95": 0.005208064079284668,
"p99": 0.005277471494674682,
"values": [
0.005576704025268555,
0.005051392078399658,
0.00496127986907959,
0.00506060791015625,
0.004974592208862305,
0.004964352130889893,
0.00496230411529541,
0.00499507188796997,
0.0049500160217285155,
0.0049090561866760255,
0.0049500160217285155,
0.0052408318519592285,
0.0048496642112731934,
0.004846591949462891,
0.004881408214569092,
0.004925439834594727,
0.004847616195678711,
0.004844543933868409,
0.004844543933868409,
0.004844543933868409,
0.004850687980651855,
0.004846591949462891,
0.005102591991424561,
0.005186560153961181,
0.00517632007598877,
0.0051476478576660155,
0.005141503810882568,
0.005144576072692871,
0.005193727970123291,
0.005169151782989502,
0.005204991817474365,
0.005178368091583252,
0.005191679954528809,
0.005156864166259765,
0.005208064079284668,
0.005134335994720459,
0.005189631938934326,
0.005181439876556396,
0.005129216194152832,
0.005023744106292725,
0.005032959938049316,
0.0050657281875610355,
0.005099520206451416,
0.005045248031616211,
0.005041152000427246,
0.0051333122253417966,
0.005146624088287354,
0.005222400188446045,
0.0052367358207702636,
0.005183487892150879,
0.005249023914337158,
0.005185535907745361,
0.005150720119476319,
0.005108736038208008,
0.005149695873260498,
0.005208064079284668,
0.005132319927215576,
0.00517632007598877,
0.005161983966827393,
0.005130239963531494,
0.005121024131774903,
0.005070847988128662,
0.00511897611618042,
0.00510975980758667,
0.005238783836364746,
0.005138432025909424,
0.005078015804290771,
0.00506879997253418,
0.0051660799980163576,
0.005114880084991455,
0.005094399929046631,
0.005148672103881836,
0.0051333122253417966,
0.0051138558387756345,
0.005164031982421875,
0.005277696132659912,
0.005184512138366699,
0.00515174388885498,
0.005278719902038574,
0.005138400077819824,
0.005149695873260498,
0.005183487892150879,
0.005129216194152832,
0.005064703941345215,
0.0051435518264770505,
0.005094399929046631,
0.005067776203155518,
0.005005311965942383,
0.004887551784515381,
0.0048558077812194825,
0.005099520206451416,
0.005026815891265869,
0.004907008171081543,
0.004857855796813965,
0.0048568320274353025,
0.004846591949462891,
0.004851712226867676,
0.0048496642112731934,
0.0048793601989746095,
0.005021696090698242,
0.00505241584777832,
0.004958208084106445,
0.005115903854370117,
0.005129216194152832,
0.00525932788848877,
0.005178368091583252,
0.005032959938049316,
0.004877312183380127,
0.005266464233398437,
0.0051998720169067385,
0.0048527359962463375,
0.0048527359962463375,
0.004851712226867676,
0.00485478401184082,
0.0048527359962463375,
0.004851712226867676,
0.0048496642112731934,
0.004851712226867676,
0.0048527359962463375,
0.004848639965057373,
0.004846591949462891,
0.004847616195678711,
0.004850687980651855,
0.0048496642112731934,
0.004851712226867676,
0.0048496642112731934,
0.004850687980651855,
0.004850687980651855,
0.004851712226867676,
0.004850687980651855,
0.0048527359962463375,
0.004851712226867676,
0.00485478401184082,
0.004853759765625,
0.004848639965057373,
0.004851712226867676,
0.0048527359962463375,
0.004848639965057373,
0.0048527359962463375,
0.004850687980651855,
0.0048558077812194825,
0.0048527359962463375,
0.004851712226867676,
0.0048527359962463375,
0.004851712226867676,
0.004850687980651855,
0.0048527359962463375,
0.004848639965057373,
0.004853759765625,
0.00485478401184082,
0.004847616195678711,
0.004846591949462891,
0.004847616195678711,
0.004848639965057373,
0.00485478401184082,
0.004850687980651855,
0.004850687980651855,
0.004851712226867676,
0.0048527359962463375,
0.0048496642112731934,
0.00485478401184082,
0.004850687980651855,
0.004851712226867676,
0.004848639965057373,
0.004851712226867676,
0.004851712226867676,
0.0048527359962463375,
0.004850687980651855,
0.004850687980651855,
0.004853759765625,
0.004853759765625,
0.00484764814376831,
0.00485478401184082,
0.00485478401184082,
0.004851712226867676,
0.0048527359962463375,
0.004847616195678711,
0.004847616195678711,
0.004851712226867676,
0.004850687980651855,
0.0048527359962463375,
0.0048568320274353025,
0.004850687980651855,
0.00485478401184082,
0.004848639965057373,
0.0048527359962463375,
0.004848639965057373,
0.004850687980651855,
0.0048455681800842285,
0.004850687980651855,
0.0048527359962463375,
0.0048527359962463375,
0.004853759765625,
0.004851712226867676,
0.004848639965057373,
0.004850687980651855,
0.004853759765625,
0.004851712226867676,
0.004851712226867676,
0.0048527359962463375,
0.0048496642112731934,
0.0048527359962463375,
0.004848639965057373
]
},
"throughput": {
"unit": "samples/s",
"value": 201.02311508362763
},
"energy": {
"unit": "kWh",
"cpu": 5.773053322948001e-08,
"ram": 3.147193458595646e-08,
"gpu": 3.1507755814150783e-07,
"total": 4.0428002595694426e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2473533.0360013875
}
}
}
}