Update README.md
Browse files
README.md
CHANGED
@@ -20,18 +20,25 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
20 |
## Quick start
|
21 |
|
22 |
```python
|
|
|
23 |
from transformers import pipeline
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
29 |
```
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
|
|
35 |
|
36 |
This model was trained with SFT.
|
37 |
|
|
|
20 |
## Quick start
|
21 |
|
22 |
```python
|
23 |
+
# Use a pipeline as a high-level helper
|
24 |
from transformers import pipeline
|
25 |
|
26 |
+
pipe = pipeline("text-generation", model="Reubencf/gemma3-konkani")
|
27 |
+
messages = [
|
28 |
+
{"role": "user", "content": "Who are you?"},
|
29 |
+
]
|
30 |
+
pipe(messages)
|
31 |
```
|
32 |
+
Using PEFT
|
33 |
+
```python
|
34 |
+
from peft import PeftModel
|
35 |
+
from transformers import AutoModelForCausalLM
|
36 |
|
37 |
+
base_model = AutoModelForCausalLM.from_pretrained("google/gemma-3-4b-it")
|
38 |
+
model = PeftModel.from_pretrained(base_model, "Reubencf/gemma3-konkani")
|
39 |
+
```
|
40 |
|
41 |
+
## Training procedure
|
42 |
|
43 |
This model was trained with SFT.
|
44 |
|