Initial commit: OpenCode vLLM autostart plugin and launchers
- Desktop plugin: on-demand vLLM model start, eject, media budgets - WSL-native twin plugin for WSL project sessions - Launchers for Qwen3.6 35B-A3B, Qwen3.8 27B (uncensored/fast), Agents-A1 - Config templates, diagnostics, video-processor workaround
This commit is contained in:
commit
40656fd046
27 files changed
+6710
No files matched your search
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
# Agents-A1 35B-A3B NVFP4 on RTX 5090 / WSL.
|
||||
# NOTE: --moe-backend marlin crashes during load on this stack
|
||||
# (marlin_utils_fp4 _nvfp4_compute_scale_factor -> "device not ready").
|
||||
# vLLM CUTLASS is the stable sm120 path; ~139 tok/s single stream.
|
||||
VLLM_ENV=${VLLM_ENV:-/home/dfj/vllm-env}
|
||||
MODELS=${MODELS:-/home/dfj/models}
|
||||
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
|
||||
export PATH="$VLLM_ENV/bin:$VLLM_ENV/lib/python3.12/site-packages/nvidia/cu13/bin:$PATH"
|
||||
export CUDA_HOME="$VLLM_ENV/lib/python3.12/site-packages/nvidia/cu13"
|
||||
export MAX_JOBS=4
|
||||
unset FLASHINFER_JIT_VERBOSE
|
||||
unset FLASHINFER_JIT_DEBUG
|
||||
export VLLM_USE_FLASHINFER_SAMPLER=0
|
||||
|
||||
# Pick a utilization that leaves headroom for whatever the desktop is using.
|
||||
read TOTAL FREE < <(nvidia-smi --query-gpu=memory.total,memory.free --format=csv,noheader,nounits | awk -F',' '{gsub(/ /,""); print $1, $2}')
|
||||
if [ -n "$TOTAL" ] && [ -n "$FREE" ]; then
|
||||
UTIL=$(awk -v t="$TOTAL" -v f="$FREE" 'BEGIN { u=(f-1024)/t; if (u>0.90) u=0.90; if (u<0.60) u=0.62; printf "%.2f", u }')
|
||||
echo "agents-a1: ${FREE} MiB free / ${TOTAL} MiB total -> gpu-memory-utilization ${UTIL}"
|
||||
else
|
||||
UTIL=0.82
|
||||
fi
|
||||
|
||||
exec "$VLLM_ENV/bin/vllm" serve "$MODELS/protoLabsAI/Agents-A1-NVFP4" \
|
||||
--served-model-name agents-a1 \
|
||||
--host 0.0.0.0 \
|
||||
--port 8000 \
|
||||
--moe-backend cutlass \
|
||||
--language-model-only \
|
||||
--max-model-len 131072 \
|
||||
--gpu-memory-utilization "$UTIL" \
|
||||
--max-num-seqs 8 \
|
||||
--max-num-batched-tokens 8192 \
|
||||
--kv-cache-dtype fp8 \
|
||||
--enable-auto-tool-choice \
|
||||
--tool-call-parser qwen3_coder \
|
||||
--reasoning-parser qwen3
|
||||
Reference in new issue
Block a user