diff --git a/README.md b/README.md index 718449f..270eabd 100644 --- a/README.md +++ b/README.md @@ -189,6 +189,47 @@ python3 tests/test_opencode.py # or run one directly | `tests/test_dashboard.py` | KV parsing, per-run summaries, log collapsing | | `tests/test_reasoning.py` | effort options matching the real chat templates | +## Continuing on an NVIDIA box + +Everything in this branch was written and tested on Apple Silicon + MLX. The parts below are +either **unverified on vLLM** or deliberately not wired there, so start here when you check the +repo out on the Linux machine. `python3 tests/run.py` passes on either platform (the suites are +hermetic and don't need a GPU), so run that first to confirm nothing is broken. + +**Verify first — it can stop the server from starting:** + +- `--served-model-name default` (`plan.vllm_args`). vLLM documents multiple names ("the + server will respond to any of them", with the first reported back), and the CLI form is one + flag with several tokens. Not run against a real vLLM, though, so confirm `vllm serve` accepts + it and that `curl -H "Authorization: Bearer $(llmhost key)" .../v1/chat/completions -d + '{"model":"default",...}'` answers. Until that's confirmed, the `llmhost-/default` block + that `llmhost opencode-config` prints can't work from a client. +- `/v1/models` should still report the real slug, not `default`. If it reports `default`, the + dashboard's readiness check (`active in served`) will sit on "loading" forever. + +**Not wired on vLLM, by design — each needs a decision, not a bug fix:** + +- **Reasoning chooser.** The setting is injected per request by the MLX proxy, and llm-host runs + vLLM with nothing in front of it, so there's nowhere to inject. Either put a proxy on Linux too + (it would also bring the per-request table and the API-key handling into one place) or find a + vLLM flag for default chat-template kwargs. The dashboard hides the panel rather than offer a + control that does nothing. +- **Completed-requests table.** Same reason: the per-request timings come from the proxy. vLLM + exposes histograms on `/metrics` rather than per-request rows, so this would be a different + implementation, not a port. +- **`404 model_not_found` for a model that isn't loaded.** That's the proxy. On vLLM the two + served names both answer and anything else gets vLLM's own 404, which is the same outcome by a + different route — worth confirming the message is clear enough. + +**Should work, but has never run on this hardware:** + +- GPU temperature and power come from `nvidia-smi`, so the charts the dashboard hides on a Mac + should appear here. Check that the `hasTP` test in `index.html` doesn't hide them wrongly. +- KV cache on vLLM comes from `vllm:kv_cache_usage_perc` and predates this branch; the new + log-parsing path is MLX-only. +- `llmhost opencode-remove`, the opencode credential-cache clearing, and + `uninstall --purge --keep-key` are all platform-independent, but worth one smoke test each. + ## Files | Path | |