Update README.md
Browse files
README.md
CHANGED
@@ -14,3 +14,15 @@ tags:
|
|
14 |
|
15 |
vortex-3b is a 2.78 billion parameter causal language model created by OEvortex that is derived from EleutherAI's Pythia-2.8b and fine-tuned on Vortex-50k dataset'
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
vortex-3b is a 2.78 billion parameter causal language model created by OEvortex that is derived from EleutherAI's Pythia-2.8b and fine-tuned on Vortex-50k dataset'
|
16 |
|
17 |
+
```python
|
18 |
+
from transformers import pipeline
|
19 |
+
|
20 |
+
# Initialize the pipeline
|
21 |
+
pipe = pipeline("text-generation", model="OEvortex/vortex-3b")
|
22 |
+
|
23 |
+
# Use the pipeline
|
24 |
+
text = "Once upon a time"
|
25 |
+
generated_text = pipe(text, max_length=100, do_sample=True)[0]['generated_text']
|
26 |
+
|
27 |
+
print(generated_text)
|
28 |
+
```
|