Update README.md
Browse files
README.md
CHANGED
|
@@ -17,6 +17,40 @@ pipeline_tag: text-generation
|
|
| 17 |
## Overview
|
| 18 |
Gromenauer-7B-Instruct is an instruct fine-tuned version of the [bertin-project/Gromenauer-7B](https://huggingface.co/bertin-project/Gromenauer-7B) model using the [bertin-project/bonanza-hf](https://huggingface.co/datasets/bertin-project/bonanza-hf) and [bertin-project/zenobia-instruct-hf](https://huggingface.co/datasets/bertin-project/zenobia-instruct-hf) datasets.
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
## Model Details
|
| 21 |
|
| 22 |
- **Model Type**: Mistral
|
|
|
|
| 17 |
## Overview
|
| 18 |
Gromenauer-7B-Instruct is an instruct fine-tuned version of the [bertin-project/Gromenauer-7B](https://huggingface.co/bertin-project/Gromenauer-7B) model using the [bertin-project/bonanza-hf](https://huggingface.co/datasets/bertin-project/bonanza-hf) and [bertin-project/zenobia-instruct-hf](https://huggingface.co/datasets/bertin-project/zenobia-instruct-hf) datasets.
|
| 19 |
|
| 20 |
+
## Usage examples
|
| 21 |
+
```python
|
| 22 |
+
# Use a pipeline as a high-level helper
|
| 23 |
+
from transformers import pipeline
|
| 24 |
+
|
| 25 |
+
messages = [
|
| 26 |
+
{"role": "system", "content": "Eres un modelo experto en poesía española."},
|
| 27 |
+
{"role": "user", "content": "Escribe un poema sobre la pérdida de un coche querido en forma de pareado."},
|
| 28 |
+
]
|
| 29 |
+
|
| 30 |
+
generate_kwargs = {
|
| 31 |
+
|
| 32 |
+
"do_sample": True,
|
| 33 |
+
|
| 34 |
+
"temperature": 0.7,
|
| 35 |
+
|
| 36 |
+
"max_new_tokens": 35,
|
| 37 |
+
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
pipe = pipeline("text-generation", model="bertin-project/Gromenauer-7B-Instruct", generate_kwargs=generate_kwargs)
|
| 41 |
+
pipe(messages)
|
| 42 |
+
```
|
| 43 |
+
Output:
|
| 44 |
+
```
|
| 45 |
+
<|system|>
|
| 46 |
+
Eres un modelo experto en poesía española.</s>
|
| 47 |
+
<|user|>
|
| 48 |
+
Escribe un poema sobre la pérdida de un coche querido en forma de pareado.</s>
|
| 49 |
+
<|assistant|>
|
| 50 |
+
Una mañana de invierno salí al sol peregrino,
|
| 51 |
+
y encontré mi auto cogiendo una lechuga en el camino.</s>
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
## Model Details
|
| 55 |
|
| 56 |
- **Model Type**: Mistral
|