File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed 
examples/qualcomm/oss_scripts/llama Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ def __init__(
114114        ],
115115        runtime_tokenizer_path ,
116116    ):
117+         logging .info ("init start~~~" )
117118        self .args  =  args 
118119        self .pte_path  =  pte_path 
119120        self .enable_x86_64  =  args .enable_x86_64 
@@ -189,13 +190,16 @@ def __init__(
189190        output_data_folder  =  f"{ self .args .artifact }  
190191        make_output_dir (output_data_folder )
191192
193+         
192194        if  not  self .enable_x86_64 :
193195            self .adb .push (inputs = [], files = [self .runtime_tokenizer_path ])
194196        # n seq len = n-1 cache len, so we len(inps) = n-1 during _model_call 
195197        # pyre-ignore 
196198        super ().__init__ (None , tokenizer , self .max_seq_length  -  1 )
199+         logging .info ("init end~~~" )
197200
198201    def  _model_call (self , inps ):
202+         logging .info (f"Start 1 iteration~~~~~~~~~~~~~~" )
199203
200204        input_file_name  =  f"{ self .args .artifact }  
201205        inps  =  inps .to (torch .uint64 ).numpy ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments