rhaymison commited on
Commit
a3ccf54
·
verified ·
1 Parent(s): 5b21968

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -27,7 +27,7 @@ updated: 09-03-2024
27
  ## Model description
28
  The Cuscuz 7b is a model derived from a fine tuning of the Mixtral 7b. This model was tuned to be specialized in the Northeast region of Brazil.
29
  The model was specialized in a dataset that covered historical, geographical, economic, cultural and culinary issues in the northeast region.
30
- To make better use of the Cuscuz, the ideal is to use the model without quantization. With 8 bits it may present some inconsistencies, but nothing worrying.
31
 
32
  ## How to Use
33
 
@@ -119,6 +119,23 @@ _ = model.generate(**inputs, streamer=streamer, max_new_tokens=200, temperature=
119
  #É uma culinária cheia de sabores e tradições que encantam os visitantes. É uma delícia da nossa terra!
120
  ```
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  ### Training hyperparameters
124
 
 
27
  ## Model description
28
  The Cuscuz 7b is a model derived from a fine tuning of the Mixtral 7b. This model was tuned to be specialized in the Northeast region of Brazil.
29
  The model was specialized in a dataset that covered historical, geographical, economic, cultural and culinary issues in the northeast region.
30
+ To make better use of the Cuscuz, the ideal is to use the model without quantization.
31
 
32
  ## How to Use
33
 
 
119
  #É uma culinária cheia de sabores e tradições que encantam os visitantes. É uma delícia da nossa terra!
120
  ```
121
 
122
+ ### Inferences in 4bits
123
+
124
+ ```python
125
+ runtimeFlag = "cuda:0"
126
+ inputs = tokenizer([f"""<s>Você é um assistente especializado no Nordeste Do Brasil.
127
+ Responda sempre com informações verdadeiras e caso não saiba a informação diga ao usuário que não sabe.
128
+ Evite repetições de informação e responda de maneira coerente.
129
+ [INST] Voce poderia me indicar bons lugares para visitar em Sergipe ?[/INST]"""], return_tensors="pt").to(runtimeFlag)
130
+ ```
131
+
132
+ ```python
133
+ streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
134
+ _ = model.generate(**inputs, streamer=streamer, max_new_tokens=100)
135
+ #Sim, em Sergipe tem locais de interesse como a cidade de São Cristóvão, o Parque dos Falcões, o Museu da Imagem e do Som e o Mercado Thales Ferraz.
136
+ #É um estado com belezas e cultura.
137
+ ```
138
+
139
 
140
  ### Training hyperparameters
141