cuda
/
cuda_inference_transformers_image-classification_google
/vit-base-patch16-224
/benchmark.json

IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
9b6da53
verified
{ | |
"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", | |
"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.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"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": 909.84448, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 163, | |
"total": 0.99706662273407, | |
"mean": 0.006116973145607791, | |
"stdev": 0.0002568787630157329, | |
"p50": 0.006056960105895996, | |
"p90": 0.006362931060791016, | |
"p95": 0.006430720090866089, | |
"p99": 0.007072931690216064, | |
"values": [ | |
0.006700032234191895, | |
0.006089727878570556, | |
0.006201344013214111, | |
0.006119423866271972, | |
0.006252543926239014, | |
0.0061562881469726565, | |
0.006171648025512695, | |
0.006144000053405762, | |
0.006056960105895996, | |
0.006109183788299561, | |
0.006065152168273926, | |
0.006056960105895996, | |
0.006202367782592774, | |
0.006110208034515381, | |
0.00601907205581665, | |
0.006064127922058105, | |
0.005959680080413818, | |
0.005917695999145508, | |
0.00643174409866333, | |
0.006346752166748047, | |
0.0063539199829101565, | |
0.006333439826965332, | |
0.006412288188934326, | |
0.006309887886047363, | |
0.006336512088775635, | |
0.0063508481979370115, | |
0.006276095867156982, | |
0.006328224182128906, | |
0.006342656135559082, | |
0.00636518383026123, | |
0.006309887886047363, | |
0.006318079948425293, | |
0.006377471923828125, | |
0.0062904319763183595, | |
0.006416384220123291, | |
0.0063508481979370115, | |
0.0063170561790466305, | |
0.006331391811370849, | |
0.006301695823669433, | |
0.006281216144561768, | |
0.006186048030853272, | |
0.006270976066589356, | |
0.0063201279640197755, | |
0.006209504127502441, | |
0.006238207817077636, | |
0.0063211522102355954, | |
0.006333439826965332, | |
0.006301695823669433, | |
0.006368256092071533, | |
0.006376448154449463, | |
0.006293471813201904, | |
0.006457344055175781, | |
0.006366208076477051, | |
0.006271999835968017, | |
0.006295551776885986, | |
0.006319104194641113, | |
0.006338624000549317, | |
0.006284287929534912, | |
0.0064767999649047855, | |
0.006341663837432862, | |
0.006218751907348633, | |
0.006246399879455566, | |
0.006257567882537842, | |
0.00628223991394043, | |
0.006255616188049316, | |
0.006310912132263183, | |
0.00632422399520874, | |
0.005956607818603516, | |
0.005945343971252442, | |
0.005950463771820068, | |
0.006004735946655273, | |
0.005980160236358643, | |
0.00596998405456543, | |
0.005981184005737304, | |
0.005988351821899414, | |
0.005923840045928955, | |
0.006041600227355957, | |
0.006057983875274659, | |
0.006085631847381592, | |
0.006038527965545654, | |
0.006085631847381592, | |
0.006012928009033203, | |
0.006235136032104492, | |
0.006251520156860352, | |
0.006421504020690918, | |
0.006234176158905029, | |
0.006309887886047363, | |
0.006246399879455566, | |
0.00591871976852417, | |
0.005852159976959229, | |
0.005685184001922607, | |
0.005880832195281982, | |
0.006007808208465576, | |
0.005797823905944824, | |
0.005672959804534912, | |
0.005669888019561768, | |
0.005677055835723877, | |
0.005677984237670898, | |
0.005941247940063477, | |
0.006065152168273926, | |
0.006113311767578125, | |
0.0060067839622497555, | |
0.006168575763702393, | |
0.006305791854858398, | |
0.007173120021820068, | |
0.007021567821502686, | |
0.007156735897064209, | |
0.0069918718338012695, | |
0.006011903762817383, | |
0.006202367782592774, | |
0.005985311985015869, | |
0.0060416641235351565, | |
0.005909503936767578, | |
0.00653004789352417, | |
0.0057825279235839844, | |
0.0057487359046936035, | |
0.00566374397277832, | |
0.005683199882507324, | |
0.005783552169799804, | |
0.005940224170684814, | |
0.005976064205169678, | |
0.0059402561187744144, | |
0.0059351038932800295, | |
0.005896192073822021, | |
0.005931007862091065, | |
0.00601907205581665, | |
0.005922815799713135, | |
0.005909503936767578, | |
0.005937151908874512, | |
0.005908480167388916, | |
0.005940224170684814, | |
0.005915647983551026, | |
0.0059361281394958495, | |
0.0059023361206054685, | |
0.006012959957122803, | |
0.006004735946655273, | |
0.005944320201873779, | |
0.005916672229766846, | |
0.005943295955657959, | |
0.005897215843200684, | |
0.005948416233062744, | |
0.0058787841796875, | |
0.005952511787414551, | |
0.005897247791290283, | |
0.005922815799713135, | |
0.005909503936767578, | |
0.005924863815307617, | |
0.005914624214172363, | |
0.005922815799713135, | |
0.005910528182983398, | |
0.0059391999244689945, | |
0.005916639804840088, | |
0.006008768081665039, | |
0.005911520004272461, | |
0.005946368217468262, | |
0.005912576198577881, | |
0.005923840045928955, | |
0.005916672229766846, | |
0.005901311874389649, | |
0.005929952144622803, | |
0.005943295955657959, | |
0.005988351821899414, | |
0.005922815799713135 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 163.47954718716338 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.689851529480001e-08, | |
"ram": 3.657150736818054e-08, | |
"gpu": 3.536208102033886e-07, | |
"total": 4.5709083286636915e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2187748.9726256463 | |
} | |
} | |
} | |
} |