Spaces:
Sleeping
Sleeping
Danielrahmai1991
commited on
Commit
•
6919ed6
1
Parent(s):
2732655
Update app.py
Browse files
app.py
CHANGED
@@ -10,20 +10,20 @@ from langchain.memory import ConversationBufferMemory
|
|
10 |
from langchain_community.chat_models import ChatLlamaCpp
|
11 |
|
12 |
|
13 |
-
callbacks = [StreamingStdOutCallbackHandler()]
|
14 |
-
print("creating ll started")
|
15 |
-
llm = ChatLlamaCpp(
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
)
|
26 |
-
print("creating llm ended")
|
27 |
|
28 |
|
29 |
|
|
|
10 |
from langchain_community.chat_models import ChatLlamaCpp
|
11 |
|
12 |
|
13 |
+
# callbacks = [StreamingStdOutCallbackHandler()]
|
14 |
+
# print("creating ll started")
|
15 |
+
# llm = ChatLlamaCpp(
|
16 |
+
# model_path="finbro-v0.1.0-llama-3-8B-instruct-1m.gguf",
|
17 |
+
# n_batch=8,
|
18 |
+
# temperature=0.85,
|
19 |
+
# max_tokens=256,
|
20 |
+
# top_p=0.95,
|
21 |
+
# top_k = 10,
|
22 |
+
# callback_manager=callbacks,
|
23 |
+
# n_ctx=2048,
|
24 |
+
# verbose=True, # Verbose is required to pass to the callback manager
|
25 |
+
# )
|
26 |
+
# print("creating llm ended")
|
27 |
|
28 |
|
29 |
|