[GH-ISSUE #4072] [Engine] Linux Mint RX 6800 (gfx1030): no ROCm-capable device is detected #1768

Open
opened 2026-11-04 01:53:54 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @killkrazed on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4072

Did the setup using scripts.sh, and it goes up to the point where it begins tuning, then throws out the below error:

"The engine stopped while it was loading the model (exit code 1): strat generate: native embedding: cannot pin 260MiB: no-ROCM-capable device is detected"

This is weird because this same system on Windows 11 wen through the same setup without any errors, and it did correctly detect my GPU and launches without errors. I would prefer to use on Linux to squeeze out a bit more performance though.

Image
Originally created by @killkrazed on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4072 Did the setup using scripts.sh, and it goes up to the point where it begins tuning, then throws out the below error: `"The engine stopped while it was loading the model (exit code 1): strat generate: native embedding: cannot pin 260MiB: no-ROCM-capable device is detected"` This is weird because this same system on Windows 11 wen through the same setup without any errors, and it did correctly detect my GPU and launches without errors. I would prefer to use on Linux to squeeze out a bit more performance though. <img width="1550" height="333" alt="Image" src="https://github.com/user-attachments/assets/d0e1e29a-5550-4949-aac7-263cef63e879" />
Author
Owner

@oerkel47 commented on GitHub (Oct 25, 2026):

I have the same problem with a RX9070, installed via script/tool though.

<!-- gh-comment-id:6399929957 --> @oerkel47 commented on GitHub (Oct 25, 2026): I have the same problem with a RX9070, installed via script/tool though.
Author
Owner

@veikk0 commented on GitHub (Oct 26, 2026):

Same issue here. Linux Mint 22.3 Cinnamon with an RX 9060 XT 16GB.

Kernel version: 7.0.0-38-generic.

I'm also running more up-to-date GPU drivers from the kisak-mesa PPA.

Here's the error (full log also attached, but it's just a bunch of similar stuff on repeat since I tried different settings):

[strata] 2026-10-26 21:27:25 engine started: /home/veikk0/.local/share/strata/components/engine/0.1.50-linux-x86_64-hip-rx9070/strata --serve --pack /mnt/f72660b4-486a-470f-90f1-3fc353879310/llm/packs/coder-iq1_m --native /mnt/f72660b4-486a-470f-90f1-3fc353879310/llm/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf --ple-gguf /mnt/f72660b4-486a-470f-90f1-3fc353879310/llm/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf --expert-profile /tmp/.mount_StratalCllEJ/usr/lib/Strata/control/data/expert-profile-coder.bin --expert-cache auto --prefill auto --spec 4 --max-context 8192 --resident-experts --vram-reserve-mib 1536
strata generate: memory guard: limit 31.2 GiB (source: meminfo), current 3.2 GiB, reclaimable cache credited 0.0 GiB; available 28.0 GiB (MemAvailable 28.0 GiB), floor 2560 MiB
strata generate: PCIe probe failed -> pcie_frac default 0.55
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
strata generate: native embedding: cannot pin 322 MiB: no ROCm-capable device is detected, nor place it in VRAM

strata-coder-iq1_m.log

Possibly related:

  • #3415 (allegedly solved, as OP closed it without comment... bruh)
  • #3982
<!-- gh-comment-id:6425999814 --> @veikk0 commented on GitHub (Oct 26, 2026): Same issue here. Linux Mint 22.3 Cinnamon with an RX 9060 XT 16GB. Kernel version: 7.0.0-38-generic. I'm also running more up-to-date GPU drivers from the [kisak-mesa PPA](https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa). Here's the error (full log also attached, but it's just a bunch of similar stuff on repeat since I tried different settings): ``` [strata] 2026-10-26 21:27:25 engine started: /home/veikk0/.local/share/strata/components/engine/0.1.50-linux-x86_64-hip-rx9070/strata --serve --pack /mnt/f72660b4-486a-470f-90f1-3fc353879310/llm/packs/coder-iq1_m --native /mnt/f72660b4-486a-470f-90f1-3fc353879310/llm/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf --ple-gguf /mnt/f72660b4-486a-470f-90f1-3fc353879310/llm/models/coder-IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf --expert-profile /tmp/.mount_StratalCllEJ/usr/lib/Strata/control/data/expert-profile-coder.bin --expert-cache auto --prefill auto --spec 4 --max-context 8192 --resident-experts --vram-reserve-mib 1536 strata generate: memory guard: limit 31.2 GiB (source: meminfo), current 3.2 GiB, reclaimable cache credited 0.0 GiB; available 28.0 GiB (MemAvailable 28.0 GiB), floor 2560 MiB strata generate: PCIe probe failed -> pcie_frac default 0.55 strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows) strata generate: native embedding: cannot pin 322 MiB: no ROCm-capable device is detected, nor place it in VRAM ``` [strata-coder-iq1_m.log](https://github.com/user-attachments/files/33982572/strata-coder-iq1_m.log) Possibly related: * #3415 (allegedly solved, as OP closed it without comment... bruh) * #3982
Author
Owner

@oerkel47 commented on GitHub (Oct 27, 2026):

Appears to be fixed with todays release :)

