MathPal: 8th-grade math tutor app powered by ExecuTorch#240
Open
psiddh wants to merge 1 commit into
Open
Conversation
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>
Contributor
Author
|
This is thoroughly tested with dynamic unbound tensor: pytorch/executorch#18350 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On-device AI math tutor for Android with step-by-step problem solving. Runs entirely offline using ExecuTorch + XNNPACK backend.
Features:
Tested models:
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