aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index d12d1ec..194ea00 100644
--- a/README.md
+++ b/README.md
@@ -56,6 +56,10 @@ CONTAINER_DISK_GB=15
GPU_COUNT=1
STARTUP_TIMEOUT=240 # seconds to wait for Ollama to become reachable
WARMUP_NUM_CTX=32768 # context size used when pre-loading models into VRAM
+
+# External tool configs to patch with the live pod URL (leave empty to skip)
+TRANSART_SCRIPT="" # e.g. /home/user/bin/transart.py
+PUBLISHER_CONFIG="" # e.g. /home/user/.config/my-publisher/config.toml
```
## Usage
@@ -109,12 +113,14 @@ runpod-session.sh --new --gpu-type "RTX 4090" --max-price 1.80
4. **Startup wait** — polls `https://<pod-id>-11434.proxy.runpod.net/api/tags` every 5 seconds until Ollama responds (up to `STARTUP_TIMEOUT` seconds).
-5. **opencode.jsonc patch** — updates three fields in your opencode config:
+5. **Config patching** — updates your opencode config and any external tools configured via `TRANSART_SCRIPT` / `PUBLISHER_CONFIG`:
- `provider.runpod.options.baseURL` → the live pod URL
- `model` → `runpod/<DEFAULT_MODEL>`
- `provider.runpod.models` → merges all `WARMUP_MODELS` in (existing per-model settings are preserved via jq recursive merge)
+ - `OLLAMA_HOST` in `transart.py` → bare pod URL (no `/v1`)
+ - `ollama_host` in `my-publisher/config.toml` → bare pod URL (no `/v1`)
- A `.bak` copy is written before any changes.
+ A `.bak` copy is written before each file is modified. Entries left empty in config are skipped.
6. **Model warmup** — sends a short generation request to load the model into VRAM at `WARMUP_NUM_CTX` context length, so the first real request isn't slow.
@@ -146,6 +152,8 @@ Your `~/.config/opencode/opencode.jsonc` needs a `runpod` provider block before
| `~/.config/runpod-session/state.json` | Last session record |
| `~/.config/opencode/opencode.jsonc` | Patched on each session start |
| `~/.config/opencode/opencode.jsonc.bak` | Backup written before each patch |
+| `$TRANSART_SCRIPT` | `OLLAMA_HOST` updated if set in config |
+| `$PUBLISHER_CONFIG` | `ollama_host` updated if set in config |
## Cost notes