<!-- gh-comment-id:6446728573 --> @oerkel47 commented on GitHub (Oct 27, 2026): Appears to be fixed with todays release :)
Author
Owner

@veikk0 commented on GitHub (Oct 28, 2026):

Not for me. The updater doesn't even successfully run the latest engine, so it reverted to the older one (which also doesn't work):

Strata update (https://github.com/Niko1221/Strata/releases/latest/download)
  Reading the signed update feed
  downloading engine 0.1.52 linux-x86_64-hip-rx9070: 100%  (405 of 405 MB)   
  Unpacking 0.1.52 linux-x86_64-hip-rx9070
  Checking the package signature and every file
  Test-starting engine 0.1.52 linux-x86_64-hip-rx9070 before switching to it
  Engine 0.1.52 is loading the model (1 s)
Feed sequence 116, signed by 5d1bc23abbeffd0d
Engine  0.1.50   NOT changed: The new engine 0.1.52 did not start correctly on this computer, so it was not installed. Your current engine is unchanged. The engine started but stopped before it answered a test question. The graphics card or memory looks busy: close programs that use the card (games, video, other models) and run `strata update` again.
Control 0.1.53   up to date

Lack of VRAM/RAM can't be the actual issue, since VRAM use is only 512M / 16244M and RAM use is also minimal since everything else is closed.

<!-- gh-comment-id:6474351272 --> @veikk0 commented on GitHub (Oct 28, 2026): Not for me. The updater doesn't even successfully run the latest engine, so it reverted to the older one (which also doesn't work): ``` Strata update (https://github.com/Niko1221/Strata/releases/latest/download) Reading the signed update feed downloading engine 0.1.52 linux-x86_64-hip-rx9070: 100% (405 of 405 MB) Unpacking 0.1.52 linux-x86_64-hip-rx9070 Checking the package signature and every file Test-starting engine 0.1.52 linux-x86_64-hip-rx9070 before switching to it Engine 0.1.52 is loading the model (1 s) Feed sequence 116, signed by 5d1bc23abbeffd0d Engine 0.1.50 NOT changed: The new engine 0.1.52 did not start correctly on this computer, so it was not installed. Your current engine is unchanged. The engine started but stopped before it answered a test question. The graphics card or memory looks busy: close programs that use the card (games, video, other models) and run `strata update` again. Control 0.1.53 up to date ``` Lack of VRAM/RAM can't be the actual issue, since VRAM use is only 512M / 16244M and RAM use is also minimal since everything else is closed.
Author
Owner

@veikk0 commented on GitHub (Oct 29, 2026):

#4512 might be the possible root cause? Will test later today with AMD_LOG_LEVEL=3.

<!-- gh-comment-id:6492745992 --> @veikk0 commented on GitHub (Oct 29, 2026): #4512 might be the possible root cause? Will test later today with AMD_LOG_LEVEL=3.
Author
Owner

@l33tm4st3r commented on GitHub (Oct 29, 2026):

Summary

On my system, Strata's bundled ROCm runtime segfaults when running on Linux kernel 7.3 with an AMD Radeon AI PRO R9700 (gfx1201, RDNA 4).

I found a workaround that makes Strata use the ROCm/HIP libraries installed on the host system instead of relying on the runtime libraries bundled with the Strata engine. It does not require patching Strata's source code.

The principle is not tied to my particular GPU, operating system release, or ROCm version. Those details determine which engine build and system library paths are correct on each machine; the goal is to make Strata load the user's own compatible system ROCm libraries. This is a workaround observed on my machine, not a confirmed root-cause analysis or an official fix.

Environment where I reproduced it

  • GPU: AMD Radeon AI PRO R9700 (gfx1201, RDNA 4)
  • Kernel: Linux 7.3
  • Strata engine: 0.1.52
  • System ROCm libraries: /opt/rocm

Please report your own GPU model/architecture, operating system and kernel version, Strata/engine version, and installed ROCm version when testing. Reports from other configurations are useful too; this issue is not intended to be limited to the exact environment above.

Workaround

The important part is the run-profile JSON:

  • Set exe to the absolute path of the engine executable, instead of component:strata-engine.
  • Set lib_dirs to the system ROCm library directories.
  • Set backend to hip.
  • Start Strata with strata serve --profile.

