Update README.md
Browse files
README.md
CHANGED
|
@@ -73,6 +73,18 @@ prompt = """Ci-dessous se trouve une instruction qui décrit une tâche. Écrive
|
|
| 73 |
Donne moi la recette pour faire un bon mojito
|
| 74 |
|
| 75 |
### Réponse :"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
completions = pipeline_instruct(prompt, **generation_kwargs)
|
| 77 |
for completion in completions:
|
| 78 |
print(prompt + " […]" + completion['generated_text'])
|
|
@@ -135,7 +147,7 @@ J'apprécie les fruits au sirop
|
|
| 135 |
Positif
|
| 136 |
|
| 137 |
</details>
|
| 138 |
-
|
| 139 |
<summary>output sentiment claire base (click)</summary>
|
| 140 |
### Instruction :
|
| 141 |
Détermine le sentiment associé au texte parmis positif, négatif, neutre
|
|
@@ -161,7 +173,9 @@ I used this [guide](https://wandb.ai/capecape/alpaca_ft/reports/How-to-Fine-tune
|
|
| 161 |
|
| 162 |
#### Training Hyperparameters
|
| 163 |
|
| 164 |
-
- **Training regime:**
|
|
|
|
|
|
|
| 165 |
4 bits
|
| 166 |
|
| 167 |
per_device_train_batch_size = 4 #4
|
|
@@ -191,6 +205,7 @@ peft_config = LoraConfig(
|
|
| 191 |
"dense_4h_to_h",
|
| 192 |
]
|
| 193 |
)
|
|
|
|
| 194 |
|
| 195 |
|
| 196 |
|
|
|
|
| 73 |
Donne moi la recette pour faire un bon mojito
|
| 74 |
|
| 75 |
### Réponse :"""
|
| 76 |
+
|
| 77 |
+
prompt = """Ci-dessous se trouve une instruction qui décrit une tâche. Écrivez une réponse qui complète de manière appropriée la demande.
|
| 78 |
+
|
| 79 |
+
### Instruction :
|
| 80 |
+
Détermine le sentiment associé au texte parmis positif, négatif, neutre
|
| 81 |
+
|
| 82 |
+
### Entrée
|
| 83 |
+
J'apprécie les fruits au sirop
|
| 84 |
+
|
| 85 |
+
### Réponse :"""
|
| 86 |
+
|
| 87 |
+
|
| 88 |
completions = pipeline_instruct(prompt, **generation_kwargs)
|
| 89 |
for completion in completions:
|
| 90 |
print(prompt + " […]" + completion['generated_text'])
|
|
|
|
| 147 |
Positif
|
| 148 |
|
| 149 |
</details>
|
| 150 |
+
<details>
|
| 151 |
<summary>output sentiment claire base (click)</summary>
|
| 152 |
### Instruction :
|
| 153 |
Détermine le sentiment associé au texte parmis positif, négatif, neutre
|
|
|
|
| 173 |
|
| 174 |
#### Training Hyperparameters
|
| 175 |
|
| 176 |
+
- **Training regime:**
|
| 177 |
+
|
| 178 |
+
```
|
| 179 |
4 bits
|
| 180 |
|
| 181 |
per_device_train_batch_size = 4 #4
|
|
|
|
| 205 |
"dense_4h_to_h",
|
| 206 |
]
|
| 207 |
)
|
| 208 |
+
```
|
| 209 |
|
| 210 |
|
| 211 |
|