mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	common : Changed tuple to struct (TODO fix) (#8823)
* common : Changed tuple to struct (TODO fix) Use struct `llama_init_result` to replace the previous std::tuple<struct llama_model *, struct llama_context *> * delete llama_init_default_params() * delete the extra whitespace
This commit is contained in:
		| @@ -677,7 +677,10 @@ struct server_context { | ||||
|         // dedicate one sequence to the system prompt | ||||
|         params.n_parallel += 1; | ||||
|  | ||||
|         std::tie(model, ctx) = llama_init_from_gpt_params(params); | ||||
|         llama_init_result llama_init = llama_init_from_gpt_params(params); | ||||
|  | ||||
|         model = llama_init.model; | ||||
|         ctx = llama_init.context; | ||||
|         params.n_parallel -= 1; // but be sneaky about it | ||||
|         if (model == nullptr) { | ||||
|             LOG_ERROR("unable to load model", {{"model", params.model}}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Liu Jia
					Liu Jia