Skip to content

MathPal: 8th-grade math tutor app powered by ExecuTorch#240

Open
psiddh wants to merge 1 commit into
meta-pytorch:mainfrom
psiddh:mathpal-app
Open

MathPal: 8th-grade math tutor app powered by ExecuTorch#240
psiddh wants to merge 1 commit into
meta-pytorch:mainfrom
psiddh:mathpal-app

Conversation

@psiddh
Copy link
Copy Markdown
Contributor

@psiddh psiddh commented May 26, 2026

On-device AI math tutor for Android with step-by-step problem solving. Runs entirely offline using ExecuTorch + XNNPACK backend.

Features:

  • Ask Anything input with voice-to-text support
  • Practice mode with 40 grade-leveled problems (Grade 4-8)
  • Step-by-step reasoning card with answer validation
  • Supports both #### and \boxed{} answer formats
  • Gamification: XP system, streaks, boss battles, 30 badges
  • Lazy KV cache via DYNAMIC_UNBOUND for memory-efficient inference

Tested models:

  • Qwen2.5-Math-1.5B-Instruct (8da4w): 83% GSM8K, 28 tok/s on S23
  • Qwen3-0.6B fine-tuned on GSM8K: 47% accuracy, 12 tok/s on S23

Also includes macOS SwiftUI app scaffold (apple-mathpal/).

See llm/android/MathPal/README.md for export instructions and model options.

See https://github.com/psiddh/executorch-examples/blob/7d218df15656c28b13a23b4c54e579a677c48943/llm/android/MathPal/README.md

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 26, 2026
On-device AI math tutor for Android with step-by-step problem solving.
Runs entirely offline using ExecuTorch + XNNPACK backend.

Features:
- Ask Anything input with voice-to-text support
- Practice mode with 40 grade-leveled problems (Grade 4-8)
- Step-by-step reasoning card with answer validation
- Supports both #### and \boxed{} answer formats
- Gamification: XP system, streaks, boss battles, 30 badges
- Lazy KV cache via DYNAMIC_UNBOUND for memory-efficient inference

Tested models:
- Qwen2.5-Math-1.5B-Instruct (8da4w): 83% GSM8K, 28 tok/s on S23
- Qwen3-0.6B fine-tuned on GSM8K: 47% accuracy, 12 tok/s on S23

Also includes macOS SwiftUI app scaffold (apple-mathpal/).

See llm/android/MathPal/README.md for export instructions and
model options.

Co-authored-by: Claude <noreply@anthropic.com>
@psiddh
Copy link
Copy Markdown
Contributor Author

psiddh commented May 26, 2026

This is thoroughly tested with dynamic unbound tensor: pytorch/executorch#18350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant