mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	apply various in places
This commit is contained in:
		| @@ -343,7 +343,8 @@ static bool cb_eval(struct ggml_tensor * t, bool ask, void * user_data) { | ||||
|  | ||||
| static bool get_hidden_layers(llama_context * ctx, std::vector<llama_token> & tokens) { | ||||
|     llama_kv_cache_clear(ctx); | ||||
|     if (llama_decode(ctx, llama_batch_get_one(tokens.data(), tokens.size()))) { | ||||
|     llama_batch_ext_ptr batch(llama_batch_ext_init_from_text(tokens.data(), tokens.size(), 0, 0)); | ||||
|     if (llama_decode_ext(ctx, batch.get())) { | ||||
|         fprintf(stderr, "%s : failed to eval\n", __func__); | ||||
|         return false; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Xuan Son Nguyen
					Xuan Son Nguyen