Feature request: Multi-context NPU subagent for hybrid GPU + NPU coding agents
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 152
- Avg merge
- 4h 14m
- Merged PRs (30d)
- 11
Description
Hybrid: Leader LLM (GPU) & subagent LLM (NPU)
Coding agents often fill the leader model’s context with raw file reads, search results and tool outputs. FLM’s low TTFT and efficient NPU execution could make it an ideal parallel coding subagent while a larger leader model runs on the GPU.
The NPU model could inspect code, compress tool results into focused evidence and handle small, well-scoped edits before returning only the relevant information to the GPU leader.
A particularly useful FLM capability would be multiple independent context slots sharing one loaded model:
- an ephemeral scout context, reset after every task for consistently low TTFT;
- a small persistent maintainer context for project-local follow-ups and incremental edits.
Both would use the same weights, but keep separate session/KV state. This could turn the NPU into a continuously available coding assistant without duplicating model memory or polluting the leader’s context - which should be ideally without a full compression as long as possible.
For an initial implementation, a smaller compute-efficient coding model would already be valuable. As a more ambitious experiment, native binary or ternary support for Bonsai 27B could be extremely interesting: strong coding capability with unusually compact weights. Native 1-bit execution may be a stretch goal, but it could become a unique showcase for FLM and Ryzen AI NPUs. See also #619
Would multi-context model sessions and this type of GPU-leader/NPU-subagent workload fit FLM’s roadmap?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by reviewing the existing session and model-loading interfaces, then narrow the proposal to one demonstrable capability: independent contexts or GPU-leader/NPU-subagent execution. Done should include agreed scope, acceptance criteria, and validation for the selected capability.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- ai-infra-agents, machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100