mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	Update convert-llama-h5-to-gguf.py
This commit is contained in:
		| @@ -104,11 +104,6 @@ if Path(dir_model + "/tokenizer.model").is_file(): | ||||
|     print("Adding sentencepiece tokenizer vocab.") | ||||
|     tokenizer = SentencePieceProcessor(dir_model + "/tokenizer.model") | ||||
|  | ||||
|     # output vocab_size followed by all piece/score pairs | ||||
|     outbytes: bytes | ||||
|     outbytes = b"" | ||||
|     outbytes += struct.pack("I", tokenizer.vocab_size()) | ||||
|  | ||||
|     for i in range(tokenizer.vocab_size()): | ||||
|         text: bytes | ||||
|         if tokenizer.is_unknown(i): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 klosax
					klosax