jaafarhh commited on
Commit
719f101
·
verified ·
1 Parent(s): e2585fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -59,8 +59,9 @@ class DarijaTherapist:
59
  )
60
 
61
  self.llm = HuggingFaceHub(
62
- repo_id="MBZUAI-Paris/Atlas-Chat-27B",
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