mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	llama : add llama_sampling API + move grammar in libllama
ggml-ci
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
#define LLAMA_API_INTERNAL
 | 
			
		||||
#include "common.h"
 | 
			
		||||
#include "ggml.h"
 | 
			
		||||
#include "llama.h"
 | 
			
		||||
#include "llama-impl.h"
 | 
			
		||||
 | 
			
		||||
#include <algorithm>
 | 
			
		||||
#include <cassert>
 | 
			
		||||
@@ -319,8 +319,7 @@ int main(int argc, char ** argv) {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        auto cparams = llama_context_default_params();
 | 
			
		||||
        cparams.n_ctx      = 256;
 | 
			
		||||
        cparams.seed       = 1;
 | 
			
		||||
        cparams.n_ctx = 256;
 | 
			
		||||
 | 
			
		||||
        ctx = llama_new_context_with_model(model, cparams);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user