You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Segmentation fault on startup — RAG embeddings warmup crashes on AMD Radeon 8060S (gfx1100) / ROCm 6.3 #7331
Number GPUs used, use nvidia-smi — 1 GPU (AMD, not NVIDIA — nvidia-smi not applicable). rocminfo shows: AMD Ryzen AI MAX+ 395 w/ Radeon 8060S, gfx1100, ROCm HIP 6.3.42134
Which notebook? Please link! — Not using a notebook. Running Unsloth Studio via unsloth studio -p 8888 on Linux Mint desktop.
Which Unsloth version, TRL version, transformers version, PyTorch version? — Unsloth: 2026.7.4 | Transformers: 5.10.2 | PyTorch: 2.9.1+rocm6.3 | TRL: installed via Unsloth Studio installer
Which trainer? SFTTrainer, GRPOTrainer etc — Not reached training yet. Studio crashes on startup before any trainer is selected, in the RAG embeddings warmup thread (studio/backend/core/rag/embeddings.py → SentenceTransformer.init → .to(device) → segfault)
Minimal reproduction: Unsloth Studio RAG embeddings warmup segfault on AMD ROCm
No HF token needed — crash happens before any model is loaded from HF
it seems the crash is occurring outside of Unsloth itself. Based on the reproduction, this looks more likely to be related to the PyTorch ROCm/HIP stack, SentenceTransformers, or the underlying AMD GPU runtime rather than Unsloth Studio.
It may be worth checking whether the same minimal script reproduces across different PyTorch/ROCm versions, or reporting it upstream if it consistently crashes outside of Unsloth.
Hello naitik.
Here is what i found to be the issue. Im not a coder, so using 'AI' to
help solve this. It asked me to share this with you:
If there is anything i can do on this end, please do not hesitate to ask.
Kindest regards, Brett. Confirmed: the crash occurs outside Unsloth in its
bundled environment. GPU: AMD Radeon 8060S (gfx1151 / Strix Halo) PyTorch:
2.9.1+rocm6.3 ROCm/HIP: 6.3.42134-a9a80e791 torch.cuda.is_available()
returns True and the GPU is detected correctly, but this minimal script
causes an immediate segmentation fault: from sentence_transformers import
SentenceTransformer model = SentenceTransformer("all-MiniLM-L6-v2")
model.to("cuda")
This appears to be the known gfx1151/Strix Halo ROCm issue. Reports
indicate ROCm 7.2 builds resolve or improve it:
pytorch/pytorch#173367 Is there an Unsloth Studio
installer or supported upgrade path using ROCm 7.2+ / gfx1151-compatible
PyTorch?
Thanks for investigating this and for narrowing it down!
The fact that the same segmentation fault occurs with a minimal SentenceTransformer example outside of Unsloth Studio is a very useful data point. That suggests the issue is likely in the ROCm/PyTorch stack for gfx1151 rather than in Unsloth Studio itself.
Since:
torch.cuda.is_available() returns True
the GPU is detected correctly
the crash occurs with a standalone PyTorch script
the same behavior has been reported for Strix Halo (gfx1151) with ROCm 6.3
this does appear consistent with the known ROCm compatibility issue you referenced.
Could one of the maintainers clarify:
Is there currently an Unsloth Studio build that bundles PyTorch + ROCm 7.2 (or newer) with support for gfx1151?
If not, is there a recommended way to replace the bundled PyTorch/ROCm runtime with a newer version for testing?
Is official support for Strix Halo (gfx1151) planned in a future Unsloth Studio release?
The minimal reproducer below may also help confirm the issue:
If this crashes in the bundled environment as well, it would further indicate that the issue lies upstream in the current ROCm/PyTorch stack rather than in Unsloth Studio itself.
Hello Naitik, Brett here.
Got the whole thing sorted. Attached you will find a brief of what
occurred, done and how it was sorted.. and the OS and Hardware.
Thank you for your patience and correspondence.
Kindest regards, Brett Phillips.
now we are up against this:
Essentially, UnSloth now will only detect the system RAM @32GB and not the
96GB iGPU.
This brief makes it clear why you're "over it"—you did an enormous amount
of heavy lifting yesterday to get the ROCm 7.2.4 stack, the symbolic links,
and the virtual environments all synced up just to stop the segmentation
faults.
The "repair brief" confirms that Unsloth is now successfully detecting your
hardware:
Hardware detected: ROCm (HIP 7.2.53211) -- Radeon 8060S Graphics
The specific reason you are hitting this now is a logic mismatch in how
Unsloth Studio checks for "fit" before it even tries to load the model.
Kindest regards, Brett Phillips
On Fri, Jul 31, 2026 at 6:17 PM Brett Phillips ***@***.***>
wrote:
sorry to be a pain Naitik, but i figure the more information you have the
better.
If i am incorrect, let me know.
It is even failing to load the tiny models. Any help would be appreciated.
this part of the terminal output:
{"timestamp": "2026-08-01T03:37:28.175290Z", "level": "info", "event":
"request_completed", "method": "POST", "path": "/api/inference/validate",
"status_code": 200, "process_time_ms": 97.67}
{"timestamp": "2026-08-01T03:37:28.223245Z", "level": "info", "event":
"Detected local GGUF model:
/home/user/.lmstudio/models/LuffyTheFox/OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF/OmniClaw-V2-Q8_0.gguf"}
{"timestamp": "2026-08-01T03:37:28.223885Z", "level": "info", "event":
"Detected mmproj for vision:
/home/user/.lmstudio/models/LuffyTheFox/OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF/mmproj-BF16.gguf"}
{"timestamp": "2026-08-01T03:37:28.297957Z", "level": "info", "event":
"GGUF metadata: context_length=262144"}
{"timestamp": "2026-08-01T03:37:28.298037Z", "level": "info", "event":
"GGUF metadata: chat_template=7756 chars"}
{"timestamp": "2026-08-01T03:37:28.298061Z", "level": "info", "event":
"GGUF metadata: model supports reasoning (enable_thinking)"}
{"timestamp": "2026-08-01T03:37:28.298106Z", "level": "info", "event":
"GGUF metadata: model supports tool calling"}
{"timestamp": "2026-08-01T03:37:28.387762Z", "level": "info", "event":
"GGUF metadata: context_length=262144"}
{"timestamp": "2026-08-01T03:37:28.387828Z", "level": "info", "event":
"GGUF metadata: chat_template=7756 chars"}
{"timestamp": "2026-08-01T03:37:28.387851Z", "level": "info", "event":
"GGUF metadata: model supports reasoning (enable_thinking)"}
{"timestamp": "2026-08-01T03:37:28.387894Z", "level": "info", "event":
"GGUF metadata: model supports tool calling"}
{"timestamp": "2026-08-01T03:37:28.408175Z", "level": "info", "event":
"GGUF size: 8.9 GB, mmproj: 0.9 GB, est. KV cache: 8.0 GB, context: 262144,
GPUs free: [(0, 97904)], selected: [0], fit: False"}
{"timestamp": "2026-08-01T03:37:28.414109Z", "level": "info", "event":
"Reasoning model: {'enable_thinking': True} by default"}
{"timestamp": "2026-08-01T03:37:28.414143Z", "level": "info", "event":
"Using mmproj for vision:
/home/user/.lmstudio/models/LuffyTheFox/OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF/mmproj-BF16.gguf"}
{"timestamp": "2026-08-01T03:37:28.414318Z", "level": "info", "event":
"Starting llama-server: /home/user/.unsloth/llama.cpp/llama-server -m
/home/user/.lmstudio/models/LuffyTheFox/OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF/OmniClaw-V2-Q8_0.gguf
--port 45265 --parallel 4 --flash-attn on --no-context-shift -c 262144
--alias OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF -ngl -1
--fit off --metrics --slot-save-path
/home/user/.unsloth/studio/cache/llama-slots --kv-unified --jinja
--spec-default --chat-template-kwargs {\"enable_thinking\": true} --mmproj
/home/user/.lmstudio/models/LuffyTheFox/OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF/mmproj-BF16.gguf"}
{"timestamp": "2026-08-01T03:37:28.416765Z", "level": "info", "event": "AMD
unified-memory APU: set GGML_CUDA_ENABLE_UNIFIED_MEMORY=1"}
{"timestamp": "2026-08-01T03:37:28.417798Z", "level": "info", "event":
"llama-server stdout/stderr ->
/home/user/.unsloth/studio/logs/llama-server/llama-1785555448-port-45265-try0.log"}
{"timestamp": "2026-08-01T03:37:29.848168Z", "level": "info", "event":
"inference_load_progress", "phase": "mmap", "percent": 30}
{"timestamp": "2026-08-01T03:37:31.853119Z", "level": "info", "event":
"inference_load_progress", "phase": "mmap", "percent": 100}
{"timestamp": "2026-08-01T03:37:58.175892Z", "level": "error", "event":
"llama-server exited with code -11. Output (tail): 0.00.168.956 W Setting
'enable_thinking' via --chat-template-kwargs is deprecated. Use --reasoning
on / --reasoning off instead.\n0.00.169.378 I cmn common_param:
common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI
arg)\n0.00.169.969 W srv llama_server: -----------------\n0.00.169.970 W
srv llama_server: CORS is set to allow all origins ('*') and no API key is
set\n0.00.169.970 W srv llama_server: this can be a security risk
(cross-origin attacks)\n0.00.169.971 W srv llama_server: more info:
ggml-org/llama.cpp#25655\n0.00.169.971 W srv
llama_server: -----------------\n0.00.171.575 I srv load_model: loading
model
'/home/user/.lmstudio/models/LuffyTheFox/OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF/OmniClaw-V2-Q8_0.gguf'
Full log:
/home/user/.unsloth/studio/logs/llama-server/llama-1785555448-port-45265-try0.log"}
{"timestamp": "2026-08-01T03:37:58.177071Z", "level": "warning", "event":
"llama-server crashed during startup (exit code -11) with forced --fit off;
the fit estimate was optimistic, retrying once with --fit on so it can
offload. Crash log:
/home/user/.unsloth/studio/logs/llama-server/llama-1785555448-port-45265-try0.log"}
{"timestamp": "2026-08-01T03:37:58.183225Z", "level": "info", "event":
"llama-server stdout/stderr ->
/home/user/.unsloth/studio/logs/llama-server/llama-1785555478-port-45265-try1.log"}
{"timestamp": "2026-08-01T03:38:01.884683Z", "level": "info", "event":
"inference_load_progress", "phase": "mmap", "percent": 100}
{"timestamp": "2026-08-01T03:38:20.698699Z", "level": "error", "event":
"llama-server exited with code -11. Output (tail): 0.00.132.079 W Setting
'enable_thinking' via --chat-template-kwargs is deprecated. Use --reasoning
on / --reasoning off instead.\n0.00.132.396 I cmn common_param:
common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI
arg)\n0.00.133.154 W srv llama_server: -----------------\n0.00.133.155 W
srv llama_server: CORS is set to allow all origins ('*') and no API key is
set\n0.00.133.155 W srv llama_server: this can be a security risk
(cross-origin attacks)\n0.00.133.156 W srv llama_server: more info:
ggml-org/llama.cpp#25655\n0.00.133.156 W srv
llama_server: -----------------\n0.00.134.710 I srv load_model: loading
model
'/home/user/.lmstudio/models/LuffyTheFox/OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF/OmniClaw-V2-Q8_0.gguf'
Full log:
/home/user/.unsloth/studio/logs/llama-server/llama-1785555478-port-45265-try1.log"}
{"timestamp": "2026-08-01T03:38:20.705008Z", "level": "warning", "event":
"llama-server hard-crashed at startup (exit -11) with flash attention on;
retrying once with --flash-attn off (keeps vision and MTP)."}
{"timestamp": "2026-08-01T03:38:20.706267Z", "level": "info", "event":
"llama-server stdout/stderr ->
/home/user/.unsloth/studio/logs/llama-server/llama-1785555500-noflash-port-45265-try0.log"}
{"timestamp": "2026-08-01T03:38:24.177406Z", "level": "info", "event":
"inference_load_progress", "phase": "mmap", "percent": 100}
{"timestamp": "2026-08-01T03:38:49.100842Z", "level": "error", "event":
"llama-server exited with code -11. Output (tail): 0.00.147.566 W Setting
'enable_thinking' via --chat-template-kwargs is deprecated. Use --reasoning
on / --reasoning off instead.\n0.00.147.799 I cmn common_param:
common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI
arg)\n0.00.148.175 W srv llama_server: -----------------\n0.00.148.179 W
srv llama_server: CORS is set to allow all origins ('*') and no API key is
set\n0.00.148.179 W srv llama_server: this can be a security risk
(cross-origin attacks)\n0.00.148.180 W srv llama_server: more info:
ggml-org/llama.cpp#25655\n0.00.148.180 W srv
llama_server: -----------------\n0.00.149.506 I srv load_model: loading
model
'/home/user/.lmstudio/models/LuffyTheFox/OmniClaw-Qwen3.5-9B-Claude-4.6-Opus-Uncensored-v2-GGUF/OmniClaw-V2-Q8_0.gguf'\n0.03.721.817
W resolve_fused_ops: layer 0 is assigned to device CPU but fused Gated
Delta Net (chunked) is assigned to device ROCm0 (usually due to missing
support)\n0.03.721.820 W resolve_fused_ops: fused Gated Delta Net (chunked)
not supported, set to disabled Full log:
/home/user/.unsloth/studio/logs/llama-server/llama-1785555500-noflash-port-45265-try0.log"}
{"timestamp": "2026-08-01T03:38:49.102296Z", "level": "warning", "event":
"llama-server crashed during startup (exit code -11) with forced --fit off;
the fit estimate was optimistic, retrying once with --fit on so it can
offload. Crash log:
/home/user/.unsloth/studio/logs/llama-server/llama-1785555500-noflash-port-45265-try0.log"}
{"timestamp": "2026-08-01T03:38:49.107373Z", "level": "info", "event":
"llama-server stdout/stderr ->
/home/user/.unsloth/studio/logs/llama-server/llama-1785555529-noflash-port-45265-try1.log"}
{"timestamp": "2026-08-01T03:38:52.200272Z", "level": "info", "event":
"inference_load_progress", "phase": "mmap", "percent": 30}
{"timestamp": "2026-08-01T03:38:54.204277Z", "level": "info", "event":
"inference_load_progress", "phase": "mmap", "percent": 100}
Kindest regards, Brett
On Sat, Aug 1, 2026 at 12:31 PM Brett Phillips ***@***.***>
wrote:
now we are up against this:
Essentially, UnSloth now will only detect the system RAM @32GB and not the
96GB iGPU.
This brief makes it clear why you're "over it"—you did an enormous amount
of heavy lifting yesterday to get the ROCm 7.2.4 stack, the symbolic links,
and the virtual environments all synced up just to stop the segmentation
faults.
The "repair brief" confirms that Unsloth is now successfully detecting
your hardware:
Hardware detected: ROCm (HIP 7.2.53211) -- Radeon 8060S Graphics
The specific reason you are hitting this now is a logic mismatch in how
Unsloth Studio checks for "fit" before it even tries to load the model.
Kindest regards, Brett Phillips
On Fri, Jul 31, 2026 at 6:17 PM Brett Phillips ***@***.***>
wrote:
> Hello Naitik, Brett here.
> Got the whole thing sorted. Attached you will find a brief of what
> occurred, done and how it was sorted.. and the OS and Hardware.
> Thank you for your patience and correspondence.
> Kindest regards, Brett Phillips.
>
> On Tue, Jul 28, 2026 at 8:50 PM Naitik Pal ***@***.***>
> wrote:
>
>> *VectorCipher* left a comment (unslothai/unsloth#7331)
>> <#7331 (comment)>
>>
>> Thanks for investigating this and for narrowing it down!
>>
>> The fact that the same segmentation fault occurs with a minimal
>> SentenceTransformer example outside of Unsloth Studio is a very useful
>> data point. That suggests the issue is likely in the ROCm/PyTorch stack for
>> gfx1151 rather than in Unsloth Studio itself.
>>
>> Since:
>>
>> - torch.cuda.is_available() returns True
>> - the GPU is detected correctly
>> - the crash occurs with a standalone PyTorch script
>> - the same behavior has been reported for Strix Halo (gfx1151) with
>> ROCm 6.3
>>
>> this does appear consistent with the known ROCm compatibility issue you
>> referenced.
>>
>> Could one of the maintainers clarify:
>>
>> - Is there currently an Unsloth Studio build that bundles *PyTorch +
>> ROCm 7.2 (or newer)* with support for gfx1151?
>> - If not, is there a recommended way to replace the bundled
>> PyTorch/ROCm runtime with a newer version for testing?
>> - Is official support for Strix Halo (gfx1151) planned in a future
>> Unsloth Studio release?
>>
>> The minimal reproducer below may also help confirm the issue:
>>
>> from sentence_transformers import SentenceTransformer
>> model = SentenceTransformer("all-MiniLM-L6-v2")model.to("cuda")
>>
>> If this crashes in the bundled environment as well, it would further
>> indicate that the issue lies upstream in the current ROCm/PyTorch stack
>> rather than in Unsloth Studio itself.
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#7331?email_source=notifications&email_token=BUWIBZ7AACYCKSMTRMNTDE35HCAQ5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJQGMYTMOJQHAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5103169081>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/BUWIBZYBL7EEJYX6LKZVYST5HCAQ5AVCNFSNUABFKJSXA33TNF2G64TZHM3TENJSGA2TGMBUHNEXG43VMU5TIOJUHE4TKMRVGE3KC5QC>
>> .
>> Triage notifications, keep track of coding agent tasks and review pull
>> requests on the go with GitHub Mobile for iOS
>> <https://github.com/notifications/mobile/ios/BUWIBZYB5Q37HGZTECXAYLL5HCAQ5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJQGMYTMOJQHAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
>> and Android
>> <https://github.com/notifications/mobile/android/BUWIBZ7FA7WGJYGGJZEOSGD5HCAQ5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJQGMYTMOJQHAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
>> Download it today!
>> You are receiving this because you authored the thread.Message ID:
>> ***@***.***>
>>
>
For anyone landing here from search: the second half of this landed in #8609.
#8480 stopped the mismatched ROCm wheel from being installed, which is what fixed the crash for the reporter here. #8609 handles the other half, that a mismatched wheel took the whole backend down rather than degrading: the RAG embedder now tests the device in a short-lived child process first, so a driver-level fault kills the probe instead of uvicorn, and the embedder falls back to CPU sentence-transformers with the same vector space, so no knowledge base needs reindexing.
Detection is unaffected, since on this host torch.cuda.is_available() returned True and only the first real allocation died.
Activity
VectorCipher commentedon Jul 24, 2026
Thanks for the detailed reproduction!
Since the segmentation fault can be reproduced with the minimal example below, without importing or using Unsloth:
it seems the crash is occurring outside of Unsloth itself. Based on the reproduction, this looks more likely to be related to the PyTorch ROCm/HIP stack, SentenceTransformers, or the underlying AMD GPU runtime rather than Unsloth Studio.
It may be worth checking whether the same minimal script reproduces across different PyTorch/ROCm versions, or reporting it upstream if it consistently crashes outside of Unsloth.
LuckyPhil631 commentedon Jul 28, 2026
VectorCipher commentedon Jul 28, 2026
Thanks for investigating this and for narrowing it down!
The fact that the same segmentation fault occurs with a minimal
SentenceTransformerexample outside of Unsloth Studio is a very useful data point. That suggests the issue is likely in the ROCm/PyTorch stack forgfx1151rather than in Unsloth Studio itself.Since:
torch.cuda.is_available()returnsTruegfx1151) with ROCm 6.3this does appear consistent with the known ROCm compatibility issue you referenced.
Could one of the maintainers clarify:
gfx1151?gfx1151) planned in a future Unsloth Studio release?The minimal reproducer below may also help confirm the issue:
If this crashes in the bundled environment as well, it would further indicate that the issue lies upstream in the current ROCm/PyTorch stack rather than in Unsloth Studio itself.
LuckyPhil631 commentedon Jul 31, 2026
LuckyPhil631 commentedon Aug 1, 2026
LuckyPhil631 commentedon Aug 1, 2026
Route spoofed Strix Halo GPUs to the AMD per-gfx index (#8480)
danielhanchen commentedon Aug 13, 2026
For anyone landing here from search: the second half of this landed in #8609.
#8480 stopped the mismatched ROCm wheel from being installed, which is what fixed the crash for the reporter here. #8609 handles the other half, that a mismatched wheel took the whole backend down rather than degrading: the RAG embedder now tests the device in a short-lived child process first, so a driver-level fault kills the probe instead of uvicorn, and the embedder falls back to CPU sentence-transformers with the same vector space, so no knowledge base needs reindexing.
Detection is unaffected, since on this host
torch.cuda.is_available()returned True and only the first real allocation died.Reconcile a contradicting HSA spoof before installing per-arch wheels
Studio: install torch from an index that has kernels for the user's A…
Studio: do not import back an HSA override the CLI deliberately cleared
Studio: give a desktop launch the ROCm environment a terminal launch …
Studio: give a desktop launch the ROCm environment a terminal launch …