Selential Core is a Rust-native inference engine for the Qwen3.5 family of models. It implements MoLoRA (Mixture of LoRA Experts) — a technique that extracts individual MoE experts from Qwen's transformer layers, compresses them via SVD into LoRA adapters, and hot-swaps them at runtime based on the query type.
Instead of one model doing everything, Selential builds an orchestra of specialists: a generalist core + coding experts for structural code, flow/error handling, and system I/O.
Type anything — the engine detects what you need and routes to the right expert:
> Implement a generic binary search tree in Rust
🏷️ #algorithms #struct #trait #make
[🏗️ structural]
// Here's a generic BST implementation...
Commands
Command
Description
/help
Show all commands
/orchestra
Show current expert orchestra
/tags
List routing hashtags
/hashtags <query>
Preview hashtag routing
/stats
Session statistics
/reset
Clear conversation
/exit
Quit
Single Prompt Mode
bash
1cargo run --release -- prompt "Write a thread-safe HashMap wrapper in Rust"2cargo run --release -- prompt "#struct #io Implement a BufReader line counter" -e structural
🧠 How It Works
Expert Extraction
Probe phase: Analyze Qwen3.5-35B's 256 MoE experts using activation patterns on coding, reasoning, and chat queries
Selection: Pick the most specialized experts per sub-domain (probe → cosine similarity)
SVD Compression: Compress each expert's weights (3× matrices: gate, up, down) into rank-16 LoRA adapters
GGUF conversion: Merge selected experts into orchestrated GGUF files for llama.cpp
LoRA experts add only ~17-28 MB VRAM with ~10% speed impact — negligible overhead for specialist capabilities.
🛠️ Building from Source
CPU-only (no CUDA)
bash
1# Edit Cargo.toml: remove "cuda" feature from llama-cpp-2 deps2# Then build:3cargo build --release
GPU (CUDA)
bash
1# Requirements: CUDA 12+, cuBLAS2./setup.sh --cuda
3cargo build --release
Full 35B Model
bash
1./setup.sh --big
2# Edit src/config.rs → update base_model_path to the 35B GGUF3# Edit inference.rs → set n_gpu_layers to 25+ (depends on your VRAM)4cargo run --release -- interactive
📊 Probe Results
From our full probe of all 256 MoE experts in Qwen3.5-35B:
Category
Count
%
Active experts
208
81.2%
Coding specialists
70
27.3%
Generalists
138
53.9%
Low-activity
48
18.8%
Qwen's MoE is well-designed — 81% of experts actively contribute. The coding-specific experts (70 total) were our focus for the orchestra architecture.