Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
---
|
4 |
+
# Apriel 5B Base (Llamafied)
|
5 |
+
|
6 |
+
An approximate conversion of [Apriel 5B Base](https://huggingface.co/ServiceNow-AI/Apriel-5B-Base) to the Llama format.
|
7 |
+
|
8 |
+
* No `trust_remote_code` required
|
9 |
+
* Compatible w/ popular fine-tuning frameworks
|
10 |
+
* Easier to run
|
11 |
+
|
12 |
+
Usage:
|
13 |
+
|
14 |
+
```python
|
15 |
+
from transformers import pipeline
|
16 |
+
import torch
|
17 |
+
|
18 |
+
device = 'cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu'
|
19 |
+
|
20 |
+
pipe = pipeline('text-generation', model='mrfakename/Apriel-5B-Base-llamafied', device=device)
|
21 |
+
|
22 |
+
print(pipe('It was a dark and stormy night. The wind')[0]['generated_text'])
|
23 |
+
```
|
24 |
+
|
25 |
+
License: MIT (same as the original Apriel 5B model)
|