mlabonne commited on
Commit
5bd5512
·
1 Parent(s): c4550c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -14,7 +14,7 @@ tokenizer = AutoTokenizer.from_pretrained(
14
  model = AutoModelForCausalLM.from_pretrained(
15
  "mlabonne/phixtral-2x2_8",
16
  torch_dtype="auto",
17
- load_in_4bit=True,
18
  trust_remote_code=True
19
  )
20
 
@@ -62,8 +62,13 @@ def predict(message, history):
62
 
63
  # Setting up the Gradio chat interface.
64
  gr.ChatInterface(predict,
65
- title="🔀 Phixtral 2x2_8 Chatbot",
66
- description="""<center><img src="https://i.imgur.com/2JUatEg.png" width="33%"></center>\n\nChat with [mlabonne/phixtral-2x2_8](https://huggingface.co/mlabonne/phixtral-2x2_8), the first Mixture of Experts made by merging two fine-tuned [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) models. This small model (4.46B param) is good in various tasks, such as programming, story writing, and more.""",
 
 
 
 
 
67
  examples=[
68
  'Can you solve the equation 2x + 3 = 11 for x?',
69
  'Write an epic poem about Ancient Rome.',
 
14
  model = AutoModelForCausalLM.from_pretrained(
15
  "mlabonne/phixtral-2x2_8",
16
  torch_dtype="auto",
17
+ load_in_8bit=True,
18
  trust_remote_code=True
19
  )
20
 
 
62
 
63
  # Setting up the Gradio chat interface.
64
  gr.ChatInterface(predict,
65
+ title="🔀 Phixtral Chat",
66
+ description="""
67
+ <center><img src="https://i.imgur.com/2JUatEg.png" width="33%"></center>\n\n
68
+ Chat with [mlabonne/phixtral-2x2_8](https://huggingface.co/mlabonne/phixtral-2x2_8), the first Mixture of Experts made by merging two fine-tuned [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) models.
69
+ This small model (4.46B param) is good for various tasks, such as programming, dialogues, story writing, and more.\n\n
70
+ ♥ If you like this work, please follow me on [Hugging Face](https://huggingface.co/mlabonne) and [Twitter](https://twitter.com/maximelabonne).
71
+ """,
72
  examples=[
73
  'Can you solve the equation 2x + 3 = 11 for x?',
74
  'Write an epic poem about Ancient Rome.',