Update README.md
Browse files
README.md
CHANGED
@@ -30,14 +30,10 @@ alpaca_prompt = """Below is an instruction that describes a task, paired with an
|
|
30 |
### load the model
|
31 |
|
32 |
```python
|
33 |
-
from
|
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
|
43 |
|
|
|
30 |
### load the model
|
31 |
|
32 |
```python
|
33 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
+
tokenizer = AutoTokenizer.from_pretrained("damerajee/tinyllama-sft-small-v2")
|
36 |
+
model = AutoModelForCausalLM.from_pretrained("damerajee/tinyllama-sft-small-v2")
|
37 |
```
|
38 |
### Inference
|
39 |
|