LLaMA2 with JSON schema support template (#12435)

This commit is contained in:
Lance Martin
2023-10-27 10:34:00 -07:00
committed by GitHub
parent 134f085824
commit 05bbf943f2
8 changed files with 1359 additions and 1 deletions

View File

@@ -12,7 +12,8 @@ from langchain.utilities import SQLDatabase
# File name and URL
file_name = "mistral-7b-instruct-v0.1.Q4_K_M.gguf"
url = "https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/mistral-7b-instruct-v0.1.Q4_K_M.gguf"
url = ("https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/"
"mistral-7b-instruct-v0.1.Q4_K_M.gguf")
# Check if file is present in the current directory
if not os.path.exists(file_name):
print(f"'{file_name}' not found. Downloading...")