mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	GGUF: C++ refactor, backend support, misc fixes (#11030)
* GGUF: C++ refactor, backend support, misc fixes remove ggml_tensor.backend update CODEOWNERS [no ci] remove gguf_get_data from API revise GGUF API data types
This commit is contained in:
		| @@ -875,7 +875,8 @@ static void llama_model_quantize_impl(const std::string & fname_inp, const std:: | ||||
|  | ||||
|         // update the gguf meta data as we go | ||||
|         gguf_set_tensor_type(ctx_outs[cur_split].get(), name.c_str(), new_type); | ||||
|         gguf_set_tensor_data(ctx_outs[cur_split].get(), name.c_str(), new_data, new_size); | ||||
|         GGML_ASSERT(gguf_get_tensor_size(ctx_outs[cur_split].get(), gguf_find_tensor(ctx_outs[cur_split].get(), name.c_str())) == new_size); | ||||
|         gguf_set_tensor_data(ctx_outs[cur_split].get(), name.c_str(), new_data); | ||||
|  | ||||
|         // write tensor data + padding | ||||
|         fout.write((const char *) new_data, new_size); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Johannes Gäßler
					Johannes Gäßler