Instructions to use echocorx/superecho-1-4b-math with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use echocorx/superecho-1-4b-math with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B") model = PeftModel.from_pretrained(base_model, "echocorx/superecho-1-4b-math") - Notebooks
- Google Colab
- Kaggle
SuperEcho 1 · Math 4B
EchoCore arithmetic word-problem specialist built on Qwen3-4B. This release contains a PEFT LoRA adapter, a reversible operator-row edit and a Python client with an exact rational calculator. The adapter loads by default. Pass --edicion to enable the measured edit.
Run
Use a CUDA environment with a compatible CUDA build of PyTorch. The original confirmation environment used PyTorch 2.14.1+cu130. The first run downloads the pinned Qwen3-4B base. A generic PEFT loader loads only the adapter. The supplied client implements the calculator and optional edit.
hf download echocorx/superecho-1-4b-math --local-dir superecho-math
cd superecho-math
sha256sum -c SHA256SUMS
python -m pip install -r requirements.txt
python math_cli.py --edicion "Tres entradas cuestan 21 euros. ¿Cuánto cuestan cinco al mismo precio?"
The verified numerical result in this example is 35. Omit the question to start an interactive session.
Evaluation
All columns use the same pinned backbone, questions, prompt, decoding budget and tools within a row. Counts are correct answers; higher is better. The first table grades the expression with the calculator and uses the declared total when parsing the expression fails. The second grades only the declared total from the same generation. GSM8K uses the full official English test split with the SuperEcho zero-shot CALC/TOTAL prompt and 96 generated tokens. This differs from 8-shot chain-of-thought leaderboard protocols. SVAMP reports the remaining 840 examples after a 160-example pilot. MGSM-Rev2 uses all 250 Spanish prompts in the saved experiment.
| Task | N | Qwen | LoRA | LoRA + edit |
|---|---|---|---|---|
| gsm8k-test | 1319 | 656 | 749 | 764 |
| svamp-reservado | 840 | 632 | 697 | 718 |
| mgsm-rev2-es | 250 | 114 | 135 | 139 |
| Task | N | Qwen | LoRA | LoRA + edit |
|---|---|---|---|---|
| gsm8k-test | 1319 | 386 | 451 | 473 |
| svamp-reservado | 840 | 600 | 679 | 700 |
| mgsm-rev2-es | 250 | 77 | 90 | 99 |
The following table uses the four complete MMLU test subjects named below, five official development examples per subject, the authors’ text prompt and greedy ranking across the next-token logits for space-prefixed A–D. No calculator or chat template is used. These are subject scores. All evaluations are self-reported.
| Task | N | Qwen | LoRA | LoRA + edit |
|---|---|---|---|---|
| mmlu-elementary_mathematics | 378 | 261 | 263 | 263 |
| mmlu-high_school_mathematics | 270 | 127 | 126 | 126 |
| mmlu-college_mathematics | 100 | 43 | 43 | 43 |
| mmlu-abstract_algebra | 100 | 54 | 55 | 55 |
Training and reproducibility
Base revision 1cfa9a7208912126459214e8b04321603b3df60c. Training used NF4 weights with FP16 computation. LoRA rank 16 and alpha 32 span Q/K/V/output attention projections and the gate/up/down MLP projections. AdamW at 0.00006 took 48 updates on 128 filtered GSM8K training examples and 64 synthetic Spanish examples. The objective supervised the expression, total and end of turn. The optional edit uses 64 disjoint calibration examples, including 48 more from GSM8K train and 16 synthetic examples. Half estimate output directions for operator tokens and half choose the scale. The shipped edit uses scale 0.025. The calculator verifies the expression’s numeric value; a valid expression can still misinterpret the question.
On the same 840 SVAMP items, seed 261127 scored 693 with LoRA and 716 after fitting its own operator edit. Its earlier frozen LoRA run scored 693.
The released files use the original seed 261126. The metrics include an independent seed check and every item-level prediction, keyed by the original row order or ID. Official split keys were used only for scoring. Exact training/calibration question matches were checked against the GSM8K test. Qwen pretraining overlap is unknown. This release targets elementary arithmetic in Spanish and English. Evidence for olympiad problems, proof generation and general intelligence remains open.
python evaluate.py gsm8k edit my-gsm8k.jsonl
python evaluate.py mmlu base my-mmlu-base.jsonl
Scores · Per-item predictions · Calibration · GSM8K · MMLU · SVAMP · MGSM-Rev2
Terms
The upstream Qwen base is distributed by its authors under Apache 2.0. Its license is included in BASE-LICENSE.txt. No additional license grant is specified here for the EchoCore contributions.
- Downloads last month
- 55