In this setup, strata launch rewrites the profile, resetting exe to a component reference and lib_dirs to an empty list. Using strata serve --profile preserves the custom values.

The following paths are examples from my installation only, not values to copy blindly:

"lib_dirs": [
  "/opt/rocm/lib",
  "/opt/rocm/lib64",
  "/opt/rocm/llvm/lib"
],
"backend": "hip"

Make the configuration fit your system (not a fixed recipe)

Before applying this workaround, inspect your own installation and select the matching values:

  1. GPU and engine build: use an engine build that supports your GPU architecture and operating system. Do not assume that a directory containing rx9070 or another GPU name is appropriate for your card.
  2. ROCm library location: locate the ROCm/HIP libraries installed on your system. /opt/rocm is common on Linux but is not guaranteed; distributions, packages, containers, and custom installations may use different locations. hipconfig --path can help identify the ROCm installation if hipconfig is installed. Verify the actual library directories before adding them to lib_dirs.
  3. ROCm compatibility: use a system ROCm version compatible with the selected Strata engine build. Pointing at system libraries changes which runtime is loaded; it does not make incompatible versions compatible.
  4. Profile and executable: find the run-profile JSON and engine executable actually used by your Strata installation. These paths vary by model, installation method, and engine version.
  5. Model arguments: retain only flags supported by your chosen model/engine. The tuning arguments in my example are model-specific and are not required for the general library-loading workaround.

The general idea is to configure exe to the correct absolute engine executable, set lib_dirs to the system ROCm library directories that exist on your machine, keep backend set to hip where appropriate, and launch with strata serve --profile. In my setup, strata launch rewrites the profile (exe becomes a component reference and lib_dirs becomes empty), while strata serve --profile preserves the custom values. Check whether this behavior applies to your Strata version.

Model-specific paths in my script

The included script is a concrete example for two profiles on my machine, not a universal installer or auto-detection tool. It contains model-specific paths, ports, flags, and ROCm library directories. If your GPU, operating system, ROCm version, Strata installation, or model differs, adapt those values to your system before running it; do not copy the script unchanged and assume it will work.

Qwen3.8-Flash-Next IQ3_XXS

  • Profile: ~/.local/state/strata/launch/iq3_xxs-128k.json
  • Engine executable: ~/.local/share/strata/components/engine/0.1.52-linux-x86_64-hip-rx9070/strata
  • Port: 8080

DeepSeek-V4.1-Flash IST-DAS 2.25bpw

  • Profile: ~/.local/state/strata/launch/ist-das-2-25bpw-8k.json
  • Engine executable: ~/.local/share/strata/install/engine-dsv41/0.1.52-linux-x86_64-hip-rx9070/strata-dsv41
  • Port: 8081

The script also applies model-specific arguments for each profile. Those tuning arguments are based on my setup and should not be copied to other models without checking that the target engine supports them.

The two models are intended to run separately on my machine because of their memory requirements.

Usage

Save the script below as ~/strata-start.sh, make it executable, and run one of:

chmod +x ~/strata-start.sh
~/strata-start.sh start qwen
~/strata-start.sh status qwen
~/strata-start.sh stop qwen

~/strata-start.sh start ds4
~/strata-start.sh status ds4
~/strata-start.sh stop ds4

Back up the profile JSON files before testing: the script modifies them in place.

A more detailed guide for adapting the workaround to other models is attached here:
strata-rocm-workaround-community.md

Full workaround script (POSIX shell)
#!/bin/sh
# EXAMPLE ONLY: this script is configured for one Linux installation,
# one ROCm library layout, and two specific model profiles. Adapt it before
# use on any other GPU, OS, ROCm version, Strata install, or model.
# It demonstrates preferring system ROCm libraries over bundled runtime libs.
#
# This works without patching the code: the "run config" can specify the
# engine using a PATH (`exe`) instead of "component:strata-engine", and
# provide its own library directories (`lib_dirs`). With `strata serve
# --profile`, this config is used as-is. `strata launch`, however, rewrites
# it (setting exe=component:... and lib_dirs=[]), so we use `serve` directly.
#
# Usage: ~/strata-start.sh [start|stop|status] [qwen|ds4]
#        qwen = Qwen3.8-Flash-Next IQ3_XXS (port 8080, the model used by this agent)
#        ds4  = DeepSeek-V4.1-Flash IST-DAS 2.25bpw (port 8081)
# Both models cannot run simultaneously: DeepSeek requires tens of GB of RAM
# and approximately 30 GB of VRAM.
set -e

