Downloads Β· 30 days
35
27% of all-time downloads
felixmanojh/Qwen3-4B-Chess-Puzzle-Tutor-Fused-MLX
Qwen3-4B-Chess-Puzzle-Tutor-Fused-MLX is a text generation model from felixmanojh. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
Chess puzzle explanation model optimized for Apple Silicon π
Downloads Β· 30 days
35
27% of all-time downloads
All-time downloads
131
Public
Parameters
4B
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB Β· 99%
How the weights are stored.
U324B Β· 100%
From the Hugging Face model README
Chess puzzle explanation model optimized for Apple Silicon π
This is an MLX-format merged model fine-tuned to generate educational explanations for chess puzzles from the Lichess database. The LoRA adapter has been fused with the base model weights for easy deployment.
pip install mlx mlx-lm
from mlx_lm import load, generate
# Load the fused model (adapter already merged)
model, tokenizer = load("felixmanojh/Qwen3-4B-Chess-Puzzle-Tutor-Fused-MLX")
# Example puzzle
prompt = """Explain this chess puzzle:
Position (FEN): r1bqkb1r/pppp1ppp/2n2n2/4p3/2B1P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 4 4
Solution: Nxe5 Nxe5 d4
Themes: fork pin
Rating: 1500"""
# Generate explanation
response = generate(
model,
tokenizer,
prompt=prompt,
max_tokens=512,
verbose=True
)
print(response)
from mlx_lm import load, generate
model, tokenizer = load("felixmanojh/Qwen3-4B-Chess-Puzzle-Tutor-Fused-MLX")
messages = [
{
"role": "user",
"content": "Explain this chess puzzle:\n\nPosition (FEN): r1bqkb1r/pppp1ppp/2n2n2/4p3/2B1P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 4 4\nSolution: Nxe5 Nxe5 d4\nThemes: fork pin\nRating: 1500"
}
]
# Apply chat template
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, max_tokens=512)
print(response)
β
Apple Silicon optimized β Runs efficiently on M1/M2/M3 Macs
β
Fused adapter β No need to load base + adapter separately
β
Fast inference β Optimized for Metal GPU acceleration
β
Low memory β 4-bit quantization keeps memory usage low
β
Local deployment β Perfect for Mac-based applications
Puzzles filtered for:
Explanations generated using Claude API with consistent prompting for educational quality, focusing on:
| Model | Format | Size | Use Case |
|---|---|---|---|
| Qwen3-4B-Lichess-Chess-Puzzle-Tutor | LoRA adapter | ~150MB | Training, fine-tuning |
| Qwen3-4B-Lichess-Chess-Puzzle-Tutor-Merged | HuggingFace merged | ~8GB | Deployment, Spaces, GPU |
| This model | MLX merged | ~4GB | Apple Silicon, local inference |
Try it live: Chess Puzzle Tutor Space
@software{qwen3_chess_tutor_mlx_2025,
author = {Felix Manojh},
title = {Qwen3-4B-Chess-Puzzle-Tutor-Fused-MLX},
year = {2025},
url = {https://huggingface.co/felixmanojh/Qwen3-4B-Chess-Puzzle-Tutor-Fused-MLX},
note = {MLX-optimized merged model for chess puzzle explanations with Claude-generated training data}
}
Built by Felix Manojh | Optimized for Apple Silicon π