Upload Indo Math Teacher with Gasing method
Browse files- Modelfile +16 -0
- README.md +71 -0
- adapter/0000100_adapters.safetensors +3 -0
- adapter/0000200_adapters.safetensors +3 -0
- adapter/adapter_config.json +30 -0
- adapter/adapters.safetensors +3 -0
- config.json +8 -0
Modelfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM Qwen/Qwen2.5-Math-1.5B
|
2 |
+
SYSTEM "You are a math teacher using the Gasing method"
|
3 |
+
|
4 |
+
PARAMETER temperature 0.1
|
5 |
+
PARAMETER top_p 0.9
|
6 |
+
PARAMETER num_predict 200
|
7 |
+
|
8 |
+
# Set stop sequences
|
9 |
+
TEMPLATE "{ .System }\n\n{ .Prompt }"
|
10 |
+
STOP "[/INST]"
|
11 |
+
STOP ">>> "
|
12 |
+
STOP "
|
13 |
+
|
14 |
+
Human:"
|
15 |
+
STOP "
|
16 |
+
Human:"
|
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- id
|
4 |
+
- en
|
5 |
+
tags:
|
6 |
+
- gasing-method
|
7 |
+
- math-tutor
|
8 |
+
- indonesian
|
9 |
+
- education
|
10 |
+
- ollama
|
11 |
+
license: apache-2.0
|
12 |
+
base_model: Qwen/Qwen2.5-Math-1.5B
|
13 |
+
---
|
14 |
+
|
15 |
+
# Indo Math Teacher - Gasing Method
|
16 |
+
|
17 |
+
This model is a fine-tuned version of Qwen/Qwen2.5-Math-1.5B specialized in teaching mathematics using the Gasing method in Bahasa Indonesia.
|
18 |
+
|
19 |
+
## Model Description
|
20 |
+
|
21 |
+
The Gasing method (Gampang, Asyik, dan Menyenangkan - Easy, Fun, and Enjoyable) is a teaching approach that simplifies complex mathematical concepts through concrete, easy-to-understand steps.
|
22 |
+
|
23 |
+
This model can:
|
24 |
+
- Solve basic arithmetic problems directly and simply
|
25 |
+
- Explain problem-solving steps in a clear manner
|
26 |
+
- Use the Gasing method's approach to mathematical education
|
27 |
+
|
28 |
+
## Usage with Ollama
|
29 |
+
|
30 |
+
To use this model with Ollama:
|
31 |
+
|
32 |
+
1. Install [Ollama](https://ollama.com) on your device
|
33 |
+
2. Create a Modelfile:
|
34 |
+
|
35 |
+
```
|
36 |
+
FROM Qwen/Qwen2.5-Math-1.5B
|
37 |
+
SYSTEM "You are a math teacher using the Gasing method"
|
38 |
+
|
39 |
+
PARAMETER temperature 0.1
|
40 |
+
PARAMETER top_p 0.9
|
41 |
+
PARAMETER num_predict 200
|
42 |
+
|
43 |
+
# Set stop sequences
|
44 |
+
TEMPLATE "{ .System }\n\n{ .Prompt }"
|
45 |
+
STOP "[/INST]"
|
46 |
+
STOP ">>> "
|
47 |
+
STOP "\n\nHuman:"
|
48 |
+
STOP "\nHuman:"
|
49 |
+
```
|
50 |
+
|
51 |
+
3. Create the model in Ollama:
|
52 |
+
```bash
|
53 |
+
ollama create indo_math_teacher -f Modelfile
|
54 |
+
```
|
55 |
+
|
56 |
+
4. Run the model:
|
57 |
+
```bash
|
58 |
+
ollama run indo_math_teacher
|
59 |
+
```
|
60 |
+
|
61 |
+
## Example Usage
|
62 |
+
|
63 |
+
**User**: "Jelaskan cara menghitung 8 ditambah 5 menggunakan metode Gasing!"
|
64 |
+
|
65 |
+
**Model**: "Simpan 8 di kepala dan 5 di tangan. Pasangan 8 untuk mencapai 10 adalah 2. Ambil 2 dari 5 di tangan. Sekarang di kepala kita punya 10, dan di tangan tersisa 3. Jadi, 10 ditambah 3 sama dengan 13."
|
66 |
+
|
67 |
+
## Model Limitations
|
68 |
+
|
69 |
+
- This model is specifically trained for mathematical concepts using the Gasing method
|
70 |
+
- It works best with arithmetic problems and basic math concepts
|
71 |
+
- Responses are optimized for Indonesian language
|
adapter/0000100_adapters.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e056dbe73eec1bb3c19be89b30d92d4eb87b268f9c405090972d718f185b194
|
3 |
+
size 2497239
|
adapter/0000200_adapters.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:248e50c42815bae15cec2942c60692f7dd1fc0562257c448dc6a3e1ad0397490
|
3 |
+
size 2497239
|
adapter/adapter_config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"adapter_path": "./adapters/Qwen/Qwen2.5-Math-1.5B_indo_tutor_20250327_153426",
|
3 |
+
"batch_size": 4,
|
4 |
+
"config": null,
|
5 |
+
"data": "./data/indo_tutor",
|
6 |
+
"fine_tune_type": "lora",
|
7 |
+
"grad_checkpoint": false,
|
8 |
+
"iters": 200,
|
9 |
+
"learning_rate": 5e-06,
|
10 |
+
"lora_parameters": {
|
11 |
+
"rank": 8,
|
12 |
+
"alpha": 16,
|
13 |
+
"dropout": 0.0,
|
14 |
+
"scale": 10.0
|
15 |
+
},
|
16 |
+
"lr_schedule": null,
|
17 |
+
"mask_prompt": false,
|
18 |
+
"max_seq_length": 2048,
|
19 |
+
"model": "Qwen/Qwen2.5-Math-1.5B",
|
20 |
+
"num_layers": 16,
|
21 |
+
"resume_adapter_file": null,
|
22 |
+
"save_every": 100,
|
23 |
+
"seed": 0,
|
24 |
+
"steps_per_eval": 200,
|
25 |
+
"steps_per_report": 10,
|
26 |
+
"test": false,
|
27 |
+
"test_batches": 500,
|
28 |
+
"train": true,
|
29 |
+
"val_batches": 25
|
30 |
+
}
|
adapter/adapters.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:248e50c42815bae15cec2942c60692f7dd1fc0562257c448dc6a3e1ad0397490
|
3 |
+
size 2497239
|
config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_model": "Qwen/Qwen2.5-Math-1.5B",
|
3 |
+
"model_type": "lora",
|
4 |
+
"system_prompt": "You are a math teacher using the Gasing method",
|
5 |
+
"temperature": 0.1,
|
6 |
+
"top_p": 0.9,
|
7 |
+
"num_predict": 200
|
8 |
+
}
|