Skip to content

Commit 3bd7461

Browse files
authored
Batch size 32 results (#51)
1 parent 94ce454 commit 3bd7461

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed
File renamed without changes.

experiments/results/results_bs32.csv

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
technique,time,sam_commit_name,pytorch_version,sam_model_type,batch_size,memory(MiB),memory(%),img_s(avg),batch_ms(avg)/batch_size,mIoU,use_compile,use_half,compress,epilogue_fusion_first,use_compile_decoder,use_nested_tensor,use_rel_pos,pad_input_image_batch,num_workers,num_batches,num_images,profile_path,memory_path
2+
fp32,0.23617535432179768,default,2.2.0.dev20231024+cu121,ERROR
3+
bf16,0.21061046520868937,codesign,2.2.0.dev20231024+cu121,ERROR
4+
compile,2.914792573451996,codesign,2.2.0.dev20231024+cu121,vit_b,32,31077,76,50.12497270213896,19.950135553037967,0.5407576752390846,max-autotune,torch.bfloat16,None,False,False,False,True,True,32,154,4928,None,None
5+
SDPA,2.4382545590400695,sdpa-decoder,2.2.0.dev20231024+cu121,vit_b,32,18128,44,65.21504434452841,15.333885149522262,0.5355346808697282,max-autotune,torch.bfloat16,None,False,False,False,True,True,32,154,4928,None,None
6+
Triton,2.0670506795247396,local-fork,2.2.0.dev20231024+cu121,vit_b,32,6224,15,84.64604662944608,11.813900823716994,0.5339075529136259,max-autotune,torch.bfloat16,None,False,False,False,True,True,32,154,4928,None,None
7+
NT,1.9937538544336955,local-fork,2.2.0.dev20231024+cu121,vit_b,32,6963,17,94.91964930359119,10.535226450337992,0.533777680508926,max-autotune,torch.bfloat16,None,False,False,True,True,True,32,154,4928,None,None
8+
int8,2.257409866650899,local-fork,2.2.0.dev20231024+cu121,vit_b,32,6879,16,92.73502322451758,10.783412406970928,0.5331365436735569,max-autotune,torch.bfloat16,dynamic_quant,False,False,True,True,True,32,154,4928,None,None
9+
sparse,2.0192723433176676,local-fork,2.2.0.dev20231024+cu121,vit_b,32,7397,18,95.40203078844067,10.481957163129534,0.4781413896120807,max-autotune,torch.bfloat16,sparse,False,False,True,True,True,32,154,4928,None,None
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
technique,time,sam_commit_name,pytorch_version,sam_model_type,batch_size,memory(MiB),memory(%),img_s(avg),batch_ms(avg)/batch_size,mIoU,use_compile,use_half,compress,epilogue_fusion_first,use_compile_decoder,use_nested_tensor,use_rel_pos,pad_input_image_batch,num_workers,num_batches,num_images,profile_path,memory_path
2+
fp32,0.3408697446187337,default,2.2.0.dev20231024+cu121,ERROR
3+
bf16,0.3232296347618103,codesign,2.2.0.dev20231024+cu121,ERROR
4+
compile,1.4304784536361694,codesign,2.2.0.dev20231024+cu121,ERROR
5+
SDPA,5.974866807460785,sdpa-decoder,2.2.0.dev20231024+cu121,vit_h,32,27276,67,21.754509457085913,45.96748099389014,0.581191777206921,max-autotune,torch.bfloat16,None,False,False,False,True,True,32,154,4928,None,None
6+
Triton,5.73175394932429,local-fork,2.2.0.dev20231024+cu121,vit_h,32,14424,35,22.71537227352625,44.02305134859952,0.5820036887609843,max-autotune,torch.bfloat16,None,False,False,False,True,True,32,154,4928,None,None
7+
NT,5.5431528210639955,local-fork,2.2.0.dev20231024+cu121,vit_h,32,14424,35,23.333015236230114,42.85772712509353,0.5807765231991617,max-autotune,torch.bfloat16,None,False,False,True,True,True,32,154,4928,None,None
8+
int8,6.006167344252268,local-fork,2.2.0.dev20231024+cu121,vit_h,32,11074,27,24.945000391298656,40.08819339801739,0.5817226962602728,max-autotune,torch.bfloat16,dynamic_quant,False,False,True,True,True,32,154,4928,None,None
9+
sparse,5.685418633619944,local-fork,2.2.0.dev20231024+cu121,vit_h,32,15108,37,24.31964924223424,41.11901409595043,0.5286787009095467,max-autotune,torch.bfloat16,sparse,False,False,True,True,True,32,154,4928,None,None
File renamed without changes.

experiments/run_experiments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def run(batch_size,
143143
run_experiments=False,
144144
traces_dir=None,
145145
num_workers=32,
146-
print_header=True):
146+
print_header=True,
147+
capture_output=True):
147148

148149
assert model == "vit_b" or model == "vit_h"
149150

@@ -152,7 +153,8 @@ def run(batch_size,
152153
sam_path,
153154
model,
154155
batch_size=batch_size,
155-
num_workers=num_workers)
156+
num_workers=num_workers,
157+
capture_output=capture_output)
156158

157159
print_header = True
158160
if run_traces:

0 commit comments

Comments
 (0)