Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/spark-adapters/blob/main/README.md # spark-adapters Hardware abstraction adapters for local AI accelerators Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `spark-adapters / README.md` 31 lines ยท 1844 bytes Raw Blame History Source # spark-adapters Universal third-party model provider adapters and knowledge distillation oracle for Sovereign SparkOS on NVIDIA DGX Grace Blackwell (GB10). ## Capabilities - Provider Adapters: Dynamic SSE streaming and unary completions for OpenAI, Anthropic (Claude 3.7 hybrid thinking), OpenRouter, Google Gemini, Groq (LPU sub-100ms), DeepSeek, Together, Mistral, and local Modular MAX / Ollama seats. - Teacher Knowledge Distillation: Dual rollout evaluation pairing external teacher frontier models against resident open-weight models (`atlas-lightning-omni`). - Sovereign Verification Harness: Built-in verification checking syntax, balanced code delimiters, unslop compliance (zero em dashes, zero AI tropes), and zero secret leaks. - Dataset Synthesis: Generates standardized SFT (ChatML) and DPO / ORPO preference datasets persisted directly to disk. - Cortex Memory Integration: Ingests high-scoring verified teacher insights directly into Spark Cortex (`http://127.0.0.1:18080`, space `atlas-memory`). - Zero Disk Secrets: Integrates dynamically with hardware TPM vault (`atlas-vault get`) with zero plaintext `.env` files on disk. ## CLI Usage ``` # Run distillation against teacher model spark-distill --teacher anthropic/claude-3-7-sonnet --student atlas-lightning-omni --prompt "Implement a lock-free ring buffer in Rust" --task-type code --verify compiler --commit-cortex ``` ## Architecture - `spark_adapters::models`: Common message, rollout, task, and distillation schema. - `spark_adapters::router`: Route resolution, secret resolution, and model catalog. - `spark_adapters::verifier`: Unslop and code syntax validation. - `spark_adapters::distill`: Automated distillation pipeline. - `spark_adapters::vault`: Hardware TPM key resolution. ## License MIT OR Apache-2.0