disable mlp fusion of fp6 on mtl (#11059)
This commit is contained in:
		
							parent
							
								
									192ae35012
								
							
						
					
					
						commit
						3a72e5df8c
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -358,6 +358,10 @@ def mlp_fusion_check(x, qtype, training):
 | 
			
		|||
        return False
 | 
			
		||||
    if training or x.requires_grad:
 | 
			
		||||
        return False
 | 
			
		||||
    if qtype == FP6:
 | 
			
		||||
        device = get_xpu_device_type(x)
 | 
			
		||||
        if device == "mtl":
 | 
			
		||||
            return False
 | 
			
		||||
    return True
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue