Update README.md
Browse files
README.md
CHANGED
@@ -24,6 +24,20 @@ Both base models are fine-tuned versions of [Mistral-7B-v0.1](https://huggingfac
|
|
24 |
- **Languages:** English and German
|
25 |
- **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
### Acknowledgements
|
28 |
|
29 |
- This model release is heavily inspired by [Weyaxi/OpenHermes-2.5-neural-chat-v3-2-Slerp](https://huggingface.co/Weyaxi/OpenHermes-2.5-neural-chat-v3-2-Slerp)
|
|
|
24 |
- **Languages:** English and German
|
25 |
- **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)
|
26 |
|
27 |
+
### How to use
|
28 |
+
|
29 |
+
You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
|
30 |
+
set a seed for reproducibility:
|
31 |
+
|
32 |
+
```python
|
33 |
+
>>> from transformers import pipeline, set_seed
|
34 |
+
>>> generator = pipeline('text-generation', model='malteos/hermeo-7b')
|
35 |
+
>>> set_seed(42)
|
36 |
+
>>> generator("Hallo, Ich bin ein Sprachmodell,", max_length=40, num_return_sequences=1)
|
37 |
+
[{'generated_text': 'Hallo, Ich bin ein Sprachmodell, das dir bei der Übersetzung von Texten zwischen Deutsch und Englisch helfen kann. Wenn du mir einen Text in Deutsch'}]
|
38 |
+
```
|
39 |
+
|
40 |
+
|
41 |
### Acknowledgements
|
42 |
|
43 |
- This model release is heavily inspired by [Weyaxi/OpenHermes-2.5-neural-chat-v3-2-Slerp](https://huggingface.co/Weyaxi/OpenHermes-2.5-neural-chat-v3-2-Slerp)
|