Instructions to use atefataya/depwire-slm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use atefataya/depwire-slm with PEFT:
Task type is invalid.
- MLX
How to use atefataya/depwire-slm with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("atefataya/depwire-slm") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use atefataya/depwire-slm with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "atefataya/depwire-slm" --prompt "Once upon a time"
depwire-slm
LoRA adapter for Qwen3.6-35B-A3B (MoE, 4-bit MLX), fine-tuned to reason about codebase structure (dependency graphs, hotspots, blast radius, health) rather than just code text.
Status: v0.1 โ proof of concept. This adapter was trained on template-generated (prompt, completion) pairs derived from graph snapshots. It demonstrates that a small model can be steered toward codebase-structure vocabulary, but its benchmark is keyword-based and does not measure grounded reasoning.
v0.2 (in development) replaces this with a facts-in / reasoning-out design: the depwire-cli graph engine computes the facts deterministically, the model reasons over them, and every answer is verified against the same engine (deterministic oracle eval on real repositories) โ not keyword matching.
Trained on graph snapshots produced by the Depwire SDK across 989 open-source repositories (5 languages, permissive licenses). Adapter only โ the base model is not redistributed here.
Results (v0.1)
| Model | Benchmark (20 Qs)* | Val loss |
|---|---|---|
| Qwen3.6-35B-A3B base | 25% | โ |
| + depwire-slm adapter | 55% (+30pp) | 0.212 |
* keyword-coverage on a 20-question template benchmark, not a grounded reasoning score
Best checkpoint: iter 2700 out of 3000. Trained with MLX-LM on Apple Silicon (M1 Ultra, 128 GB). 17,556 train / 925 val pairs across 17 question types (impact analysis, hotspot reasoning, blast radius, health scoring, dead code, refactor planning, cross-language edges, change safety, etc.).
Usage
With MLX (Apple Silicon)
pip install mlx-lm
mkdir -p lora-adapters
huggingface-cli download atefataya/depwire-slm adapters.safetensors \
--local-dir lora-adapters
mlx_lm.generate \
--model mlx-community/Qwen3.6-35B-A3B-4bit \
--adapter-path lora-adapters \
--prompt "Symbol AuthService has 15 dependents. What is the risk of modifying it?"
Training Data
Structural pairs generated from Depwire SDK graph snapshots. Each repo yields a JSON snapshot (health score, hotspots, dead-code candidates, dependency edges) which is expanded into 17 question types about the graph.
- Repos: 989 (filtered from 2,847 processed)
- Snapshots: 989 valid graphs (โฅ10 nodes)
- Training pairs: 17,556
- Validation pairs: 925
- Languages parsed: TypeScript, JavaScript, Python, Go, Rust
Limitations
- Answers are grounded in graph statistics, not source code semantics. The model will not read your code โ it reasons about numbers you feed it (dependents, in-degree, health score, etc.).
- Non-English prompts are out of scope.
- Java, Ruby, C++, Swift, Kotlin were excluded from training data due to tree-sitter WASM parser crashes; the adapter has not seen those graphs.
Repository
Pipeline, training scripts, and benchmark are open source:
https://github.com/atef-ataya/depwire-slm (tag v0.1-final)
License
Apache 2.0. Base model (mlx-community/Qwen3.6-35B-A3B-4bit) is subject to its own
license โ check the Qwen model card before use.
- Downloads last month
- 34
Quantized