Adding `safetensors` variant of this model
#1
by
SFconvertbot
- opened
- README.md +0 -20
- pytorch_model.bin +0 -3
README.md
CHANGED
|
@@ -42,26 +42,6 @@ This model is a **preview release** intended for:
|
|
| 42 |
- Evaluation and benchmarking
|
| 43 |
- Research in low- and high-resource European languages
|
| 44 |
|
| 45 |
-
|
| 46 |
-
## Use with transformers
|
| 47 |
-
|
| 48 |
-
Quick start with `Transformers` both for GPU and CPU enabled envs:
|
| 49 |
-
|
| 50 |
-
```python
|
| 51 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
| 52 |
-
import torch
|
| 53 |
-
|
| 54 |
-
model_name = "minilingua-ai/MiniLingua-1b-Instruct"
|
| 55 |
-
|
| 56 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 57 |
-
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", dtype=torch.float16)
|
| 58 |
-
gen = pipeline("text-generation", model=model, tokenizer=tokenizer, trust_remote_code=True)
|
| 59 |
-
|
| 60 |
-
prompt = "Translate from Bulgarian: Здравейте! Как сте? Translation:"
|
| 61 |
-
out = gen(prompt, max_new_tokens=128, do_sample=False)
|
| 62 |
-
print(out[0])
|
| 63 |
-
```
|
| 64 |
-
|
| 65 |
## Limitations
|
| 66 |
|
| 67 |
- This version is a first-stage SFT release; alignment steps is not applied.
|
|
|
|
| 42 |
- Evaluation and benchmarking
|
| 43 |
- Research in low- and high-resource European languages
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
## Limitations
|
| 46 |
|
| 47 |
- This version is a first-stage SFT release; alignment steps is not applied.
|
pytorch_model.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0ba5f38bd61a6a4602b46facaea045e8dcbb9ebcfc68b92c6d1e1f29ee49dcfb
|
| 3 |
-
size 2608489245
|
|
|
|
|
|
|
|
|
|
|
|