How giannisanni/pulsar works
Pulsar is a Rust/CUDA inference engine for large MoE models, streaming routed experts from NVMe while keeping decision-making state resident on the GPU. Its principal workflow is a chat request through the serving interface to model inference and generated text; documented capabilities also include GGUF-based model handling, multiple model architectures, chat templates, quantization, and an optional CPU expert lane. The excerpts show serving’s HTTP role and tool-call parsing, but not the full runtime wiring, so some documented subsystem links are omitted rather than inferred.
Main entry points: pulsar-cli.rs Inference Engine · main.rs Chat Server · pulsar-quant.rs GGUF Quantizer · lib.rs GGUF Reader
Components 17
Serving and Chat
- Chat Server
crates/serve/src/main.rs - Tool Call Parser
crates/serve/src/tool_calls.rs - MCP Hub
crates/serve/src/mcp.rs - Web UI
crates/serve/webui/index.html
Model Inference
- Inference Engine
crates/engine/src/bin/pulsar-cli.rs - DeepSeek V4
crates/engine/src/real/dsv4.rs - Qwen 3.5/3.6
crates/engine/src/real/qwen35.rs
Runtime Support
- GGUF Reader
crates/gguf/src/lib.rs - Tokenizer
crates/tokenizer/src/lib.rs - Chat Templates
crates/tokenizer/src/chat_template.rs - Expert Streaming
crates/stream/src/lib.rs - CUDA Kernels
crates/kernels/src/lib.rs - CPU Expert Math
crates/quant/src/cpu_dot.rs - NVMe Model Weights
Model Preparation
- GGUF Quantizer
crates/quant/src/bin/pulsar-quant.rs - Quantization Codecs
crates/quant/src/lib.rs
Other components
- Chat User
Connections 15
- Chat User → Chat Server: sends chat
crates/serve/src/main.rs - Chat Server → Tool Call Parser: parses calls
crates/serve/src/main.rs - Chat Server → MCP Hub: manages tools
crates/serve/src/main.rs - Chat Server → Inference Engine: requests inference
crates/serve/src/main.rs - Inference Engine → GGUF Reader: loads model
- Inference Engine → Tokenizer: encodes prompts
- Inference Engine → Chat Templates: formats chat
- Inference Engine → DeepSeek V4: runs architecture
- Inference Engine → Qwen 3.5/3.6: runs architecture
- Inference Engine → Expert Streaming: streams experts
- Inference Engine → CUDA Kernels: executes GPU work
- Inference Engine → CPU Expert Math: computes CPU misses
- NVMe Model Weights → Expert Streaming: supplies weights
README.md - GGUF Quantizer → Quantization Codecs: encodes weights
- GGUF Quantizer → GGUF Reader: writes GGUF