Context-aware LoRA adapter routing for VS Code
No. LoRA-JIT is adapter routing infrastructure with observability. Completions exist at the HTTP API level and are logged in the VS Code output channel — they are not inserted as inline ghost text yet.
Use LoRA-JIT when you need to measure and prove that your LoRA routing works before building a full coding assistant UX.
Yes. The default MockRuntime runs the full routing and paging loop with deterministic stub completions. All 48 tests pass without GPU.
No. The daemon binds to 127.0.0.1:8765 only. Telemetry stays on your machine unless you explicitly configure an external LLM API for offline benchmark annotation (LORA_JIT_LLM_API_BASE).
pip install -e .[dev] fails on WindowsEnsure Python 3.11+ is installed:
py -3.11 --version
If py is unavailable, use the full path to your Python executable.
pip install -e .[runtime] fails or is very slowPyTorch wheels are large. Install CPU-only torch first if you have no NVIDIA GPU:
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install -e .[runtime]
For CUDA, follow PyTorch install instructions for your CUDA version, then install .[runtime].
Another process is bound to port 8765. Find and stop it, or set a different port in your launch script (not yet configurable via env — see AUDIT.md).
/health returns OK but routing seems wrongCheck which predictor is active:
# Default is structural (heuristic keyword matching)
echo $LORA_JIT_PREDICTOR # or inspect .env
For SQL files, switch to the learned router:
LORA_JIT_PREDICTOR=learned
LORA_JIT_ROUTER_MODEL_PATH=examples/router-model.seed.json
Cold adapter load. Enable preload:
LORA_JIT_PRELOAD_ADAPTERS=sql_postgres
LORA_JIT_EAGER_LOAD=true
Restart the daemon. First route should drop to single-digit milliseconds.
None in the repository. Adapter weights are gitignored. Only sql_postgres has a complete training recipe (scripts/build-sql-dataset.py + scripts/train-peft-adapter.py).
Other IDs in ADAPTER_ONTOLOGY.md are registry entries for routing and labeling.
verify-adapter.py failsCommon causes:
adapter_config.json or weight files in adapters/<adapter_id>/train-peft-adapter.py--adapter-id passed to training scriptCheck:
LORA_JIT_RUNTIME_BACKEND=pytorch in .env.env/jit/route before /jit/completeLORA_JIT_STRICT_RUNTIME=false, failures silently fall back to stub — check daemon logsloraJit.telemetry.enabled is true in VS Code settingsExpected behavior today. Completions are logged to the output channel only. Inline completion is on the roadmap — see AUDIT.md.
Correct. The extension is not yet published to the VS Code Marketplace. Press F5 from vscode-extension/ to launch a dev host.
sample-trace.json shows 0% accuracyThe sample trace is a smoke test with two events. Accuracy depends on whether heuristic predictors match fastapi_service labels. Use your own annotated traces for meaningful scores — see BENCHMARK.md.
All labels must use IDs from ADAPTER_ONTOLOGY.md. The auto-labeler rejects unknown IDs.
The seed model at examples/router-model.seed.json was trained on a small corpus. Re-train on your own annotated benchmark:
python scripts/train-router.py benchmark.annotated.json --output models/router.json
No. The daemon is designed for single-user local development. Do not expose port 8765 to the network. See SECURITY.md.
.env (redact API keys)