Transformers
Safetensors
Kyrgyz
Kazakh
Polish
continued-pretraining
cpt
merged-lora
multilingual
cross-lingual-transfer
Instructions to use the-cramer-project/cpt-models-t3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use the-cramer-project/cpt-models-t3 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("the-cramer-project/cpt-models-t3", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md (t3pilot)
Browse files
README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
library_name: transformers
|
| 4 |
+
tags: [continued-pretraining, cpt, merged-lora, multilingual, cross-lingual-transfer]
|
| 5 |
+
language: [ky, kk, pl]
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# CPT merged full models — run `t3pilot` (t3 cross-lingual experiment)
|
| 9 |
+
|
| 10 |
+
Standalone full models = base (meta-llama/Llama-3.1-8B) with the trained LoRA
|
| 11 |
+
adapter merged in (r=64, lr=5e-5, 30% English mixed stream, 2 epochs, frozen
|
| 12 |
+
embeddings/lm_head). Load directly with `AutoModelForCausalLM.from_pretrained`,
|
| 13 |
+
no PEFT. Per-language eval losses are in `manifest.json`.
|
| 14 |
+
|
| 15 |
+
## Load
|
| 16 |
+
|
| 17 |
+
```python
|
| 18 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 19 |
+
mid = "the-cramer-project/cpt-models-t3"
|
| 20 |
+
sub = "Llama-3.1-8B/FT-KY"
|
| 21 |
+
model = AutoModelForCausalLM.from_pretrained(mid, subfolder=sub, torch_dtype="bfloat16")
|
| 22 |
+
tok = AutoTokenizer.from_pretrained(mid, subfolder=sub)
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
## Models
|
| 26 |
+
|
| 27 |
+
| Subfolder | Base | Language | LoRA r | LR | Target eval loss |
|
| 28 |
+
|---|---|---|---|---|---|
|
| 29 |
+
| `Llama-3.1-8B/FT-KY` | meta-llama/Llama-3.1-8B | Kyrgyz | 64 | 5e-05 | 1.021923542022705 |
|
| 30 |
+
| `Llama-3.1-8B/FT-KZ` | meta-llama/Llama-3.1-8B | Kazakh | 64 | 5e-05 | 1.0028022527694702 |
|