mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	llama.swiftui : use correct pointer for llama_token_eos (#4797)
This commit is contained in:
		 Daniel Illescas Romero
					Daniel Illescas Romero
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							96e80dabc6
						
					
				
				
					commit
					c75ca5d96f
				
			| @@ -161,7 +161,7 @@ actor LlamaContext { | |||||||
|             new_token_id = llama_sample_token_greedy(context, &candidates_p) |             new_token_id = llama_sample_token_greedy(context, &candidates_p) | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         if new_token_id == llama_token_eos(context) || n_cur == n_len { |         if new_token_id == llama_token_eos(model) || n_cur == n_len { | ||||||
|             print("\n") |             print("\n") | ||||||
|             let new_token_str = String(cString: temporary_invalid_cchars + [0]) |             let new_token_str = String(cString: temporary_invalid_cchars + [0]) | ||||||
|             temporary_invalid_cchars.removeAll() |             temporary_invalid_cchars.removeAll() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user