IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
c531413 verified
raw
history blame
14.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_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,
"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": 753.004544,
"max_global_vram": 1030.22592,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.873856
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.21251123046875,
"mean": 7.21251123046875,
"stdev": 0.0,
"p50": 7.21251123046875,
"p90": 7.21251123046875,
"p95": 7.21251123046875,
"p99": 7.21251123046875,
"values": [
7.21251123046875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.5450252426995174e-06,
"ram": 8.312602875510796e-07,
"gpu": 1.7219458219993808e-06,
"total": 4.098231352249978e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 885.825536,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 204,
"total": 1.007445049285888,
"mean": 0.004938456123950433,
"stdev": 0.0001315608914874436,
"p50": 0.0048568320274353025,
"p90": 0.005161062431335449,
"p95": 0.005186099314689636,
"p99": 0.0052805528831481935,
"values": [
0.0053340158462524415,
0.005272575855255127,
0.005313536167144775,
0.0051968002319335935,
0.005239808082580567,
0.005273600101470947,
0.005183487892150879,
0.005280767917633057,
0.005213183879852295,
0.005186560153961181,
0.005231616020202637,
0.005171167850494385,
0.005146624088287354,
0.005081088066101074,
0.005132287979125977,
0.005049344062805176,
0.005124095916748047,
0.005108736038208008,
0.004923391819000244,
0.004978687763214112,
0.00506060791015625,
0.0050503678321838375,
0.005102591991424561,
0.005150720119476319,
0.005108736038208008,
0.005156864166259765,
0.005165056228637695,
0.0051363840103149415,
0.005164031982421875,
0.004996096134185791,
0.005033984184265137,
0.0051363840103149415,
0.005167103767395019,
0.0051036162376403805,
0.005139391899108886,
0.00517632007598877,
0.005117951869964599,
0.005163008213043213,
0.0051435518264770505,
0.00506060791015625,
0.005097472190856934,
0.005137407779693603,
0.005089280128479004,
0.005137407779693603,
0.005154816150665284,
0.005037055969238281,
0.0050094079971313476,
0.004965375900268554,
0.004971519947052002,
0.005045248031616211,
0.00517632007598877,
0.004932608127593994,
0.005029888153076172,
0.0050462718009948735,
0.005031936168670655,
0.005023744106292725,
0.0051476478576660155,
0.005161983966827393,
0.005158912181854248,
0.0049530878067016604,
0.004921343803405762,
0.004898816108703613,
0.0048752641677856446,
0.004858880043029785,
0.004859903812408447,
0.004857855796813965,
0.0048568320274353025,
0.004858880043029785,
0.0048568320274353025,
0.004857855796813965,
0.0048568320274353025,
0.004858880043029785,
0.0048568320274353025,
0.0048568320274353025,
0.0048558077812194825,
0.0048558077812194825,
0.004857855796813965,
0.004858880043029785,
0.004859903812408447,
0.004857855796813965,
0.0048558077812194825,
0.004857855796813965,
0.0048527359962463375,
0.004863039970397949,
0.004860928058624267,
0.004857855796813965,
0.0048527359962463375,
0.00485478401184082,
0.0048527359962463375,
0.004858880043029785,
0.0048558077812194825,
0.004859903812408447,
0.0048527359962463375,
0.004853759765625,
0.0048527359962463375,
0.004857855796813965,
0.004882431983947754,
0.004888576030731201,
0.004876287937164306,
0.004842495918273926,
0.0048455681800842285,
0.004846591949462891,
0.004841472148895264,
0.004842495918273926,
0.004853759765625,
0.004853759765625,
0.004853759765625,
0.004851712226867676,
0.0048558077812194825,
0.00485478401184082,
0.00485478401184082,
0.004858880043029785,
0.004851712226867676,
0.00485587215423584,
0.0048527359962463375,
0.004853759765625,
0.0048558077812194825,
0.004851712226867676,
0.004851712226867676,
0.0048558077812194825,
0.0048568320274353025,
0.0048527359962463375,
0.004977663993835449,
0.0050432000160217285,
0.005187583923339844,
0.005178368091583252,
0.0050124797821044925,
0.00485478401184082,
0.0048558077812194825,
0.00485478401184082,
0.004853759765625,
0.004853759765625,
0.00485478401184082,
0.0048558077812194825,
0.00485478401184082,
0.00485478401184082,
0.004853759765625,
0.0048558077812194825,
0.004851712226867676,
0.004853759765625,
0.00485478401184082,
0.00485478401184082,
0.0048558077812194825,
0.004850687980651855,
0.004853759765625,
0.004859903812408447,
0.004853759765625,
0.004853759765625,
0.00485478401184082,
0.0048568320274353025,
0.004851712226867676,
0.004851712226867676,
0.0048527359962463375,
0.0048527359962463375,
0.004850687980651855,
0.004853759765625,
0.004851712226867676,
0.004853759765625,
0.0048558077812194825,
0.0048568320274353025,
0.004853759765625,
0.004858880043029785,
0.0048558077812194825,
0.0048568320274353025,
0.0048527359962463375,
0.0048568320274353025,
0.0048496642112731934,
0.004850687980651855,
0.004851712226867676,
0.0048568320274353025,
0.0048496642112731934,
0.004853759765625,
0.004853759765625,
0.004850687980651855,
0.0048537921905517575,
0.0048527359962463375,
0.004850687980651855,
0.004853759765625,
0.004850687980651855,
0.004850687980651855,
0.004851712226867676,
0.004853759765625,
0.0048527359962463375,
0.0048568320274353025,
0.00485478401184082,
0.0048527359962463375,
0.0048527359962463375,
0.0048558077812194825,
0.0048558077812194825,
0.004853759765625,
0.004850687980651855,
0.004848639965057373,
0.0048527359962463375,
0.004850687980651855,
0.00485478401184082,
0.004857855796813965,
0.00485478401184082,
0.0048558077812194825,
0.00485478401184082,
0.00485478401184082,
0.0048568320274353025,
0.004851712226867676,
0.0048527359962463375,
0.004853759765625
]
},
"throughput": {
"unit": "samples/s",
"value": 202.4924338499675
},
"energy": {
"unit": "kWh",
"cpu": 5.7610100139112095e-08,
"ram": 3.1500539746433644e-08,
"gpu": 3.666394442547182e-07,
"total": 4.5575008414026397e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2194185.0035780463
}
}
}
}