mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	Add warning if token is invalid (#7173)
This commit is contained in:
		| @@ -49,6 +49,10 @@ chktxt = '\n \n\n \n\n\n \t \t\t \t\n  \n   \n    \n     \n🚀 (normal) 😶 | ||||
|  | ||||
| if len(sys.argv) == 2: | ||||
|     token = sys.argv[1] | ||||
|     if not token.startswith("hf_"): | ||||
|         logger.info("Huggingface token seems invalid") | ||||
|         logger.info("Usage: python convert-hf-to-gguf-update.py <huggingface_token>") | ||||
|         sys.exit(1) | ||||
| else: | ||||
|     logger.info("Usage: python convert-hf-to-gguf-update.py <huggingface_token>") | ||||
|     sys.exit(1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Galunid
					Galunid