Instructions to use ada-flo/monkey-cpt-arith_op with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ada-flo/monkey-cpt-arith_op with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Update top-level README
Browse files
README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
tags:
|
| 5 |
+
- lora
|
| 6 |
+
- monkey-research
|
| 7 |
+
- arith_op
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# monkey-cpt-arith_op
|
| 11 |
+
|
| 12 |
+
Continued-pretraining (CPT) LoRA adapters, one per synthetic-document bundle condition.
|
| 13 |
+
|
| 14 |
+
From the project *Tell or Show: How Training-Data Format Shapes Implicit
|
| 15 |
+
vs. Explicit Rule Knowledge*.
|
| 16 |
+
|
| 17 |
+
## Layout
|
| 18 |
+
|
| 19 |
+
Adapters are organized as `<base-model>/<bundle-condition>/`:
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
.
|
| 23 |
+
βββ qwen3-4b-instruct-2507/ # base = Qwen/Qwen3-4B-Instruct-2507
|
| 24 |
+
βββ fewshot/
|
| 25 |
+
βββ explicit/
|
| 26 |
+
βββ explicit_fewshot/
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
Each leaf subdir is a self-contained PEFT-loadable adapter:
|
| 30 |
+
- `adapter_config.json`
|
| 31 |
+
- `adapter_model.safetensors`
|
| 32 |
+
- `README.md` (per-variant details)
|
| 33 |
+
- `trainer_state.json` (training-time metrics)
|
| 34 |
+
|
| 35 |
+
Future base models (Qwen3-7B etc.) will appear as sibling base-model dirs.
|
| 36 |
+
|
| 37 |
+
## Loading
|
| 38 |
+
|
| 39 |
+
```python
|
| 40 |
+
from peft import PeftModel
|
| 41 |
+
from transformers import AutoModelForCausalLM
|
| 42 |
+
|
| 43 |
+
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Instruct-2507", torch_dtype="bfloat16")
|
| 44 |
+
model = PeftModel.from_pretrained(base, "ada-flo/monkey-cpt-arith_op", subfolder="qwen3-4b-instruct-2507/fewshot")
|
| 45 |
+
```
|