Instructions to use luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16
Run Hermes
hermes
- OpenClaw new
How to use luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16", "messages": [ {"role": "user", "content": "Hello"} ] }'
LongShu · Reaper-V1 (99B FP16 Edition)
An ultra-large multimodal MoE model with 99B total parameters / 10B active, featuring 205 experts and native vision support. Quantized with FP16 baseline for maximum precision on consumer-grade Apple Silicon hardware.
github: https://github.com/luoyike2003ls/LongShuGameDev
🎯 Model Overview
This is the FP16 baseline variant of the LongShu Reaper series, built on the massive Qwen3.5-99B MoE architecture with 205 routed experts. Unlike the standard 122B-A10B version, this model features:
- Significantly larger expert pool (205 vs 105 experts) for richer knowledge capacity
- FP16 quantization baseline (not BF16) for better compatibility and precision
- Native multimodal support with vision config injected for image understanding
- 3.585 bits-per-weight extreme compression retaining maximum reasoning capability
🏗️ REAP Ecosystem
LongShu is the central brain of a complete game development agent network:
| Role | Codename | Positioning | Core Capabilities |
|---|---|---|---|
| Commander | Tiance | Core brain, logic reasoning hub | Global planning, system decomposition, task dispatch |
| Architect | Xuangou | Code architecture expert | Tech structure analysis, architecture optimization |
| Executor | Moxing | Task execution specialist | Coding, debugging, test case generation |
| Watcher | Zhuzhao | Monitoring & alerting expert | Log analysis, anomaly detection, risk early warning |
| Scholar | Wenyuan | Knowledge management expert | Documentation understanding, knowledge graphs |
| Coordinator | Hengshu | Team collaboration expert | Intelligent task allocation, cross-functional coordination |
⚡ Core Technical Highlights
Massive MoE Architecture
- 48-layer deep network with hybrid Linear + Full Attention
- 205 routed experts, only a subset activated per token
- Enormous knowledge capacity with efficient sparse computation
FP16 Precision Baseline
- Quantization coefficients stored in float16 (not bfloat16)
- Better compatibility across platforms and inference engines
- Embeddings protected at 6-bit for maximum semantic fidelity
Game Engine-Aware Hybrid Quantization Strategy
| Component | Bits | Group Size | Rationale |
|---|---|---|---|
| Embeddings & LM Head | 6-bit | 64 | Semantic fidelity hub |
| Attention Layers | 4-bit | 64 | Core reasoning mechanism |
| Shared Experts | 4-bit | 64 | Critical path components |
| Routed Experts | 3-bit | 64 | Massive pool, extreme compression |
| Router Gate | 4-bit | 64 | Decision-critical routing |
Vision Multimodal Support
- Vision config injected from original model
- Supports
image_token_id,video_token_id,vision_start/end_token_id - Ready for visual understanding tasks in game development
📊 Model Specifications
| Metric | Value |
|---|---|
| Total Parameters | ~99B |
| Active Parameters | ~10B |
| Number of Experts | 205 |
| Expert Layers | 48 |
| Quantization | 3.585 bpw (FP16 baseline) |
| Model Size | ~41 GB |
| Context Length | 262,144 tokens (256K) |
| Inference Speed | ~35 tokens/s (Mac mini M4 Pro) |
| TTFT (First Token) | ~10.75s |
💻 Hardware Requirements
| Configuration | Recommendation |
|---|---|
| Mac | M2/M3/M4 series, 64GB+ Unified Memory |
| PC | Dual RTX 3090/4090 (24GB+) |
| Format | MLX 4-bit with FP16 baseline |
| Speed | ~35 tokens/s (Mac mini M4 Pro 64GB) |
🚀 Quick Start
from mlx_lm import load, generate
model_path = "luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16"
model, tokenizer = load(model_path)
prompt = "Explain the architecture of a scalable MMO server system"
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
response = generate(model, tokenizer, prompt=text, max_tokens=2048)
print(response)
🎮 Use Cases
- Game System Architecture Design — Decompose complex requirements into modular architectures
- Unreal/Unity Engine Expert — Deep understanding of engine internals and APIs
- AI Behavior Tree Design — Design and optimize game AI systems
- Code Review & Optimization — Review code quality, identify performance bottlenecks
- Multimodal Game Asset Analysis — Analyze game screenshots, UI designs, and visual assets
📄 License
Apache 2.0 License
LongShu · AI-Powered Partner for Game Development
- Downloads last month
- 499
4-bit
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("luoyike2003/LongShu-Qwen3.5-99B-Reap-GameDev-MLX-4bit-FP16") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True)