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
e14ddef
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu124", | |
"_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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-212.873.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 827.506688, | |
"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.45843115234375, | |
"mean": 7.45843115234375, | |
"stdev": 0.0, | |
"p50": 7.45843115234375, | |
"p90": 7.45843115234375, | |
"p95": 7.45843115234375, | |
"p99": 7.45843115234375, | |
"values": [ | |
7.45843115234375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.470172112500497e-06, | |
"ram": 7.897594431197455e-07, | |
"gpu": 1.6847235700008512e-06, | |
"total": 3.944655125621093e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.06272, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 185, | |
"total": 0.9975503997802733, | |
"mean": 0.0053921643231366135, | |
"stdev": 0.00035382380677547007, | |
"p50": 0.005499904155731201, | |
"p90": 0.005698559856414795, | |
"p95": 0.005851340675354003, | |
"p99": 0.006397214756011963, | |
"values": [ | |
0.005715968132019043, | |
0.0056555519104003905, | |
0.005867519855499268, | |
0.005654528141021729, | |
0.005716991901397705, | |
0.005658624172210694, | |
0.005695487976074219, | |
0.005609471797943116, | |
0.005669888019561768, | |
0.005668896198272705, | |
0.00565231990814209, | |
0.0056217598915100095, | |
0.005598048210144043, | |
0.005577856063842773, | |
0.005534719944000244, | |
0.005605375766754151, | |
0.005543935775756836, | |
0.00541596794128418, | |
0.005431295871734619, | |
0.005472095966339111, | |
0.005704671859741211, | |
0.005535744190216065, | |
0.005585919857025146, | |
0.005596159934997558, | |
0.005550079822540284, | |
0.005559296131134033, | |
0.0057190399169921875, | |
0.005481472015380859, | |
0.005570559978485107, | |
0.00546611213684082, | |
0.005566336154937744, | |
0.005610688209533692, | |
0.00557260799407959, | |
0.005607423782348633, | |
0.005553055763244629, | |
0.005668863773345947, | |
0.005627903938293457, | |
0.005494783878326416, | |
0.005608448028564453, | |
0.005534719944000244, | |
0.0055552000999450684, | |
0.005566463947296142, | |
0.0055244798660278325, | |
0.005467135906219483, | |
0.0055808000564575196, | |
0.005398528099060058, | |
0.005471231937408447, | |
0.0056217598915100095, | |
0.0055101442337036136, | |
0.0055214080810546875, | |
0.006391808032989502, | |
0.00614518404006958, | |
0.006557536125183105, | |
0.0055582718849182125, | |
0.005640192031860352, | |
0.005627903938293457, | |
0.005571455955505371, | |
0.005605375766754151, | |
0.005548031806945801, | |
0.005540863990783691, | |
0.005475232124328613, | |
0.005451776027679443, | |
0.005631999969482422, | |
0.005550079822540284, | |
0.005722976207733154, | |
0.005703680038452149, | |
0.006386688232421875, | |
0.005599232196807862, | |
0.005535808086395264, | |
0.005429279804229736, | |
0.0054906558990478515, | |
0.005581823825836182, | |
0.0055808000564575196, | |
0.005567488193511963, | |
0.00566476821899414, | |
0.005519360065460205, | |
0.005483520030975342, | |
0.005588992118835449, | |
0.005538815975189209, | |
0.00550707197189331, | |
0.00550707197189331, | |
0.0055203838348388675, | |
0.005504000186920166, | |
0.005700607776641845, | |
0.005575679779052735, | |
0.0055808000564575196, | |
0.005615615844726562, | |
0.005585919857025146, | |
0.0055808000564575196, | |
0.005786623954772949, | |
0.005577727794647217, | |
0.005594111919403076, | |
0.0055203838348388675, | |
0.005563392162322998, | |
0.005567584037780762, | |
0.005409952163696289, | |
0.005497824192047119, | |
0.005504000186920166, | |
0.005467135906219483, | |
0.005448703765869141, | |
0.005400576114654541, | |
0.005276671886444092, | |
0.005249023914337158, | |
0.005412864208221436, | |
0.005506048202514649, | |
0.005305344104766845, | |
0.005239808082580567, | |
0.005167103767395019, | |
0.0055316481590271, | |
0.005174272060394287, | |
0.005249023914337158, | |
0.005432320117950439, | |
0.005432191848754883, | |
0.005448703765869141, | |
0.005494783878326416, | |
0.005499904155731201, | |
0.005561344146728516, | |
0.005726016044616699, | |
0.006425600051879882, | |
0.00628326416015625, | |
0.006195199966430664, | |
0.006184959888458252, | |
0.006080512046813965, | |
0.005262335777282715, | |
0.005306431770324707, | |
0.005189631938934326, | |
0.005530623912811279, | |
0.005268415927886963, | |
0.005235712051391602, | |
0.0052007040977478025, | |
0.005004288196563721, | |
0.0049530878067016604, | |
0.004923391819000244, | |
0.0049090561866760255, | |
0.004918272018432617, | |
0.004934656143188477, | |
0.004940800189971924, | |
0.004932608127593994, | |
0.00491212797164917, | |
0.004939775943756103, | |
0.00495411205291748, | |
0.004955135822296143, | |
0.00496230411529541, | |
0.004925439834594727, | |
0.004983808040618896, | |
0.0049459199905395506, | |
0.005038080215454102, | |
0.004910079956054687, | |
0.004928512096405029, | |
0.0049192957878112795, | |
0.004935679912567138, | |
0.005131264209747314, | |
0.004890624046325683, | |
0.004937727928161621, | |
0.0049511041641235355, | |
0.004930560111999512, | |
0.004937727928161621, | |
0.004923391819000244, | |
0.00491212797164917, | |
0.004935679912567138, | |
0.004931583881378174, | |
0.0049459199905395506, | |
0.004932608127593994, | |
0.0049203200340270994, | |
0.0049530878067016604, | |
0.004935679912567138, | |
0.0049090561866760255, | |
0.004932608127593994, | |
0.004926464080810547, | |
0.004907008171081543, | |
0.004922368049621582, | |
0.005055488109588623, | |
0.004922368049621582, | |
0.004933631896972656, | |
0.004914368152618408, | |
0.004904960155487061, | |
0.004925439834594727, | |
0.004927487850189209, | |
0.004934656143188477, | |
0.004887551784515381, | |
0.0050432000160217285, | |
0.004966400146484375, | |
0.004940800189971924, | |
0.004902912139892578, | |
0.004924416065216064 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 185.45428886675722 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.803299594907922e-08, | |
"ram": 3.172988695455323e-08, | |
"gpu": 3.466737522843146e-07, | |
"total": 4.3643663518794706e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2291283.3602279057 | |
} | |
} | |
} | |
} |