mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	Signed-off-by: MoonRide303 <moonride303@gmail.com>
This commit is contained in:
		| @@ -21,7 +21,7 @@ def get_chat_template(model_id, variant=None): | |||||||
|         # Use huggingface_hub library if available. |         # Use huggingface_hub library if available. | ||||||
|         # Allows access to gated models if the user has access and ran `huggingface-cli login`. |         # Allows access to gated models if the user has access and ran `huggingface-cli login`. | ||||||
|         from huggingface_hub import hf_hub_download |         from huggingface_hub import hf_hub_download | ||||||
|         with open(hf_hub_download(repo_id=model_id, filename="tokenizer_config.json")) as f: |         with open(hf_hub_download(repo_id=model_id, filename="tokenizer_config.json"), encoding="utf-8") as f: | ||||||
|             config_str = f.read() |             config_str = f.read() | ||||||
|     except ImportError: |     except ImportError: | ||||||
|         import requests |         import requests | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 MoonRide303
					MoonRide303