MODEL="${2:-qwen}"
case "$MODEL" in
  qwen)
    NAME=launch-iq3_xxs-128k
    CFG="$HOME/.local/state/strata/launch/iq3_xxs-128k.json"
    ENGINE="$HOME/.local/share/strata/components/engine/0.1.52-linux-x86_64-hip-rx9070/strata"
    ENGINE_MATCH='components/engine/.*/strata --serve'
    PORT=8080
    READY_S=180            # ~2 minutes to load
    ;;
  ds4)
    NAME=launch-ist-das-2-25bpw-8k
    CFG="$HOME/.local/state/strata/launch/ist-das-2-25bpw-8k.json"
    ENGINE="$HOME/.local/share/strata/install/engine-dsv41/0.1.52-linux-x86_64-hip-rx9070/strata-dsv41"
    ENGINE_MATCH='engine-dsv41/.*/strata-dsv41 --serve'
    PORT=8081
    READY_S=1800           # The engine takes several minutes to load 274 GB from NVMe
    ;;
  *)
    echo "Unknown model: $MODEL (use qwen or ds4)" >&2; exit 2 ;;
esac

PIDFILE="$HOME/.local/state/strata/serve-$MODEL.pid"
OLDPID="$HOME/.local/state/strata/serve.pid"
URL="http://127.0.0.1:$PORT/v1/models"
LOGS="$HOME/strata-serve-$MODEL.log ~/.local/state/strata/launch/*.engine.log"

up() { curl -fsS -m 2 "$URL" >/dev/null 2>&1; }
other_up() {
  case "$MODEL" in
    qwen) up_at 8081 ;;
    ds4)  up_at 8080 ;;
  esac
}
up_at() { curl -fsS -m 2 "http://127.0.0.1:$1/v1/models" >/dev/null 2>&1; }

case "${1:-start}" in
  stop)
    # The PID file may be missing (manual startup) or stale, so also search
    # the command line for matching processes.
    ids=""
    for pf in "$PIDFILE" "$OLDPID"; do
      if [ -f "$pf" ]; then
        p=$(cat "$pf" 2>/dev/null || true)
        [ -n "$p" ] && kill -0 "$p" 2>/dev/null && ids="$ids $p"
        rm -f "$pf"
      fi
    done
    for p in $(pgrep -f 'strata\.py serve --profile' 2>/dev/null); do
      case " $ids " in *" $p "*) ;; *) ids="$ids $p" ;; esac
    done
    if [ -z "$(echo $ids)" ]; then
      if up; then
        echo "Server is listening on port $PORT, but its process could not be found; stop it manually." >&2; exit 1
      fi
      echo "Strata ($MODEL) is already stopped."; exit 0
    fi
    kill $ids 2>/dev/null || true
    i=0
    while [ $i -lt 30 ]; do
      up || break
      sleep 1; i=$((i+1))
    done
    # The child engine sometimes survives the server, as does the image reader.
    for p in $(pgrep -f "$ENGINE_MATCH" 2>/dev/null); do
      kill "$p" 2>/dev/null || true
    done
    for p in $(pgrep -f 'strata-vision' 2>/dev/null); do
      kill "$p" 2>/dev/null || true
    done
    i=0
    while [ $i -lt 15 ]; do up || break; sleep 1; i=$((i+1)); done
    if up; then echo "Could not stop Strata (still listening on port $PORT)." >&2; exit 1; fi
    echo "Strata ($MODEL) stopped."
    ;;
  status)
    if up; then
      echo "$MODEL is serving at http://127.0.0.1:$PORT/v1"
      pgrep -f "$ENGINE_MATCH" >/dev/null 2>&1 && echo "Engine is running"
    else
      echo "$MODEL is stopped"
    fi
    for m in qwen ds4; do
      [ "$m" = "$MODEL" ] && continue
      case "$m" in
        qwen) p=8080; e='components/engine/.*/strata --serve' ;;
        ds4)  p=8081; e='engine-dsv41/.*/strata-dsv41 --serve' ;;
      esac
      if up_at "$p"; then echo "Warning: $m is also serving at http://127.0.0.1:$p/v1"; fi
    done
    ;;
  start)
    # 1. Repair the config if `strata launch` has rewritten it (idempotent).
    python3 - "$CFG" "$ENGINE" "$MODEL" <<'PY'
import json, pathlib, sys
cfg, engine, model = pathlib.Path(sys.argv[1]), sys.argv[2], sys.argv[3]
d = json.loads(cfg.read_text())
a = list(d.get("args") or [])
def setv(flag, val):
    if flag in a:
        i = a.index(flag)
        if i + 1 < len(a) and not a[i + 1].startswith("--"):
            a[i + 1] = val
        else:
            a.insert(i + 1, val)
    else:
        a.append(flag); a.append(val)
if model == "qwen":
    setv("--kv-resident", "65536")     # +5.4% decode speed at 128K (measured on the R9700)
    setv("--prefill", "auto:32768")    # Process prompts in 32K chunks
    while "--vision" in a:
        # Qwen uses a separate image reader (the config's "vision" section):
        # strata-vision-hip runs on the GPU, with strata-vision (CPU) as the
        # automatic fallback. The server re-adds --vision if that section exists.
        a.remove("--vision")
else:                                  # ds4: --vision on is handled by the engine itself (no CPU fallback)
    setv("--max-context", "138192")    # The context size used in Strata's own tests
    setv("--vision", "on")
    setv("--dspark", "auto")
    setv("--dspark-conf", "0.65")
    # Expert store in RAM: the default (41.2 GB) keeps 3,620 experts hot;
    # 46 GB raises this to 4,042 and improves decoding by +11% with a warm cache
    # (21.74 vs. 19.57 tok/s). 52 GB is about 2% faster still, but leaves only
    # 6.2 GB of free RAM, so 46 GB is the chosen setting.
    setv("--ssd-cache", "46")
d["args"] = a
d["exe"] = engine                  # Absolute path = "reference engine"; not validated or regenerated
d["lib_dirs"] = ["/opt/rocm/lib", "/opt/rocm/lib64", "/opt/rocm/llvm/lib"]
if model == "ds4":
    d["arch"] = "deepseek41"       # Otherwise, the server assumes it is Flash-Next
d["backend"] = "hip"
d["port"] = 8081 if model == "ds4" else 8080
cfg.write_text(json.dumps(d, indent=1))
PY
    if up; then echo "Strata ($MODEL) is already serving at http://127.0.0.1:$PORT/v1"; exit 0; fi
    if other_up; then
      echo "WARNING: The other model is already running; both models will not fit in this machine's memory." >&2
      echo "Stop it first:  ~/strata-start.sh stop <qwen|ds4>" >&2
      exit 1
    fi
    export PATH="$HOME/.local/bin:$PATH"
    mkdir -p "$(dirname "$PIDFILE")"
    nohup strata serve --profile "$CFG" --host 127.0.0.1 --port "$PORT" \
      > "$HOME/strata-serve-$MODEL.log" 2>&1 < /dev/null &
    echo $! > "$PIDFILE"
    for i in $(seq 1 "$READY_S"); do
      sleep 5
      if up; then echo "Strata ($MODEL) is serving at http://127.0.0.1:$PORT/v1"; exit 0; fi
    done
    echo "Startup failed; check $LOGS" >&2
    exit 1
    ;;
  *)
    echo "Usage: $0 [start|stop|status] [qwen|ds4]" >&2; exit 2 ;;
esac

Caveats

  • I have tested this only on the environment listed above; compatibility with other ROCm versions, kernels, GPUs, and Strata builds is not guaranteed.
  • Using system ROCm libraries may cause ABI or version compatibility issues if they differ from the runtime the engine expects.
  • The engine paths, ports, model flags, and /opt/rocm library directories in the script are installation-specific examples, not universal settings.
  • This workaround does not establish that all bundled-runtime crashes have the same cause.
  • Review the process-matching patterns before using the stop command on a different installation.

What would be a better fix?

Ideally, Strata should offer a supported way to select or prefer host-system ROCm/HIP libraries over bundled libraries, or detect a compatible system runtime, without users having to edit model profiles after launch. The implementation should account for different GPUs, operating systems, ROCm versions, and engine builds rather than hard-coding one machine's paths.

Hopefully this helps other users investigate the issue while the developers work on a robust solution. Please include your GPU, operating system/kernel, Strata engine version, and ROCm version in reports, and share whether using the system libraries changes the behavior on your setup.

