IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
7ebbf95 verified
raw
history blame
14 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.4.1+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.225-213.878.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.5.0.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.2",
"transformers_commit": null,
"accelerate_version": "1.0.1",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 844.537856,
"max_global_vram": 1037.565952,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"values": [
0.12191744232177734
],
"count": 1,
"total": 0.12191744232177734,
"mean": 0.12191744232177734,
"p50": 0.12191744232177734,
"p90": 0.12191744232177734,
"p95": 0.12191744232177734,
"p99": 0.12191744232177734,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1054.445568,
"max_global_vram": 1056.44032,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"values": [
0.00581324815750122,
0.005472256183624268,
0.0054579200744628905,
0.005502975940704345,
0.005433311939239502,
0.005477375984191894,
0.005443583965301513,
0.0054579200744628905,
0.0054989118576049805,
0.005467135906219483,
0.005409791946411133,
0.005470208168029785,
0.005421055793762207,
0.005444608211517334,
0.005469151973724365,
0.005413887977600097,
0.005429247856140137,
0.005288959980010987,
0.005276671886444092,
0.005294079780578613,
0.005368832111358642,
0.005387263774871826,
0.005318655967712403,
0.005370880126953125,
0.005325823783874512,
0.005407743930816651,
0.005386240005493164,
0.0053637118339538575,
0.00547430419921875,
0.005475327968597412,
0.005504000186920166,
0.00547430419921875,
0.005413887977600097,
0.005443583965301513,
0.005422080039978027,
0.0054241280555725096,
0.005458943843841553,
0.005346303939819336,
0.005302271842956543,
0.005429247856140137,
0.005482495784759522,
0.005470208168029785,
0.005438464164733887,
0.0053678078651428224,
0.005470208168029785,
0.005429247856140137,
0.0054241280555725096,
0.005354496002197265,
0.0052111358642578124,
0.005314559936523438,
0.005384191989898681,
0.005102591991424561,
0.005102591991424561,
0.005171199798583984,
0.0051968002319335935,
0.00511078405380249,
0.0052336640357971195,
0.00536575984954834,
0.0053043198585510255,
0.005382207870483399,
0.005362720012664795,
0.00536575984954834,
0.005375999927520752,
0.005402624130249023,
0.00530847978591919,
0.005436351776123047,
0.005204991817474365,
0.005187679767608642,
0.005208064079284668,
0.005191679954528809,
0.005145631790161133,
0.005183487892150879,
0.005306367874145508,
0.00516812801361084,
0.005297215938568115,
0.005438464164733887,
0.005420095920562744,
0.005408768177032471,
0.005352447986602784,
0.005220320224761963,
0.005435391902923584,
0.005483520030975342,
0.005326848030090332,
0.0052674241065979,
0.0052899842262268066,
0.005108704090118408,
0.0051363840103149415,
0.005272575855255127,
0.005318655967712403,
0.005183487892150879,
0.005056511878967285,
0.005039103984832764,
0.005018623828887939,
0.005078015804290771,
0.005069791793823242,
0.005248000144958496,
0.0052930560111999515,
0.005305344104766845,
0.005252096176147461,
0.005354496002197265,
0.005368832111358642,
0.005435391902923584,
0.005469183921813964,
0.005278719902038574,
0.005194784164428711,
0.005212160110473632,
0.005115903854370117,
0.005117951869964599,
0.005088255882263183,
0.005129248142242432,
0.005093376159667969,
0.005088255882263183,
0.005092351913452148,
0.005041152000427246,
0.0050800638198852536,
0.0050514240264892575,
0.0051701760292053225,
0.005040128231048584,
0.00502784013748169,
0.005041215896606445,
0.005088255882263183,
0.00505241584777832,
0.005015552043914795,
0.005096447944641113,
0.005039103984832764,
0.005024767875671386,
0.0050135040283203125,
0.005182464122772217,
0.005067776203155518,
0.005057504177093506,
0.005055488109588623,
0.005082111835479736,
0.005086207866668701,
0.005024831771850586,
0.005102591991424561,
0.005041183948516846,
0.005018623828887939,
0.005030911922454834,
0.005049344062805176,
0.005029888153076172,
0.005062655925750732,
0.005017600059509277,
0.005085184097290039,
0.005025792121887207,
0.0050442562103271485,
0.0050514559745788576,
0.005092351913452148,
0.005038047790527344,
0.005053408145904541,
0.005071872234344482,
0.005040128231048584,
0.005049344062805176,
0.005098495960235596,
0.0050657281875610355,
0.005089280128479004,
0.005142528057098389,
0.005032959938049316,
0.0050657281875610355,
0.00505241584777832,
0.00506060791015625,
0.005091328144073487,
0.005104640007019043,
0.005062655925750732,
0.005039040088653564,
0.005091328144073487,
0.005037087917327881,
0.0050800638198852536,
0.005024767875671386,
0.00506060791015625,
0.00502784013748169,
0.005032959938049316,
0.005056511878967285,
0.005026815891265869,
0.005039103984832764,
0.005039103984832764,
0.005058559894561767,
0.00502784013748169,
0.0050503678321838375,
0.005089280128479004,
0.005032959938049316,
0.005074944019317627,
0.00501964807510376,
0.0050462718009948735,
0.005057536125183106,
0.005024735927581787,
0.005021696090698242,
0.005035007953643799,
0.0050432000160217285,
0.005004288196563721,
0.005032959938049316,
0.005039103984832764
],
"count": 191,
"total": 0.9958874859809875,
"mean": 0.005214070607230302,
"p50": 0.0051701760292053225,
"p90": 0.0054579200744628905,
"p95": 0.005473280191421509,
"p99": 0.005503078365325927,
"stdev": 0.0001710187674586333,
"stdev_": 3.2799472876620275
},
"throughput": {
"unit": "samples/s",
"value": 191.78873385667418
},
"energy": {
"unit": "kWh",
"cpu": 5.8342036613986005e-08,
"ram": 3.187951354181349e-08,
"gpu": 3.5324330394088824e-07,
"total": 4.4346485409668776e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2254970.130692639
}
}
}
}