XrayGLM icon indicating copy to clipboard operation
XrayGLM copied to clipboard

'Namespace' object has no attribute 'pad_token_id' 请问这个问题怎么解决呢!

Open Neuzly1 opened this issue 1 year ago • 2 comments

image

Neuzly1 avatar Nov 18 '23 06:11 Neuzly1

我刚开始也遇到这个问题,后来将sat的版本从0.4.9降低到0.3.6,然后将transoformers的版本定在4.27.1,就没有错误了。 原因应该是checkpoint是旧版本的,不兼容新版本的sat。 希望对你有用~

hwei-hw avatar Jan 05 '24 07:01 hwei-hw

    好的,我去试一下!辛苦啦~

     
    
        
                    ***@***.***
        
    
 
    

---- 回复的原邮件 ----



  
    
     发件人 
    
    
        Hao ***@***.***>
        
    
  
  
    
     发送日期 
    
    
    2024年1月5日 15:49
    
  
  
    
     收件人 
    
    
     
      
        ***@***.***>
        
      
    
  
  
    
     抄送人 
    
    
      
        ***@***.***>
        ,
      
      
        ***@***.***>
        
      
    
  
  
    
     主题 
    
    
          Re: [WangRongsheng/XrayGLM]  'Namespace' object has no attribute 'pad_token_id' 请问这个问题怎么解决呢! (Issue #66)
    
  

我刚开始也遇到这个问题,后来将sat的版本从0.4.9降低到0.3.6,然后将transoformers的版本定在4.27.1,就没有错误了。 原因应该是checkpoint是旧版本的,不兼容新版本的sat。 希望对你有用~

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Neuzly1 avatar Jan 06 '24 02:01 Neuzly1