Real-world multi-task showcase running financial trading signal extraction, CSV expense anomaly audits, and chain-of-thought code debugging powered by local Qwen 3.8 distilled models.
| Step 1: Input | Step 2: AI Action | Step 3: Result |
|---|---|---|
| Market feed & CSV dataset | 2B CoT reasoning trace | Audited report in outputs.md |
Think of distillation like condensing a giant 1,000-page encyclopedia into a pocket-sized cheat sheet.
- The Teacher Model (
Qwen3.8-2.4T): A massive AI running on multi-million dollar data centers. It generates step-by-step reasoning solutions ("Chain of Thought"). - The Student Models (
9B/4B/2B): Smaller models trained directly on the teacher's exact reasoning traces. - The Result: You get high-level reasoning skills in small files that run smoothly on everyday laptops, CPU-only SBCs, or budget hardware!
⚠️ Important Note on Naming: These models are independent distilled variants released by community lab Empero AI (empero-ai), trained on teacher outputs mapped onto theQwen3.5architectural base. They are not official releases from the Alibaba Qwen team.
- CPU-Only Capable: No dedicated GPU (graphics card) required! Runs on CPU at ~30–60 tokens/sec.
- 2B Q4_K_M Size: 1.31 GB file size (~1.6 GB runtime RAM footprint).
- Minimum RAM: 2 GB RAM (tight OS headroom).
- Recommended Hardware: 4 GB System RAM (Raspberry Pi 4/5, mini PCs) or any entry-level 2GB GPU.
This showcase executes 3 practical edge tasks in sequence:
- 📈 Financial Trading Risk Signal Extraction: Parses real-time market feed tick data, computes stop-loss targets, and outputs structured trade signals (
JSON). - 🔍 Local CSV Expense Anomaly Audit: Reads
transactions.csv, calculates cumulative expenses, and flags high-risk transactions exceeding budget limits. - 🛠️ Chain-of-Thought Code Debugging: Analyzes Python functions for zero-division vulnerabilities and generates safe, defensive guard-clause solutions.
Download your preferred GGUF model variant directly from HuggingFace:
| Model Variant | MMLU (CoT) | GGUF Repository Link | Target Hardware |
|---|---|---|---|
| Qwen3.8-2B | 54.8% | HuggingFace GGUF | CPU-only, Raspberry Pi, 2GB–4GB RAM |
| Qwen3.8-4B | 55.3% | HuggingFace GGUF | Standard Laptops, 4GB RAM |
| Qwen3.8-9B | 75.1% | HuggingFace GGUF | GTX 1080 / 8GB VRAM (~45 tok/s) |
| Qwen3.8-27B-Ridge | Vision-Text | HuggingFace GGUF | 12GB VRAM Workstations |
To register any downloaded .gguf file into Ollama, create a file named Modelfile in the project folder:
# Modelfile
FROM ./models/Qwen3.8-2B-Q4_K_M.gguf
PARAMETER temperature 0.6
PARAMETER top_p 0.95
PARAMETER top_k 20
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
<think>
"""Register and run qwen3.8:local in Ollama:
# Register Local Model as qwen3.8:local
ollama create qwen3.8:local -f Modelfile
ollama run qwen3.8:localpython main.pyllama-cli -m models/Qwen3.8-2B-Q4_K_M.gguf --temp 0.6 --top-p 0.95 -n 16384 -cnv├── models/
│ └── Qwen3.8-2B-Q4_K_M.gguf
├── transactions.csv
├── main.py
└── README.md
- 📈 Automated Financial Risk Filtering: Real-time ticker sentiment & stop-loss signal generation.
- 🔍 On-Device Expense Auditing: Offline parsing of sensitive financial CSV records on local hardware.
- 💻 Code Safety Verification: Instant detection of runtime vulnerabilities and edge-case exceptions.
- 📚 Context-Aware Document Summarization: Fast extraction of key takeaways from local text files.
- 🤖 Sub-Agent Workflow Orchestration: Rapid step-by-step tool worker node for larger multi-agent systems.
- ⚡ Native Speculative Decoding: Pair 2B student with 27B model for 3x speedup.
- 📱 iOS / Android Metal Acceleration: Direct NPU optimization for mobile apps.
- 🧠 Logit-Level Distillation V2: Higher precision distillation when full logprobs become available.
- 🔧 Tool-Calling Specialist Fine-Tune: Dedicated function-calling weights for agentic loops.
- 💾 8k Hardware Context Optimization: Ultra-compressed KV-cache layout for low VRAM cards.
Qwen 3.8 Distilled, Qwen3.8 2B, Qwen3.8 4B, Qwen3.8 9B, Empero AI, Ollama GGUF, local LLM, edge AI, chain of thought reasoning, Gated DeltaNet, llama.cpp edge inference