Update app.py
Browse files
app.py
CHANGED
@@ -75,14 +75,16 @@ def main():
|
|
75 |
# 'threads': int(os.cpu_count() / 2)
|
76 |
# }
|
77 |
|
78 |
-
|
79 |
-
#
|
80 |
-
|
|
|
81 |
# model_type="mistral",
|
82 |
-
|
83 |
-
|
84 |
-
#
|
85 |
-
|
|
|
86 |
|
87 |
print("LLM Initialized...")
|
88 |
|
|
|
75 |
# 'threads': int(os.cpu_count() / 2)
|
76 |
# }
|
77 |
|
78 |
+
llm = CTransformers(
|
79 |
+
# model = "TheBloke/Mistral-7B-Instruct-v0.2-GGUF",
|
80 |
+
model= "second-state/stablelm-2-zephyr-1.6b-GGU",
|
81 |
+
model_file = "stablelm-2-zephyr-1_6b-Q4_0.gguf"
|
82 |
# model_type="mistral",
|
83 |
+
max_new_tokens = 1048,
|
84 |
+
temperature = 0.3,
|
85 |
+
lib="avx2", # for CPU
|
86 |
+
)
|
87 |
+
# llm = AutoModelForCausalLM.from_pretrained("second-state/stablelm-2-zephyr-1.6b-GGUF", model_type="stablelm-2-zephyr-1_6b-Q4_0.gguf")
|
88 |
|
89 |
print("LLM Initialized...")
|
90 |
|