IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
bcab592 verified
raw
history blame
12 kB
{
"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.897728,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 170,
"total": 0.9982157754898072,
"mean": 0.005871857502881219,
"stdev": 0.00017907740314135464,
"p50": 0.0058885118961334235,
"p90": 0.006078054189682007,
"p95": 0.006119270372390746,
"p99": 0.00624250864982605,
"values": [
0.0064880638122558594,
0.006064127922058105,
0.006236159801483154,
0.006157279968261719,
0.0062566399574279785,
0.006184959888458252,
0.006131711959838867,
0.006155263900756836,
0.006067200183868408,
0.006085631847381592,
0.006047743797302246,
0.0060590081214904785,
0.006145023822784424,
0.00607539176940918,
0.006046720027923584,
0.006039552211761475,
0.005898240089416504,
0.005895167827606201,
0.005943295955657959,
0.006020095825195313,
0.005997568130493164,
0.006091775894165039,
0.006023168087005615,
0.006094848155975342,
0.006044672012329101,
0.006031487941741943,
0.005891071796417236,
0.00601804780960083,
0.0061931519508361815,
0.006055871963500977,
0.006100992202758789,
0.006041600227355957,
0.006055903911590576,
0.006074368000030517,
0.006032383918762207,
0.0060702719688415525,
0.006090752124786377,
0.005827583789825439,
0.0058091521263122555,
0.005640192031860352,
0.005598207950592041,
0.005611616134643555,
0.005724160194396972,
0.0059688959121704105,
0.005937151908874512,
0.0059351038932800295,
0.00601907205581665,
0.006048768043518066,
0.0057118721008300784,
0.005740543842315674,
0.005752831935882568,
0.005807104110717773,
0.005989376068115234,
0.00608358383178711,
0.006008831977844238,
0.005991424083709717,
0.005985280036926269,
0.006034431934356689,
0.006049791812896729,
0.006061056137084961,
0.006004735946655273,
0.006094848155975342,
0.005966847896575928,
0.005923840045928955,
0.005934112071990967,
0.005970943927764893,
0.005916672229766846,
0.006038527965545654,
0.006049791812896729,
0.006009888172149658,
0.005942272186279297,
0.005971968173980713,
0.005940224170684814,
0.005921823978424072,
0.0058726401329040525,
0.005931007862091065,
0.005638144016265869,
0.005690368175506591,
0.005686272144317627,
0.005705728054046631,
0.006003712177276611,
0.006104063987731933,
0.006064127922058105,
0.006077439785003662,
0.00601087999343872,
0.006043647766113281,
0.00602726411819458,
0.005967872142791748,
0.005876736164093017,
0.006051839828491211,
0.005949440002441406,
0.005889023780822754,
0.005785600185394287,
0.005724160194396972,
0.005888000011444092,
0.00591871976852417,
0.005784575939178467,
0.005576767921447754,
0.0056780800819396975,
0.0057118721008300784,
0.00606822395324707,
0.005873663902282715,
0.005996543884277344,
0.0058787841796875,
0.006034431934356689,
0.005997568130493164,
0.006055935859680176,
0.006030335903167725,
0.005832704067230224,
0.005671967983245849,
0.005785600185394287,
0.005675007820129394,
0.005730303764343261,
0.00577942419052124,
0.005683199882507324,
0.005723072052001953,
0.005708799839019775,
0.0057487359046936035,
0.0057292799949646,
0.005724160194396972,
0.005705728054046631,
0.0056852478981018065,
0.0057292799949646,
0.00572108793258667,
0.005750783920288086,
0.005691391944885254,
0.005698560237884521,
0.0056657280921936035,
0.005718016147613526,
0.005700607776641845,
0.005676032066345215,
0.005692416191101074,
0.005672959804534912,
0.005735424041748047,
0.005677055835723877,
0.0056739521026611325,
0.005687295913696289,
0.0056514558792114256,
0.0057149438858032225,
0.005692383766174316,
0.0056350078582763675,
0.00570470380783081,
0.005673984050750733,
0.005798912048339844,
0.005796895980834961,
0.005658688068389893,
0.0056483840942382815,
0.005666816234588623,
0.005666816234588623,
0.005624832153320313,
0.005891071796417236,
0.005659647941589355,
0.005699584007263184,
0.005658624172210694,
0.00567193603515625,
0.005631999969482422,
0.005944320201873779,
0.005743616104125977,
0.005699584007263184,
0.005703680038452149,
0.0056442880630493165,
0.005668863773345947,
0.005695487976074219,
0.005675007820129394,
0.005658624172210694,
0.005659647941589355,
0.005734399795532226,
0.005684224128723145,
0.005698560237884521,
0.00566374397277832
]
},
"throughput": {
"unit": "samples/s",
"value": 170.30386032176656
},
"energy": {
"unit": "kWh",
"cpu": 6.652008765348037e-08,
"ram": 3.6369455501903506e-08,
"gpu": 3.733383136516865e-07,
"total": 4.7622785680707044e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2099835.164420296
}
}
}
}