mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	gguf : rm references to old file magics
This commit is contained in:
		@@ -3367,10 +3367,6 @@ int llama_apply_lora_from_file_internal(const struct llama_model & model, const
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        uint32_t magic;
 | 
					        uint32_t magic;
 | 
				
			||||||
        fin.read((char *) &magic, sizeof(magic));
 | 
					        fin.read((char *) &magic, sizeof(magic));
 | 
				
			||||||
        if (magic != LLAMA_FILE_MAGIC_GGLA) {
 | 
					 | 
				
			||||||
            fprintf(stderr, "%s: bad file magic\n", __func__);
 | 
					 | 
				
			||||||
            return 1;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        uint32_t format_version;
 | 
					        uint32_t format_version;
 | 
				
			||||||
        fin.read((char *) &format_version, sizeof(format_version));
 | 
					        fin.read((char *) &format_version, sizeof(format_version));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										12
									
								
								gguf-llama.h
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								gguf-llama.h
									
									
									
									
									
								
							@@ -34,18 +34,6 @@
 | 
				
			|||||||
#    define DEPRECATED(func, hint) func
 | 
					#    define DEPRECATED(func, hint) func
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define LLAMA_FILE_MAGIC_GGJT        0x67676a74u // 'ggjt'
 | 
					 | 
				
			||||||
#define LLAMA_FILE_MAGIC_GGLA        0x67676c61u // 'ggla'
 | 
					 | 
				
			||||||
#define LLAMA_FILE_MAGIC_GGMF        0x67676d66u // 'ggmf'
 | 
					 | 
				
			||||||
#define LLAMA_FILE_MAGIC_GGML        0x67676d6cu // 'ggml'
 | 
					 | 
				
			||||||
#define LLAMA_FILE_MAGIC_GGSN        0x6767736eu // 'ggsn'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#define LLAMA_FILE_VERSION           3
 | 
					 | 
				
			||||||
#define LLAMA_FILE_MAGIC             LLAMA_FILE_MAGIC_GGJT
 | 
					 | 
				
			||||||
#define LLAMA_FILE_MAGIC_UNVERSIONED LLAMA_FILE_MAGIC_GGML
 | 
					 | 
				
			||||||
#define LLAMA_SESSION_MAGIC          LLAMA_FILE_MAGIC_GGSN
 | 
					 | 
				
			||||||
#define LLAMA_SESSION_VERSION        1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#define LLAMA_DEFAULT_SEED           0xFFFFFFFF
 | 
					#define LLAMA_DEFAULT_SEED           0xFFFFFFFF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(GGML_USE_CUBLAS) || defined(GGML_USE_CLBLAST) || defined(GGML_USE_METAL)
 | 
					#if defined(GGML_USE_CUBLAS) || defined(GGML_USE_CLBLAST) || defined(GGML_USE_METAL)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user