<!-- gh-comment-id:6506241915 --> @l33tm4st3r commented on GitHub (Oct 29, 2026): # Summary On my system, Strata's bundled ROCm runtime segfaults when running on Linux kernel 7.3 with an AMD Radeon AI PRO R9700 (gfx1201, RDNA 4). I found a workaround that makes Strata use the ROCm/HIP libraries installed on the host system instead of relying on the runtime libraries bundled with the Strata engine. It does not require patching Strata's source code. **The principle is not tied to my particular GPU, operating system release, or ROCm version.** Those details determine which engine build and system library paths are correct on each machine; the goal is to make Strata load the user's own compatible system ROCm libraries. This is a workaround observed on my machine, not a confirmed root-cause analysis or an official fix. ## Environment where I reproduced it - **GPU:** AMD Radeon AI PRO R9700 (gfx1201, RDNA 4) - **Kernel:** Linux 7.3 - **Strata engine:** 0.1.52 - **System ROCm libraries:** `/opt/rocm` Please report your own GPU model/architecture, operating system and kernel version, Strata/engine version, and installed ROCm version when testing. Reports from other configurations are useful too; this issue is not intended to be limited to the exact environment above. ## Workaround The important part is the run-profile JSON: - Set `exe` to the **absolute path of the engine executable**, instead of `component:strata-engine`. - Set `lib_dirs` to the system ROCm library directories. - Set `backend` to `hip`. - Start Strata with `strata serve --profile`. In this setup, `strata launch` rewrites the profile, resetting `exe` to a component reference and `lib_dirs` to an empty list. Using `strata serve --profile` preserves the custom values. The following paths are **examples from my installation only**, not values to copy blindly: ```json "lib_dirs": [ "/opt/rocm/lib", "/opt/rocm/lib64", "/opt/rocm/llvm/lib" ], "backend": "hip" ``` ### Make the configuration fit your system (not a fixed recipe) Before applying this workaround, inspect your own installation and select the matching values: 1. **GPU and engine build:** use an engine build that supports your GPU architecture and operating system. Do not assume that a directory containing `rx9070` or another GPU name is appropriate for your card. 2. **ROCm library location:** locate the ROCm/HIP libraries installed on your system. `/opt/rocm` is common on Linux but is not guaranteed; distributions, packages, containers, and custom installations may use different locations. `hipconfig --path` can help identify the ROCm installation if `hipconfig` is installed. Verify the actual library directories before adding them to `lib_dirs`. 3. **ROCm compatibility:** use a system ROCm version compatible with the selected Strata engine build. Pointing at system libraries changes which runtime is loaded; it does not make incompatible versions compatible. 4. **Profile and executable:** find the run-profile JSON and engine executable actually used by your Strata installation. These paths vary by model, installation method, and engine version. 5. **Model arguments:** retain only flags supported by your chosen model/engine. The tuning arguments in my example are model-specific and are not required for the general library-loading workaround. The general idea is to configure `exe` to the correct absolute engine executable, set `lib_dirs` to the system ROCm library directories that exist on your machine, keep `backend` set to `hip` where appropriate, and launch with `strata serve --profile`. In my setup, `strata launch` rewrites the profile (`exe` becomes a component reference and `lib_dirs` becomes empty), while `strata serve --profile` preserves the custom values. Check whether this behavior applies to your Strata version. ### Model-specific paths in my script The included script is a **concrete example for two profiles on my machine**, not a universal installer or auto-detection tool. It contains model-specific paths, ports, flags, and ROCm library directories. If your GPU, operating system, ROCm version, Strata installation, or model differs, adapt those values to your system before running it; do not copy the script unchanged and assume it will work. **Qwen3.8-Flash-Next IQ3_XXS** - Profile: `~/.local/state/strata/launch/iq3_xxs-128k.json` - Engine executable: `~/.local/share/strata/components/engine/0.1.52-linux-x86_64-hip-rx9070/strata` - Port: `8080` **DeepSeek-V4.1-Flash IST-DAS 2.25bpw** - Profile: `~/.local/state/strata/launch/ist-das-2-25bpw-8k.json` - Engine executable: `~/.local/share/strata/install/engine-dsv41/0.1.52-linux-x86_64-hip-rx9070/strata-dsv41` - Port: `8081` The script also applies model-specific arguments for each profile. Those tuning arguments are based on my setup and should not be copied to other models without checking that the target engine supports them. The two models are intended to run separately on my machine because of their memory requirements. ### Usage Save the script below as `~/strata-start.sh`, make it executable, and run one of: ```sh chmod +x ~/strata-start.sh ~/strata-start.sh start qwen ~/strata-start.sh status qwen ~/strata-start.sh stop qwen ~/strata-start.sh start ds4 ~/strata-start.sh status ds4 ~/strata-start.sh stop ds4 ``` Back up the profile JSON files before testing: the script modifies them in place. A more detailed guide for adapting the workaround to other models is attached here: [strata-rocm-workaround-community.md](https://github.com/user-attachments/files/34149914/strata-rocm-workaround-community.md) <details> <summary>Full workaround script (POSIX shell)</summary> ```sh #!/bin/sh # EXAMPLE ONLY: this script is configured for one Linux installation, # one ROCm library layout, and two specific model profiles. Adapt it before # use on any other GPU, OS, ROCm version, Strata install, or model. # It demonstrates preferring system ROCm libraries over bundled runtime libs. # # This works without patching the code: the "run config" can specify the # engine using a PATH (`exe`) instead of "component:strata-engine", and # provide its own library directories (`lib_dirs`). With `strata serve # --profile`, this config is used as-is. `strata launch`, however, rewrites # it (setting exe=component:... and lib_dirs=[]), so we use `serve` directly. # # Usage: ~/strata-start.sh [start|stop|status] [qwen|ds4] # qwen = Qwen3.8-Flash-Next IQ3_XXS (port 8080, the model used by this agent) # ds4 = DeepSeek-V4.1-Flash IST-DAS 2.25bpw (port 8081) # Both models cannot run simultaneously: DeepSeek requires tens of GB of RAM # and approximately 30 GB of VRAM. set -e MODEL="${2:-qwen}" case "$MODEL" in qwen) NAME=launch-iq3_xxs-128k CFG="$HOME/.local/state/strata/launch/iq3_xxs-128k.json" ENGINE="$HOME/.local/share/strata/components/engine/0.1.52-linux-x86_64-hip-rx9070/strata" ENGINE_MATCH='components/engine/.*/strata --serve' PORT=8080 READY_S=180 # ~2 minutes to load ;; ds4) NAME=launch-ist-das-2-25bpw-8k CFG="$HOME/.local/state/strata/launch/ist-das-2-25bpw-8k.json" ENGINE="$HOME/.local/share/strata/install/engine-dsv41/0.1.52-linux-x86_64-hip-rx9070/strata-dsv41" ENGINE_MATCH='engine-dsv41/.*/strata-dsv41 --serve' PORT=8081 READY_S=1800 # The engine takes several minutes to load 274 GB from NVMe ;; *) echo "Unknown model: $MODEL (use qwen or ds4)" >&2; exit 2 ;; esac PIDFILE="$HOME/.local/state/strata/serve-$MODEL.pid" OLDPID="$HOME/.local/state/strata/serve.pid" URL="http://127.0.0.1:$PORT/v1/models" LOGS="$HOME/strata-serve-$MODEL.log ~/.local/state/strata/launch/*.engine.log" up() { curl -fsS -m 2 "$URL" >/dev/null 2>&1; } other_up() { case "$MODEL" in qwen) up_at 8081 ;; ds4) up_at 8080 ;; esac } up_at() { curl -fsS -m 2 "http://127.0.0.1:$1/v1/models" >/dev/null 2>&1; } case "${1:-start}" in stop) # The PID file may be missing (manual startup) or stale, so also search # the command line for matching processes. ids="" for pf in "$PIDFILE" "$OLDPID"; do if [ -f "$pf" ]; then p=$(cat "$pf" 2>/dev/null || true) [ -n "$p" ] && kill -0 "$p" 2>/dev/null && ids="$ids $p" rm -f "$pf" fi done for p in $(pgrep -f 'strata\.py serve --profile' 2>/dev/null); do case " $ids " in *" $p "*) ;; *) ids="$ids $p" ;; esac done if [ -z "$(echo $ids)" ]; then if up; then echo "Server is listening on port $PORT, but its process could not be found; stop it manually." >&2; exit 1 fi echo "Strata ($MODEL) is already stopped."; exit 0 fi kill $ids 2>/dev/null || true i=0 while [ $i -lt 30 ]; do up || break sleep 1; i=$((i+1)) done # The child engine sometimes survives the server, as does the image reader. for p in $(pgrep -f "$ENGINE_MATCH" 2>/dev/null); do kill "$p" 2>/dev/null || true done for p in $(pgrep -f 'strata-vision' 2>/dev/null); do kill "$p" 2>/dev/null || true done i=0 while [ $i -lt 15 ]; do up || break; sleep 1; i=$((i+1)); done if up; then echo "Could not stop Strata (still listening on port $PORT)." >&2; exit 1; fi echo "Strata ($MODEL) stopped." ;; status) if up; then echo "$MODEL is serving at http://127.0.0.1:$PORT/v1" pgrep -f "$ENGINE_MATCH" >/dev/null 2>&1 && echo "Engine is running" else echo "$MODEL is stopped" fi for m in qwen ds4; do [ "$m" = "$MODEL" ] && continue case "$m" in qwen) p=8080; e='components/engine/.*/strata --serve' ;; ds4) p=8081; e='engine-dsv41/.*/strata-dsv41 --serve' ;; esac if up_at "$p"; then echo "Warning: $m is also serving at http://127.0.0.1:$p/v1"; fi done ;; start) # 1. Repair the config if `strata launch` has rewritten it (idempotent). python3 - "$CFG" "$ENGINE" "$MODEL" <<'PY' import json, pathlib, sys cfg, engine, model = pathlib.Path(sys.argv[1]), sys.argv[2], sys.argv[3] d = json.loads(cfg.read_text()) a = list(d.get("args") or []) def setv(flag, val): if flag in a: i = a.index(flag) if i + 1 < len(a) and not a[i + 1].startswith("--"): a[i + 1] = val else: a.insert(i + 1, val) else: a.append(flag); a.append(val) if model == "qwen": setv("--kv-resident", "65536") # +5.4% decode speed at 128K (measured on the R9700) setv("--prefill", "auto:32768") # Process prompts in 32K chunks while "--vision" in a: # Qwen uses a separate image reader (the config's "vision" section): # strata-vision-hip runs on the GPU, with strata-vision (CPU) as the # automatic fallback. The server re-adds --vision if that section exists. a.remove("--vision") else: # ds4: --vision on is handled by the engine itself (no CPU fallback) setv("--max-context", "138192") # The context size used in Strata's own tests setv("--vision", "on") setv("--dspark", "auto") setv("--dspark-conf", "0.65") # Expert store in RAM: the default (41.2 GB) keeps 3,620 experts hot; # 46 GB raises this to 4,042 and improves decoding by +11% with a warm cache # (21.74 vs. 19.57 tok/s). 52 GB is about 2% faster still, but leaves only # 6.2 GB of free RAM, so 46 GB is the chosen setting. setv("--ssd-cache", "46") d["args"] = a d["exe"] = engine # Absolute path = "reference engine"; not validated or regenerated d["lib_dirs"] = ["/opt/rocm/lib", "/opt/rocm/lib64", "/opt/rocm/llvm/lib"] if model == "ds4": d["arch"] = "deepseek41" # Otherwise, the server assumes it is Flash-Next d["backend"] = "hip" d["port"] = 8081 if model == "ds4" else 8080 cfg.write_text(json.dumps(d, indent=1)) PY if up; then echo "Strata ($MODEL) is already serving at http://127.0.0.1:$PORT/v1"; exit 0; fi if other_up; then echo "WARNING: The other model is already running; both models will not fit in this machine's memory." >&2 echo "Stop it first: ~/strata-start.sh stop <qwen|ds4>" >&2 exit 1 fi export PATH="$HOME/.local/bin:$PATH" mkdir -p "$(dirname "$PIDFILE")" nohup strata serve --profile "$CFG" --host 127.0.0.1 --port "$PORT" \ > "$HOME/strata-serve-$MODEL.log" 2>&1 < /dev/null & echo $! > "$PIDFILE" for i in $(seq 1 "$READY_S"); do sleep 5 if up; then echo "Strata ($MODEL) is serving at http://127.0.0.1:$PORT/v1"; exit 0; fi done echo "Startup failed; check $LOGS" >&2 exit 1 ;; *) echo "Usage: $0 [start|stop|status] [qwen|ds4]" >&2; exit 2 ;; esac ``` </details> ## Caveats - I have tested this only on the environment listed above; compatibility with other ROCm versions, kernels, GPUs, and Strata builds is not guaranteed. - Using system ROCm libraries may cause ABI or version compatibility issues if they differ from the runtime the engine expects. - The engine paths, ports, model flags, and `/opt/rocm` library directories in the script are installation-specific examples, not universal settings. - This workaround does not establish that all bundled-runtime crashes have the same cause. - Review the process-matching patterns before using the `stop` command on a different installation. ## What would be a better fix? Ideally, Strata should offer a supported way to select or prefer host-system ROCm/HIP libraries over bundled libraries, or detect a compatible system runtime, without users having to edit model profiles after launch. The implementation should account for different GPUs, operating systems, ROCm versions, and engine builds rather than hard-coding one machine's paths. Hopefully this helps other users investigate the issue while the developers work on a robust solution. Please include your GPU, operating system/kernel, Strata engine version, and ROCm version in reports, and share whether using the system libraries changes the behavior on your setup.
Author
Owner

@mohitNarang commented on GitHub (Nov 5, 2026):

I had the same issue after upgrading my linux machine. In my case it was the issue with the version change for the rocm/hip libraries on the host.

What worked was this command to allow the user that runs strata to be added to the correct group:

sudo usermod -aG render,video "$USER"

replace $USER with the user that runs the strata launcher.

Not sure if this might fix your issue as well, but for me this was just a random trial as I used to run into the same issue after each rocm update from the linux distro updates.

<!-- gh-comment-id:6658914128 --> @mohitNarang commented on GitHub (Nov 5, 2026): I had the same issue after upgrading my linux machine. In my case it was the issue with the version change for the rocm/hip libraries on the host. What worked was this command to allow the user that runs strata to be added to the correct group: `sudo usermod -aG render,video "$USER"` replace $USER with the user that runs the strata launcher. Not sure if this might fix your issue as well, but for me this was just a random trial as I used to run into the same issue after each rocm update from the linux distro updates.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1768
No description provided.