Context-aware LoRA adapter routing for VS Code
This document is for reviewers, auditors, and potential adopters evaluating LoRA-JIT for production use, open-source contribution, or commercial integration.
Last reviewed: 2026-06-06
| Dimension | Grade | Notes |
|---|---|---|
| Code quality & tests | A | 48 passing tests, ruff lint, TypeScript type-check, CI on every push |
| Architecture & docs | A | Clear separation of concerns, comprehensive ARCHITECTURE and BENCHMARK docs |
| Security posture | B+ | Local-only binding, documented threat model; no auth by design |
| End-user UX | C | Extension is observability-first; no inline completions or marketplace listing |
| ML production readiness | B- | Real PEFT path works; paging is simulated; one training recipe shipped |
| Release hygiene | B | MIT license, CHANGELOG, issue templates; version metadata recently aligned |
Verdict: LoRA-JIT is audit-ready as an open research/engineering repository. It is not yet audit-ready as a consumer coding assistant product.
/docsJitRouter: predict → page → activate loop with structured decision objectsPagingSimulator with LRU eviction and optional MB budgetMockRuntime and PyTorchPeftRuntime behind a common interfaceMockRuntime default.env.example for GPU path configurationReference: RTX 3050 6 GB, Qwen1.5-0.5B + sql_postgres LoRA
| Gap | Risk | Mitigation path |
|---|---|---|
| No inline VS Code completions | Users expect ghost text; extension only logs | Add InlineCompletionItemProvider |
| Extension not on Marketplace | Requires dev-host F5 | Publish with icon, README, prepublish script |
| No pre-built adapter weights | High friction before seeing real value | Ship sql_postgres on HuggingFace + LFS |
| Hardcoded daemon URL in extension | Cannot point at remote/custom port | Add loraJit.daemonUrl setting |
| Gap | Risk | Mitigation path |
|---|---|---|
| Paging is simulated, not VRAM-backed | “JIT paging” claim needs qualification | Integrate nvidia-smi or torch memory stats |
Only one training recipe (sql_postgres) |
7 other ontology adapters are registry-only | Add dataset builders per adapter |
| No PyPI publish | pip install lora-jit unavailable |
Add publish workflow + classifiers |
| No Docker image | Harder reproducible demos | Add docker-compose for daemon |
| No GPU CI smoke test | PyTorch path untested in CI | Nightly workflow with self-hosted GPU runner |
| Limitation | Detail |
|---|---|
| Single-user localhost | Daemon binds 127.0.0.1, no auth |
| Single base model | No multi-model routing |
| Generation latency | Seconds on consumer GPU, not Copilot-speed |
| Structural router | Keyword heuristics, not semantic understanding |
| LLM labeling optional | Offline annotation requires external API |
Status: Ready
Status: Not ready — 4–6 weeks estimated
Requirements:
loraJit.daemonUrl configurationsql_postgres adapter on HuggingFaceStatus: Not ready — 3–6 months estimated
Requirements:
Use this checklist when embedding LoRA-JIT into another product:
.env committed to version controlLORA_JIT_STRICT_RUNTIME=true in production GPU pathsstructural vs learned)verify-adapter.pytraces/ directoryMockRuntime in your forkQwen/Qwen1.5-0.5B)| Component | Maturity | Test coverage | Docs |
|---|---|---|---|
JitRouter |
Stable | High | ARCHITECTURE |
PagingSimulator |
Stable (simulated) | High | ARCHITECTURE |
MockRuntime |
Stable | High | README |
PyTorchPeftRuntime |
Beta | Medium | README, QUICKSTART |
| Structural predictor | Stable | High | BENCHMARK |
| Learned predictor | Beta | High | BENCHMARK |
| Benchmark harness | Stable | High | BENCHMARK |
| Trace compiler | Stable | Medium | BENCHMARK |
| Auto-labeler | Beta | Medium | ADAPTER_ONTOLOGY |
| VS Code extension | Alpha | None (manual) | vscode-extension/README |
| PEFT training pipeline | Beta | Medium | QUICKSTART |
# 1. Clone and verify tests
git clone https://github.com/Anandb71/LoRA-jit.git && cd LoRA-jit
python3.11 -m venv .venv && source .venv/bin/activate
pip install -e .[dev]
pytest tests/ -v # expect 48 passed
# 2. Verify paging loop (mock runtime)
python scripts/run-daemon.py &
curl -s http://127.0.0.1:8765/health
# 3. Benchmark smoke test
python scripts/run-benchmark.py examples/sample-trace.json --compare
# 4. GPU path (optional, requires NVIDIA GPU)
pip install -e .[runtime]
cp .env.example .env
# configure pytorch backend, train adapter per QUICKSTART.md
partnership