Instructions to use svjack/Qwen2-1_5B_Function_Call_tiny_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use svjack/Qwen2-1_5B_Function_Call_tiny_lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "svjack/Qwen2-1_5B_Function_Call_tiny_lora") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -190,7 +190,7 @@ Action: calculate_gpa
|
|
| 190 |
Action Input: {"grades": ["A", "A", "B", "C"], "hours": [3, 4, 3, 2]}
|
| 191 |
[('calculate_gpa', '{"grades": ["A", "A", "B", "C"], "hours": [3, 4, 3, 2]}')]
|
| 192 |
3.42
|
| 193 |
-
|
| 194 |
```
|
| 195 |
|
| 196 |
# Inference
|
|
@@ -230,7 +230,7 @@ Action: calculate_gpa
|
|
| 230 |
Action Input: {"grades": ["A", "A", "B", "C"], "hours": [3, 4, 3, 2]}
|
| 231 |
[('calculate_gpa', '{"grades": ["A", "A", "B", "C"], "hours": [3, 4, 3, 2]}')]
|
| 232 |
3.42
|
| 233 |
-
|
| 234 |
```
|
| 235 |
|
| 236 |
|
|
|
|
| 190 |
Action Input: {"grades": ["A", "A", "B", "C"], "hours": [3, 4, 3, 2]}
|
| 191 |
[('calculate_gpa', '{"grades": ["A", "A", "B", "C"], "hours": [3, 4, 3, 2]}')]
|
| 192 |
3.42
|
| 193 |
+
Your calculated GPA is 3.42.
|
| 194 |
```
|
| 195 |
|
| 196 |
# Inference
|
|
|
|
| 230 |
Action Input: {"grades": ["A", "A", "B", "C"], "hours": [3, 4, 3, 2]}
|
| 231 |
[('calculate_gpa', '{"grades": ["A", "A", "B", "C"], "hours": [3, 4, 3, 2]}')]
|
| 232 |
3.42
|
| 233 |
+
你的GPA是3.42。
|
| 234 |
```
|
| 235 |
|
| 236 |
|