Building an offline coding agent with hybrid attention and sparse MoE and a Cancer Vaccine model
Next week, I plan to preview a local coding agent for Python, Java, JavaScript, and TypeScript. The first release focuses on fill-in-the-middle completion. Put the cursor inside an unfinished function, and the model uses
Next week, I plan to preview a local coding agent for Python, Java, JavaScript, and TypeScript. The first release focuses on fill-in-the-middle completion. Put the cursor inside an unfinished function, and the model uses both the prefix and suffix to generate the missing code. After initial setup, inference runs offline.
What I changed in Qwen2.5-Coder
- Hybrid self-attention. Of the 28 decoder layers, 21 use a configurable sliding window, and 7 attend to the full causal prefix. The layout reuses the Base checkpointβs attention projections.
- Sparse expert adapters. The final two decoder layers each have four low-rank expert adapters. A router selects two per token. Fine-tuning updates the routers and adapters while the quantized Base weights stay frozen.
- Local editor workflow. The preview starts with inline suggestions in VS Code. That gives me a specific interaction to evaluate, from requesting a completion to checking whether the insertion passes tests. Qwen2.5-Coder Base model card How Iβll compare it with Cursor and IBM Granite Code Iβll use the same held-out tasks and automated checks where the interfaces allow it. The first report will cover completion correctness, compile or test pass rate, and time to a usable suggestion, broken down by language.
- Cursor will be the editor-workflow comparison. Iβll record the product configuration and what context each tool receives. Cursor documentation
- IBM Granite Code will be the model-level comparison. Iβll report the exact checkpoint, prompt format, and generation settings. Iβll include unmodified Qwen2.5-Coder Base as a baseline for my own changes. IBM Granite Code documentation Iβll share examples of failed completions alongside the aggregate numbers. For an inline tool, a short completion that passes the projectβs tests is more useful than a long suggestion that needs rewriting. Separate research preview planned for the following weeks Iβm also developing an oncology research prototype focused on reviewing the published evidence behind cancer vaccine and drug candidates. The first evaluation will measure whether the cited papers support its summaries and whether it accurately reflects uncertainty in the literature. The scope is literature review and research support.
Follow the previews and evaluation reports at AI Lab.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.