Instructions to use damerajee/Tinyllama-sft-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use damerajee/Tinyllama-sft-small with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/tinyllama-bnb-4bit") model = PeftModel.from_pretrained(base_model, "damerajee/Tinyllama-sft-small") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -34,9 +34,9 @@ from peft import PeftModel, PeftConfig
|
|
| 34 |
from transformers import AutoModelForCausalLM ,AutoTokenizer
|
| 35 |
|
| 36 |
config = PeftConfig.from_pretrained("damerajee/Tinyllama-sft-small")
|
| 37 |
-
model = AutoModelForCausalLM.from_pretrained("unsloth/tinyllama
|
| 38 |
tokenizer=AutoTokenizer.from_pretrained("damerajee/Tinyllama-sft-small")
|
| 39 |
-
model = PeftModel.from_pretrained(model, "damerajee/Tinyllama-sft-small")
|
| 40 |
|
| 41 |
```
|
| 42 |
### Inference
|
|
|
|
| 34 |
from transformers import AutoModelForCausalLM ,AutoTokenizer
|
| 35 |
|
| 36 |
config = PeftConfig.from_pretrained("damerajee/Tinyllama-sft-small")
|
| 37 |
+
model = AutoModelForCausalLM.from_pretrained("unsloth/tinyllama")
|
| 38 |
tokenizer=AutoTokenizer.from_pretrained("damerajee/Tinyllama-sft-small")
|
| 39 |
+
model = PeftModel.from_pretrained(model, "damerajee/Tinyllama-sft-small")l")
|
| 40 |
|
| 41 |
```
|
| 42 |
### Inference
|