Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,9 @@ class DarijaTherapist:
|
|
59 |
)
|
60 |
|
61 |
self.llm = HuggingFaceHub(
|
62 |
-
repo_id="MBZUAI-Paris/Atlas-Chat-
|
63 |
-
model_kwargs={"temperature": 0.7, "max_length": 512},
|
|
|
64 |
huggingfacehub_api_token=os.getenv("HUGGINGFACE_API_TOKEN")
|
65 |
)
|
66 |
|
|
|
59 |
)
|
60 |
|
61 |
self.llm = HuggingFaceHub(
|
62 |
+
repo_id="MBZUAI-Paris/Atlas-Chat-9B",
|
63 |
+
model_kwargs={"temperature": 0.7, "max_length": 512, "torch_dtype": torch.bfloat16, "do_sample": True},
|
64 |
+
device="cuda",
|
65 |
huggingfacehub_api_token=os.getenv("HUGGINGFACE_API_TOKEN")
|
66 |
)
|
67 |
|