Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
1abed58
1
Parent(s):
5803ad5
Update
Browse files
app.py
CHANGED
@@ -176,7 +176,6 @@ def generate(
|
|
176 |
)
|
177 |
|
178 |
|
179 |
-
logger.info("start dl")
|
180 |
_ = """full url: https://huggingface.co/TheBloke/mpt-30B-chat-GGML/blob/main/mpt-30b-chat.ggmlv0.q4_1.bin"""
|
181 |
|
182 |
# https://huggingface.co/TheBloke/mpt-30B-chat-GGML
|
@@ -204,7 +203,7 @@ if "WizardCoder" in MODEL_FILENAME:
|
|
204 |
if "uncensored" in MODEL_FILENAME.lower():
|
205 |
REPO_ID = "TheBloke/WizardLM-13B-V1.0-Uncensored-GGML"
|
206 |
|
207 |
-
logger.info("start dl")
|
208 |
download_quant(DESTINATION_FOLDER, REPO_ID, MODEL_FILENAME)
|
209 |
logger.info("done dl")
|
210 |
|
@@ -230,6 +229,7 @@ logger.debug(f"{os.cpu_count()=}")
|
|
230 |
logger.info("load llm")
|
231 |
|
232 |
_ = Path("models", MODEL_FILENAME).absolute().as_posix()
|
|
|
233 |
LLM = AutoModelForCausalLM.from_pretrained(
|
234 |
# "TheBloke/WizardCoder-15B-1.0-GGML",
|
235 |
REPO_ID,
|
|
|
176 |
)
|
177 |
|
178 |
|
|
|
179 |
_ = """full url: https://huggingface.co/TheBloke/mpt-30B-chat-GGML/blob/main/mpt-30b-chat.ggmlv0.q4_1.bin"""
|
180 |
|
181 |
# https://huggingface.co/TheBloke/mpt-30B-chat-GGML
|
|
|
203 |
if "uncensored" in MODEL_FILENAME.lower():
|
204 |
REPO_ID = "TheBloke/WizardLM-13B-V1.0-Uncensored-GGML"
|
205 |
|
206 |
+
logger.info("start dl, {REPO_ID=}, {MODEL_FILENAME=}, {DESTINATION_FOLDER=}")
|
207 |
download_quant(DESTINATION_FOLDER, REPO_ID, MODEL_FILENAME)
|
208 |
logger.info("done dl")
|
209 |
|
|
|
229 |
logger.info("load llm")
|
230 |
|
231 |
_ = Path("models", MODEL_FILENAME).absolute().as_posix()
|
232 |
+
logger.debug(f"model_file: {_}, exists: {Path(_).exists()}")
|
233 |
LLM = AutoModelForCausalLM.from_pretrained(
|
234 |
# "TheBloke/WizardCoder-15B-1.0-GGML",
|
235 |
REPO_ID,
|