autonomous-ai/openharness/engine-sglang

Claude Code and agent skill by autonomous-ai/openharness

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Serve a Hugging Face model with SGLang on a Linux machine with an NVIDIA or AMD GPU, configured from the model's SGLang cookbook page — or, when it has none, from the model's own files — and join it to the person's fleet. Load before installing, configuring, starting or stopping SGLang.

Install

npx vskill@latest install autonomous-ai/openharness/engine-sglang

SKILL.md

The same SKILL.md was published earlier as autonomous-ai/openharness/engine-sglang.

SGLang (Linux + NVIDIA CUDA or AMD ROCm)

Official sources, read 2026-09-29. Agent index: docs.sglang.io/llms.txt (every page is available as .md). Cookbook · Models · Quickstart · Server arguments · Tool parser · Separate reasoning · Native API · Transformers fallback · source: github.com/sgl-project/sglang Tested: not runnable on macOS (below); no GPU run yet. Tags: [doc] official source, [run] seen on a machine, [?] unverified.

When to use it

  • Linux with an NVIDIA GPU of compute capability 8.0 or newer (A10, A100, L4, L40S, H100), Python ≥ 3.10 [doc];

AMD GPUs, Intel Xeon CPUs and TPUs have their own guides [doc]. Hugging Face models, many requests at once, several GPUs.

  • Never on macOS. The current release ships Linux wheels only and requires CUDA builds of its kernels;

on a Mac the installer falls back to an old release whose server does not import [run].

  • A GGUF file for one person: Grid's own engine serves it with nothing to install.

1. The cookbook page — "$GRID_FLEET" recipe sglang ORG/NAME

Finds the model family's page through llms.txt (the most specific family name the model name starts with) and prints: source (the page), installation (its version requirement — some families need a release or the main branch — and install commands), serveCommands (the page's own launch commands per GPU type), toolCallParsers, reasoningParsers, and configurationTips. Read the page itself for anything else. Exit code 3 means no page: go to step 2.

2. No cookbook page — read the model: "$GRID_FLEET" model-facts ORG/NAME

  1. support.sglang.listed: true means SGLang's model registry has the architecture; null means this

check cannot tell. SGLang can run most decoder models through --model-impl transformers [doc] — a test, not a promise.

  1. modelCard.serveCommands and parsers: the model authors' own SGLang command. Use it when present.
  2. Otherwise --tool-call-parser auto and --reasoning-parser auto: SGLang detects both from the model's

chat template [doc]. Then the tool-call acceptance check decides; if it fails, say so and stop — do not cycle through parser names.

  1. contextLength must be ≥ 65536.

Install and version

  • Slow step, ask first. uv pip install --prerelease=allow sglang [doc]; a family whose cookbook page asks

for the main branch: uv pip install --prerelease=allow 'git+https://github.com/sgl-project/sglang.git#subdirectory=python' [doc]. OSError: CUDA_HOME environment variable is not set → export CUDA_HOME=/usr/local/cuda-<version> [doc].

  • Docker: lmsysorg/sglang:latest (NVIDIA), lmsysorg/sglang-rocm:<tag> (AMD, tag per GPU generation on

the cookbook page) [doc], run with --gpus all --shm-size 32g --ipc=host -p 127.0.0.1:P:30000 -v ~/.cache/huggingface:/root/.cache/huggingface [doc].

Common configs (the cookbook's flags win)

Each adds the parsers from step 1 or 2, --host 127.0.0.1 --port P and --context-length of at least 65536 (the default is the model's own maximum [doc]).

CaseAdd
One GPU, one agent--max-running-requests 4
One GPU, many peopleleave --max-running-requests to SGLang
Several GPUs, one machine--tp-size <GPU count> [doc]
Out of memorylower --mem-fraction-static (weights plus KV pool share) [doc]; --kv-cache-dtype fp8_e4m3 [doc]

Start, ready, join

"$GRID_FLEET" serve sglang-P --env HF_HUB_OFFLINE=1 -- ~/.grid/envs/sglang/bin/sglang serve \ --model-path <model id or snapshot dir> --served-model-name <id> --host 127.0.0.1 --port P <flags>

(python3 -m sglang.launch_server takes the same arguments [doc].) Defaults are 127.0.0.1 and port 30000 [doc]. Install into ~/.grid/envs/sglang so fleet models finds it; fleet serve keeps it alive after your shell returns (log run/sglang-P.log).

  • Verify: "$GRID_FLEET" verify --at http://127.0.0.1:P/v1 --model <id> --kind sglang (bounded, narrated).
  • Ready: the log says The server is fired up and ready to roll! [doc]; GET /health → 200;

GET /health_generate generates one token [doc]; GET /v1/models lists <id>; one bounded answer; one tool call.

  • Join: "$GRID_FLEET" run -- join GRID --at http://127.0.0.1:P/v1 -m <id> --advertise-as ALIAS. Grid's detector has

no SGLang probe and would mislabel it on 8000 or 8080 [run], so always --at, always with /v1.

  • Thinking off per request: "chat_template_kwargs": {"enable_thinking": false} where the cookbook page shows it [doc].

Stop

"$GRID_FLEET" stop sglang-P (or docker stop your container); confirm the port is free.

Known failures → what to do

SignDo
out of memory while servinglower --mem-fraction-static [doc]
no tool_callsthe cookbook's --tool-call-parser, else auto [doc]; still none → report
a CUDA crash, a multi-GPU hang, a production incidentread SGLang's own maintainer skills: .agents/skills/debug-cuda-crash, debug-distributed-hang, sglang-prod-incident-triage (SKILL.md in each) at https://raw.githubusercontent.com/sgl-project/sglang/main/
404 on /modelsthe --at URL lacks /v1

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,068
Repository forks
89
7-day trend score
35

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/autonomous-ai/openharness/engine-sglang/badge)](https://verified-skill.com/skills/autonomous-ai/openharness/engine-sglang)

Something wrong with this skill or its page? Tell us.