Logo: Hyperloom Setup

Hyperloom Setup

Organisatioun
AMD-AGI
hyperloom-setup

Configures Hyperloom after pip install --target . by collecting core LLM/runtime settings once, choosing direct baremetal or Docker execution, writing .env, deploying the workspace's local Experience KB service, and running the setup backend directly only in baremetal mode.

Add to TypingMind

Iwwersiicht

EditeurAMD-AGI
RepositoryHyperloom
Skill-Nummhyperloom-setup
Stären
250
Forks
74
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    AMD-AGI huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Hyperloom Setup an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/AMD-AGI/Hyperloom/tree/main/src/hyperloom/skills/hyperloom-setup
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AMD-AGI/Hyperloom.git /tmp/Hyperloom
mkdir -p .claude/skills
cp -r /tmp/Hyperloom/src/hyperloom/skills/hyperloom-setup .claude/skills/hyperloom-setup
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hyperloom Setup an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Hyperloom Setup automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Hyperloom Setup net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Hyperloom Setup

Use this skill after the user prepares a dedicated workspace, opens that directory in the agent, and installs Hyperloom into the current directory:

bash
pip install your_package.whl --target .

The Experience KB service ships inside Hyperloom. Setup deploys one local service per workspace; every optimize run reads from and writes to it.

The current directory is the Hyperloom workspace and install target. It is normal for this directory to contain many Python package folders; users do not need to inspect them. Do not use an existing project directory unless the user accepts that setup may create or update .env in that directory.

This skill should normally run once per workspace. It resolves a run mode into HYPERLOOM_RUN_MODE (baremetal or docker) for this session. In baremetal mode it runs the setup backend on the host; in docker mode it writes .env only. It does not start any container. Whether to generate or run a Docker container is decided later by the example (workload) skill based on HYPERLOOM_RUN_MODE.

  • baremetal: run directly in the current development environment, even if that environment is itself a container. It provides ROCm and ROCm torch; setup can reuse preinstalled SGLang, vLLM, or ATOM, or optionally install SGLang/vLLM/ATOM. Do not start another Docker container or require a physical host OS.
  • docker: writes .env and records the run mode; the example (workload) skill starts the container and runs setup inside it.

Run Mode Resolution

Resolve the run mode in this order and skip the interactive question when a valid selection is already present:

  1. HYPERLOOM_RUN_MODE in the shell environment (baremetal or docker).
  2. The selected mode recorded in the workspace .env, if the shell value is unset or empty.
  3. Otherwise, ask the user (Step 2 question 5); do not infer a mode from the framework.

Keep the resolved HYPERLOOM_RUN_MODE for the current run; the example (workload) skill uses it to decide whether to generate a container (and which image to use). This skill does not start a container itself.

Workflow

You must run this as an interactive onboarding flow. Do not stop after listing required values. Ask the user each question, collect the answer, warn before writing .env, write .env, read it back for validation, and continue to the setup command. If setup already completed for this workspace and the user is not changing provider, model, USER_DATA_PATH, run mode, Docker target host, or bare-metal framework setup choice, reuse the existing setup, but still run the Experience KB service step before handing off to a demo.

Step 1: Confirm Workspace

Confirm the current directory is the dedicated Hyperloom workspace selected by the user and contains a hyperloom/ Python package directory from pip install --target ..

If hyperloom/ is missing, do not search for or switch to another target directory. Tell the user to open the intended dedicated workspace in the agent and install Hyperloom into that current directory:

bash
pip install hyperloom-inference-optimizer==1.1.4 --target .

Then stop and ask the user to rerun /hyperloom-setup from that workspace.

Step 2: Ask Configuration Questions

Use the agent's structured question UI (option cards) for every question. It requires at least two options per question, so for a free-form value (base URL, custom model id) present two options — Use default (<value>) and Custom — and only when the user picks Custom ask a plain-text follow-up for the exact value.

  1. Ask which agent backend Hyperloom should run with the structured UI. Present exactly these three option labels in this order:

    1. Claude (Anthropic) — the Claude side only.
    2. Codex (OpenAI) — the OpenAI side only: an OpenAI-compatible /v1 endpoint (api.openai.com, an AMD Primus-Safe gateway, or a self-hosted proxy). Claude-side features are disabled.
    3. Both — each side with its own base URL and key. When both are configured, orchestration runs on Claude; the OpenAI side serves the OpenAI-protocol features (Codex agents, GEAK's OpenAI path, proposal scoring, --critic-protocol openai).

    A side is configured by its own base URL and its own key; never write one side's key or URL for the other.

    With Codex (OpenAI) or Both, collect the OpenAI side:

    • Ask OPENAI_BASE_URL with exactly these option labels in this order: Use default (https://api.openai.com/v1) / Custom. With Custom, ask a plain-text follow-up for the gateway's /v1 URL.
    • Write OPENAI_API_KEY=<PLEASE_FILL_IN> unless already set to a non-placeholder value.
    • Ask CODEX_MODEL: options Use default (gpt-6-astra) / Custom. The model must be one that endpoint serves (list them with curl "$OPENAI_BASE_URL/models"); a custom endpoint usually needs Custom.
    • The Codex runtime (openai_codex, from the llm extra) is installed by the runtime installer, which warns when it does not import; an OpenAI-only run cannot start without it.

    With Claude (Anthropic) or Both, ask how Hyperloom authenticates to Claude with the structured UI. Present exactly these two option labels in this order:

    1. Anthropic API key — API-credit billing; the official endpoint, the AMD gateway, or a custom gateway.
    2. Claude subscription (Pro/Max) — the user's own Claude plan, through a long-lived token from claude setup-token; no API key.

    With Claude subscription (Pro/Max):

    • Do not ask the base URL: a subscription token is only valid against https://api.anthropic.com, so write that value. Never pair it with the AMD gateway or a custom URL.
    • Tell the user to run claude setup-token themselves, in their own terminal. It opens a browser sign-in and prints a token starting with sk-ant-oat01-; it waits for that round-trip, so do not run it for them from a non-interactive shell. They paste the token into .env (question 2), never into chat.
    • Write CLAUDE_CODE_OAUTH_TOKEN=<PLEASE_FILL_IN> instead of the ANTHROPIC_API_KEY placeholder.
    • An ANTHROPIC_API_KEY (or ANTHROPIC_AUTH_TOKEN) outranks the subscription token, so the run would bill API credits instead. If .env or the shell already holds one, tell the user and ask whether to remove it; do not delete a non-placeholder secret without their answer.

    With Anthropic API key, ask the base URL next (below).

    Ask the Anthropic base URL with the structured UI (API-key path only).

    • Present exactly these three option labels in this order:
      • Use default (https://api.anthropic.com) — this remains the recommended default.
      • Use AMD gateway (https://llm-api.amd.com/anthropic).
      • Custom.
    • If the user picks Custom, ask a plain-text follow-up for the URL.
  2. Explain that secrets must be edited in .env, not pasted into chat.

    • Never ask the user to paste API keys into the conversation.
    • Create .env with placeholders for secret values.
    • Ask the user to edit .env directly and replace placeholders.
    • After the user confirms the file is edited, validate only whether secret keys are set; do not print secret values.
  3. Collect non-secret values and write secret placeholders:

    Ask the base URL and model questions below with the structured UI using two options — Use default (<value>) and Custom — and only ask a plain-text follow-up for the exact value when the user picks Custom.

    • API-key path: write ANTHROPIC_API_KEY=<PLEASE_FILL_IN> unless already set to a non-placeholder value. Subscription path: write CLAUDE_CODE_OAUTH_TOKEN=<PLEASE_FILL_IN> unless already set to a non-placeholder value, and no ANTHROPIC_API_KEY placeholder.
    • API-key path only: ask ANTHROPIC_BASE_URL with exactly these option labels in this order: Use default (https://api.anthropic.com) / Use AMD gateway (https://llm-api.amd.com/anthropic) / Custom.
    • Ask CLAUDE_MODEL: options Use default (claude-opus-5-5) / Custom.
  4. Explain USER_DATA_PATH:

    • It is the writable root for Hyperloom runtime files, dependency checkouts, logs, optimizer runs, and generated env files.
    • Offer <workspace>/session (the current workspace directory plus a session subdirectory) as the default/recommended option, using its absolute path. Each optimizer run still creates its own UTC-stamped subdirectory under it.
    • If an existing USER_DATA_PATH is visible in the current shell or terminal context, offer that exact value as one option. Say that another workspace using the same value shares its Experience KB data home, which only one workspace's service can serve, unless HYPERLOOM_KB_HOME gives each workspace its own.
    • Always offer a custom path option.
    • Do not auto-select; write USER_DATA_PATH only after the user explicitly chooses (they may accept the default).
  5. Ask where to run Hyperloom (sets HYPERLOOM_RUN_MODE for this session). Skip this question when Run Mode Resolution already found a valid choice in the shell or workspace .env; confirm and use that choice.

    Present exactly these two option labels in this order:

    1. docker (Recommended)
    2. baremetal

    When asking, add a one-line reminder that Docker is recommended because it ships a validated ROCm + framework stack and keeps the host untouched, while baremetal is for advanced users and may cause environment-specific issues or modify the host environment.

    • docker (Recommended): record docker as the run mode; the example (workload) skill generates a ROCm container later.
    • baremetal: run the setup backend directly in the current development Python environment, including when the development platform is a container.
  6. Only when the user chose docker, resolve the Docker target host (HYPERLOOM_DOCKER_TARGET_HOST). This is where the example skill will run docker run / docker exec later.

    First inspect the current machine and any Slurm allocation:

    bash
    echo "current host: $(hostname)"
    if command -v squeue >/dev/null 2>&1; then
      echo "SLURM detected — current allocations:"
      squeue -u "$USER" 2>/dev/null || squeue 2>/dev/null
      echo "allocated nodes: $(squeue -u "$USER" -h -t RUNNING -o '%N' 2>/dev/null | paste -sd, -)"
    else
      echo "no SLURM (squeue not found) — use the current host"
    fi
    • If squeue is not available, set HYPERLOOM_DOCKER_TARGET_HOST to the current host ($(hostname)) without asking another question.
    • If Slurm is detected but there are no allocated nodes, set HYPERLOOM_DOCKER_TARGET_HOST to the current host and explain that no Slurm allocation was available to choose.
    • If Slurm is detected and the user has allocated nodes, ask which host should run the Docker container. Offer the current host, each allocated node, and a custom host option.
    • If the chosen host is not the current host, tell the user that the demo skill will first SSH to that host and run all Docker commands there. Do not start or restart any Slurm job from setup.
  7. Only when the user chose baremetal, ask whether to install a serving framework (used as the --install-framework value in Step 4). Present exactly these four option labels in this order and do not reorder them by recommendation:

    1. none: use an already-installed vLLM/SGLang/ATOM stack in the selected Python environment. This skips framework installation, not setup's credential/runtime configuration or eligible ROCm hotfixes.
    2. sglang: install SGLang ROCm framework components (shared with the host torch).
    3. vllm (isolated): install vLLM into a dedicated venv, leaving the host torch/SGLang stack untouched. On ROCm 7.2.x the ROCm wheel brings its own torch; on ROCm 10 vLLM is built from source in a venv that reuses the host ROCm torch.
    4. atom: install ATOM and its AITER dependency from source (shared with the host torch). The ATOM commit defaults to the one rocm/atom-dev:v0.1.7-rc0 was built from.
    • ATOM never shares a Python with SGLang or vLLM: ATOM registers vLLM and SGLang plugins that both engines load by default, so a later SGLang or vLLM run there would execute ATOM's platform, model and loader code. Setup therefore refuses atom when SGLang or vLLM imports from the selected Python (including a ROCm 10 vLLM venv built over it), and refuses sglang or a shared/ROCm 10 vllm when ATOM imports there. The ROCm 7.2.x vllm (isolated) venv is self-contained and unaffected. When the user wants ATOM beside another engine, put ATOM in a separate container.
    • Do not mark any option as recommended. Present the four options in the exact order above without a default selection.
    • For an ATOM that is already installed, use none and explicitly verify/select it with --frameworks atom --require-frameworks, especially when multiple serving frameworks are installed. Do not change global framework defaults or choose whichever other framework happens to import first.
  8. Only when the user chose baremetal and vllm (isolated) in Step 7, briefly note that on ROCm 7.2.x the installer enforces the vLLM 0.28.0+ wheel's glibc floor (glibc >= 2.39); the ROCm 10 source build has no such gate. If setup later fails with that error, explain it in plain language and point the user to Docker mode or a pre-0.28 override — do not implement a second version gate here.

Step 3: Write .env

Create or update .env in the current directory.

Before writing, explicitly tell the user:

  • .env will be created or updated in the current workspace.

  • If .env already exists, unrelated keys are preserved, but Hyperloom setup keys selected in this run will be updated.

  • A dedicated workspace is recommended to avoid modifying an existing project's .env.

  • For every value the user chose in this run (base URL, model, run mode, USER_DATA_PATH, Docker target host), write exactly what the user selected. This wins over any pre-existing value in .env or the shell environment — e.g. if the user picked the Anthropic official URL, write ANTHROPIC_BASE_URL=https://api.anthropic.com even when a different ANTHROPIC_BASE_URL already exists.

  • Preserve existing keys unrelated to this setup.

  • Never print secret values back to the user.

  • Do not overwrite an existing non-placeholder secret key.

Write the Anthropic keys plus the common keys:

  • Anthropic, API-key path: ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL, CLAUDE_MODEL.

  • Anthropic, subscription path: CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_BASE_URL=https://api.anthropic.com, CLAUDE_MODEL.

  • OpenAI (Codex or Both): OPENAI_BASE_URL, OPENAI_API_KEY, CODEX_MODEL. With Codex (OpenAI) alone, write no Anthropic key, token or base URL.

  • Experience KB: do not write HYPERLOOM_KB_URL or HYPERLOOM_KB_TOKEN by hand. After writing the other keys, run:

    bash
    PYTHONPATH="$PWD:${PYTHONPATH:-}" python3 -m hyperloom.inference_optimizer.experience_kb_service init-env

    It points HYPERLOOM_KB_URL at the workspace's own local service (http://127.0.0.1:<port>, a port derived from the workspace path) and generates HYPERLOOM_KB_TOKEN, but only for a key that is missing or still <PLEASE_FILL_IN>; it keeps every other value. It prints only whether each key was written or kept, never the token.

  • Global Experience KB: do not ask for one and do not write its keys. HYPERLOOM_GLOBAL_KB_URL, HYPERLOOM_GLOBAL_KB_TOKEN, and HYPERLOOM_KB_AUTO_PUSH are optional and the user's to set; keep any value already in .env. Unset, the workspace uses only its local KB. With them set, python3 -m hyperloom.inference_optimizer.experience_kb_service push and python3 -m hyperloom.inference_optimizer.experience_kb_service pull sync with that global KB; setup runs neither.

Common keys:

  • USER_DATA_PATH
  • HYPERLOOM_RUN_MODE (baremetal or docker, the resolved run mode for this session)
  • HYPERLOOM_DOCKER_TARGET_HOST (only when HYPERLOOM_RUN_MODE=docker; the host where the demo skill should run Docker)
  • HYPERLOOM_SKILL_PATH — absolute path to the optimizer skill (<workspace>/hyperloom/inference_optimizer/SKILL.md for a wheel install, <workspace>/src/hyperloom/inference_optimizer/SKILL.md for a source checkout). Write it in both modes so the demo skill can resolve it even when docker mode skips the host setup backend.
  • KERNEL_OPT_BACKEND_ORDER (write forge when explicitly selected in Step 7). Preserve an existing explicit value from .env or the shell. With no selection, do not add a key: every framework, ATOM included, resolves an unset value to GEAK. Keep the original value; exact forge opts in, anything else routes to GEAK.

AMD APIM subscription header

If the chosen base URL host is llm-api.amd.com, that gateway requires the API key to also be sent as an Ocp-Apim-Subscription-Key header. Write the custom-headers key as a reference to the same API key, so the user only fills one secret:

bash
ANTHROPIC_CUSTOM_HEADERS="Ocp-Apim-Subscription-Key: ${ANTHROPIC_API_KEY}"

Keep the value quoted as shown. The shared dotenv loader reads it as data; the runtime resolves the ${ANTHROPIC_API_KEY} reference before passing the header to the selected client.

Skip this key entirely when the selected Anthropic base URL host is not llm-api.amd.com.

After writing .env, tell the user to edit the file directly and replace each <PLEASE_FILL_IN> placeholder. Wait for the user to confirm before running setup.

Then read .env back and confirm:

  • non-secret values are correct;
  • secret values are set or missing;
  • no secret key still equals <PLEASE_FILL_IN>.
  • Codex or Both: OPENAI_BASE_URL and OPENAI_API_KEY are both set; Codex alone: no Anthropic key, token or base URL is set in .env or the shell (preflight refuses a half-configured side).
  • subscription path: CLAUDE_CODE_OAUTH_TOKEN is set, and neither ANTHROPIC_API_KEY nor ANTHROPIC_AUTH_TOKEN is set in .env or the shell (either would take precedence over the subscription).
  • HYPERLOOM_KB_URL and HYPERLOOM_KB_TOKEN are both set.

If any required secret is missing or still a placeholder, stop and ask the user to edit .env again.

Step 4: Run Setup Backend

In baremetal mode, run the backend on the host. The --install-framework value is the framework the user chose in Step 2 (none / vllm / sglang / atom). In docker mode, skip the backend on the host (see below).

baremetal

Run the backend directly in the current directory on the host, passing the framework the user chose in Step 2.

For none with a preinstalled SGLang/vLLM stack:

bash
export REPO_ROOT="$(pwd -P)"
PYTHONPATH="$REPO_ROOT" python3 -m hyperloom setup -- --install-framework none --yes

For preinstalled ATOM, activate its existing environment or keep the user's explicit PYTHON. Do not create a fresh venv or require /opt/venv. The setup backend owns interpreter/venv consistency, PATH, ROCm torch, and the actual ATOM import and server argument-parser checks. A failed check stops setup; it must not select a different framework or ignore an invalid explicit Python pin.

Run the non-mutating verification from the selected workspace:

bash
export PYTHON="${PYTHON:-$(command -v python3)}"
export INFERENCE_OPTIMIZER_FORCE_PYTHON=1
"$PYTHON" -m hyperloom setup --check-only -- \
  --install-framework none --frameworks atom --require-frameworks \
  --user-data-path "${USER_DATA_PATH:?USER_DATA_PATH missing}"

For ATOM, explain any proposed environment changes and obtain approval before actual setup in that same shell; --yes is an installer option, not consent. none is not read-only: setup still configures .env and can apply eligible ROCm hotfixes. Do not repeat completed setup just for the handoff or overwrite the already selected USER_DATA_PATH.

bash
"$PYTHON" -m hyperloom setup -- \
  --install-framework none --frameworks atom --require-frameworks \
  --user-data-path "${USER_DATA_PATH:?USER_DATA_PATH missing}" --yes

Use the USER_DATA_PATH explicitly selected in Step 2, or the existing value when reusing setup. If it differs between shell and .env, resolve that conflict with the user first; do not copy stale ambient settings over a freshly confirmed setup choice. These checks establish local importability, not validation of every ATOM/ROCm/Python version combination.

For vllm (installs into an isolated venv; --install-framework vllm already defaults to isolated, the flag below is explicit):

bash
export REPO_ROOT="$(pwd -P)"
PYTHONPATH="$REPO_ROOT" python3 -m hyperloom setup -- --install-framework vllm --framework-env isolated --yes

Downgrade path only when the user explicitly chooses a pre-0.28 vLLM on a host that failed the glibc check:

bash
export REPO_ROOT="$(pwd -P)"
export VLLM_VERSION=0.27.1
PYTHONPATH="$REPO_ROOT" python3 -m hyperloom setup -- --install-framework vllm --framework-env isolated --yes

For sglang:

bash
export REPO_ROOT="$(pwd -P)"
PYTHONPATH="$REPO_ROOT" python3 -m hyperloom setup -- --install-framework sglang --yes

For atom (installs AITER, then ATOM at ATOM_REF as an editable checkout under the dependency root, and verifies that atom and its server module import):

bash
export REPO_ROOT="$(pwd -P)"
PYTHONPATH="$REPO_ROOT" python3 -m hyperloom setup -- --install-framework atom --yes

none reuses a preinstalled framework; it does not remove it. If no serving framework is importable, report the missing prerequisite. For ATOM, select an existing compatible ATOM environment or install it with --install-framework atom after approval; do not bypass the check or install a different framework as a substitute. BENCHMARK_BASE_URL and HYPERLOOM_SKIP_FRAMEWORK_CHECK remain available for other existing remote/special workflows, not to bypass checks in this local ATOM example.

docker

Do not run hyperloom setup on the host. The example (workload) skill will start the container and run setup inside it.

After writing .env, tell the user:

  • setup on the host is skipped in docker mode;
  • the demo skill will docker run + docker exec setup inside the ROCm container;
  • FRAMEWORK being unset after this skill is expected.

This skill does not start a container. HYPERLOOM_RUN_MODE is recorded so the example (workload) skill can decide whether to generate a Docker container when it runs the optimization.

Step 5: Confirm Detected Framework

In baremetal mode, after setup completes, the backend writes the detected serving framework to FRAMEWORK in .env (sglang, vllm, or atom). For a preinstalled ATOM stack, --frameworks atom restricts verification/detection to ATOM even if SGLang or vLLM is also installed. In docker mode, skip this until the demo skill runs setup inside the container. Read .env back and check it:

  • In baremetal mode, re-check the chosen LLM side(s) after the backend returns, not only before it runs. Confirm each selected base URL and model still matches the user's choice and each selected key/token is set (without printing secrets). For Both, verify OPENAI_BASE_URL, OPENAI_API_KEY, and CODEX_MODEL remain alongside the Anthropic side. If any selected value was removed or changed, stop and report the setup failure instead of continuing to a demo.
  • If FRAMEWORK is set, report it. Downstream demo skills read this value.
  • If HYPERLOOM_RUN_MODE is docker, an unset FRAMEWORK is expected: the container has not run yet, so the host has no importable serving framework. Tell the user the example (workload) skill will detect or provide the framework when it starts the container. Do not offer to re-run setup with --install-framework sglang or vllm.
  • If HYPERLOOM_RUN_MODE is baremetal and FRAMEWORK is missing or empty, setup did not detect a serving framework (for example, none without an importable SGLang/vLLM/ATOM stack). Check the selected interpreter and report the failure. Offer SGLang/vLLM/ATOM installation only for the framework the user intends to run. Do not invent a FRAMEWORK value or silently switch frameworks.

Experience KB service

The workspace's Experience KB service runs wherever the optimizer runs. Its data and service.log live under $HYPERLOOM_KB_HOME when set, otherwise $USER_DATA_PATH/experience-kb, and every optimize launch starts it again when nothing serves HYPERLOOM_KB_URL.

In docker mode, skip this step: the service starts inside the container at the first optimize launch.

In baremetal mode, start it now and check its health, loading .env without printing any values:

bash
set -a
. "$PWD/.env"
set +a
PYTHONPATH="$PWD:${PYTHONPATH:-}" python3 -m hyperloom.inference_optimizer.experience_kb_service ensure

It prints whether the service was started, restarted, or already running, never the token. If it fails, report its message; when another process already serves that port with a different token, ask the user to set another port in HYPERLOOM_KB_URL and rerun this step. Do not continue to a demo until it succeeds.

When the .env settings the service uses change (the Anthropic gateway or model), or Hyperloom is upgraded, the next run of this step or of an optimize launch restarts it with them.

The same entry point also runs the hyperloom-kb skill's commands on the workspace's service, such as python3 -m hyperloom.inference_optimizer.experience_kb_service labels or restore <label_id>, defaulting to this workspace's schema. Setup itself runs none of them.

Step 6: Report Result

Report:

  • The .env path.
  • The run mode (baremetal or docker).
  • The Docker target host when HYPERLOOM_RUN_MODE=docker.
  • The setup command that was run (or that host setup was skipped in docker mode).
  • Whether setup completed or failed (in docker mode, report that host setup was skipped).
  • The detected FRAMEWORK value (or that it is unset).
  • Experience KB service: in baremetal mode, ready with its URL once the service step succeeds, or failed; in docker mode, that it starts inside the container at the first optimize launch.
  • The last relevant error lines on failure.

Do not print secret values back to the user.

Step 7: Hand Off to a Demo Skill

When setup and the Experience KB service step completed in baremetal mode, or when .env is written in docker mode, ask the user whether they want to run a demo optimization now, and if so which option:

  • 3h — short, no-kernel run. Best for a first end-to-end check.
  • 12h — medium-length Qwen3-14B-FP8 run on SGLang, vLLM or ATOM; the demo follows its ATOM section when ATOM is detected or explicitly selected (including a Docker run awaiting detection).
  • custom advanced — user-selected model, framework, workload, budget, phase toggles, and advanced CLI flags.

Kernel backend follow-up (only for 12h)

When — and only when — the user picks 12h, ask one follow-up question with the structured UI: which kernel optimization backend the KERNEL_AGENT phase should use. Do not ask this for 3h (it runs --no-kernel, so there is no kernel phase to route) or for custom advanced (that skill collects its own flags).

When FRAMEWORK=atom, or the user selected ATOM in Docker mode before container-side detection, ask the same backend question; the same two demo skills cover ATOM. If no backend was selected, write nothing to .env. Preserve an explicit shell or .env value; if it is non-empty and does not opt in, report the original value and ask whether to keep it or explicitly switch before launch. Never silently unset or delete it.

Present exactly these two option labels in this order:

  1. geak — the default backend, which owns the whole kernel phase.
  2. forge — the per-kernel KernelForge backend.

Both options run the identical Qwen3-14B-FP8 workload and budget; only the kernel backend differs, so the two runs stay directly comparable.

The choice selects which demo skill to load and sets KERNEL_OPT_BACKEND_ORDER:

  • geak → load hyperloom-qwen3-14b-fp8-12h. Leave KERNEL_OPT_BACKEND_ORDER unset, or write geak; anything that does not opt in means GEAK.
  • forge → load hyperloom-qwen3-14b-fp8-12h-forge, and write KERNEL_OPT_BACKEND_ORDER=forge to .env. The session records the backend when it is created, so a --resume-from relaunch keeps it either way.

KERNEL_OPT_BACKEND_ORDER is the only switch, and the opt-in is an exact match on forge after trimming whitespace and lowercasing. There is no CLI flag for it; do not invent one. KernelForge is vendored into Hyperloom and reuses the LLM credentials written above, so do not ask for any other FORGE_* value. Leave CLI dependency preparation to the existing runtime installer for the selected backend. Report actual installer or runtime failures before proposing an approved repair; do not infer failure from command -v claude or add a new API probe.

If .env was already written before this question, update it with the selected value rather than re-running the whole setup backend.

If the user wants to run a custom model with a preset workload, keep using one of the fixed demo presets. Ask the user for a local model path, confirm that the directory exists and contains config.json, then export MODEL_PATH=<that path> before loading the selected demo skill. Explain that the model path is replaced, but the selected fixed demo still owns the workload preset: tensor parallelism, concurrency, input/output lengths, precision, target gain, and run budget are not retuned. If the user wants to choose those workload values explicitly, load the custom advanced demo skill instead.

If the user declines, stop here. If HYPERLOOM_RUN_MODE is baremetal and FRAMEWORK is unset, do not offer a demo; tell the user to install a serving framework first (see Step 5).

When the user picks a length, load the matching demo skill and follow it — you stop acting on this setup skill and run the demo skill's instructions instead:

The demo skills are installed under each agent's discovery dir (.agents/skills/, .claude/skills/, .cursor/skills/); load the matching one by name:

  • 3h → hyperloom-qwen3-8b-3h
  • 12h + geak → hyperloom-qwen3-14b-fp8-12h (SGLang, vLLM or ATOM)
  • 12h + forge → hyperloom-qwen3-14b-fp8-12h-forge (SGLang, vLLM or ATOM)
  • custom advanced → hyperloom-custom-advanced

The demo skill reads the values already in .env (LLM keys/base URLs, FRAMEWORK, USER_DATA_PATH). Fixed presets do not ask the user to re-enter workload settings. The custom advanced skill reuses setup values, then asks for workload and phase choices. It resolves the optimizer skill from .env HYPERLOOM_SKILL_PATH (written by Step 3).

Heefeg gestallte Froen

Wat mécht de KI-Skill Hyperloom Setup?

Configures Hyperloom after pip install --target . by collecting core LLM/runtime settings once, choosing direct baremetal or Docker execution, writing .env, deploying the workspace's local Experience KB service, and running the setup backend directly only in baremetal mode.

Firwat Hyperloom Setup op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hyperloom Setup besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hyperloom Setup an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/AMD-AGI/Hyperloom/tree/main/src/hyperloom/skills/hyperloom-setup an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hyperloom Setup benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Hyperloom Setup benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Hyperloom Setup domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Hyperloom Setup gratis?

AMD-AGI huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