mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	sampling : null grammar field after reset (#3885)
This commit is contained in:
		| @@ -39,6 +39,7 @@ void llama_sampling_free(struct llama_sampling_context * ctx) { | |||||||
| void llama_sampling_reset(llama_sampling_context * ctx) { | void llama_sampling_reset(llama_sampling_context * ctx) { | ||||||
|     if (ctx->grammar != NULL) { |     if (ctx->grammar != NULL) { | ||||||
|         llama_grammar_free(ctx->grammar); |         llama_grammar_free(ctx->grammar); | ||||||
|  |         ctx->grammar = NULL; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     if (!ctx->parsed_grammar.rules.empty()) { |     if (!ctx->parsed_grammar.rules.empty()) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 l3utterfly
					l3utterfly