mirror of
				https://github.com/KoboldAI/KoboldAI-Client.git
				synced 2025-06-05 21:59:24 +02:00 
			
		
		
		
	generated_cols needs to be set properly by TPU static backend
				
					
				
			This commit is contained in:
		@@ -3064,6 +3064,7 @@ def tpumtjgenerate(txt, minimum, maximum, found_entries=None):
 | 
			
		||||
            past = genout
 | 
			
		||||
            for i in range(vars.numseqs):
 | 
			
		||||
                vars.lua_koboldbridge.generated[i+1] = vars.lua_state.table(*genout[i].tolist())
 | 
			
		||||
            vars.lua_koboldbridge.generated_cols = vars.generated_tkns = genout.shape[-1]
 | 
			
		||||
 | 
			
		||||
    except Exception as e:
 | 
			
		||||
        if(issubclass(type(e), lupa.LuaError)):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user