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
[Bug] The stable-diffusion.cpp build at /usr/bin/sd predates MiniMax-H3 support #8507
I'm trying to use a MiniMax-H3 checkpoint in Unsloth Desktop, but it always returns the error I'm sharing in this image. All I do is select the model, and the error already occurs.
My setup uses an RTX 5090 and 96GB of DDR5 RAM.
The stable-diffusion.cpp build at /usr/bin/sd predates MiniMax-H3 support (its --help does not list the H3 options), so generation would fail after the whole H3 bundle has downloaded. Point SD_CLI_PATH / UNSLOTH_SD_CPP_PATH at a build from master-812-ea7f0c8 or newer, or remove that directory so Studio installs the pinned prebuilt.
changed the title [-][Bug] Please fill in your issue title here.[/-][+][Bug] The stable-diffusion.cpp build at /usr/bin/sd predates MiniMax-H3 support[/+]on Aug 12, 2026
Could you confirm where /usr/bin/sd came from? Is it Ubuntu/Debian’s sd find-and-replace utility, or a stable-diffusion.cpp binary you installed manually?
These read-only commands would distinguish them:
readlink -f "$(command -v sd)"
dpkg -S "$(readlink -f "$(command -v sd)")"2>/dev/null ||echo"not owned by a Debian package"
sd --help 2>&1| head -n 12
Please paste the output. There is no need to remove or modify /usr/bin/sd.
The message you saw was wrong about what /usr/bin/sd is. Debian and Ubuntu ship an unrelated find-and-replace tool under that name (package sd, source rust-sd), and it installs exactly /usr/bin/sd. Studio's stable-diffusion.cpp discovery accepted the first executable called sd on PATH on the filename alone, so on a machine with that package and no managed install it picked up the wrong program. Its --help exits 0, so the runnability check passed, and the MiniMax-H3 gate then reported the only thing it could see: no H3 options, therefore an outdated build.
Confirmed by extracting the real binary from the Ubuntu package and running Studio's discovery against it. On the old code it is returned and produces your error verbatim; on main it is ignored and the managed prebuilt installs instead.
Worth knowing it was not only MiniMax-H3. On such a host, ordinary image generation was pointed at the same wrong program, since discovery is shared. macOS is exposed the same way through brew install sd, and Arch through pacman -S sd.
What changed:
discovery validates an ambiguous PATH sd with a bounded --help identity probe before accepting it, and leaves anything unrelated exactly as it is, so nothing on your system is touched
the H3 gate now distinguishes "this is not stable-diffusion.cpp" from "this is an sd.cpp build without H3", so an explicitly configured binary that is the wrong program says so
the binary is vetted before the H3 bundle downloads rather than after, so a refusal no longer costs the download first
You should not need to do anything: update Studio and the managed build installs on the next load. /usr/bin/sd can stay where it is.
Thanks for the report, and thanks to @Lyxot for the fix.
Activity
[-][Bug] Please fill in your issue title here.[/-][+][Bug] The stable-diffusion.cpp build at /usr/bin/sd predates MiniMax-H3 support[/+]danielhanchen commentedon Aug 12, 2026
Will check and follow up and fix
Lyxot commentedon Aug 12, 2026
Could you confirm where
/usr/bin/sdcame from? Is it Ubuntu/Debian’ssdfind-and-replace utility, or a stable-diffusion.cpp binary you installed manually?These read-only commands would distinguish them:
Please paste the output. There is no need to remove or modify
/usr/bin/sd.0x524c commentedon Aug 12, 2026
Hi, here the output:
sd v1.0.0
Usage: sd [OPTIONS] <REPLACE_WITH> [FILES]...
Arguments:
The regexp or string (if using
-F) to search for<REPLACE_WITH>
What to replace each match with. Unless in string mode, you may use captured values like
$1, $2, etc
0x524c commentedon Aug 12, 2026
I'm using a CachyOS, here more details:
pacman -Q linux-cachyos cachyos-settings cachyos-hellolinux-cachyos 7.1.8-1
cachyos-settings 1:1.4.0-1
cachyos-hello 0.28.1-1
The
/usr/bin/sdis not a symlink.file /usr/bin/sd/usr/bin/sd: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.4.0, BuildID[sha1]=6345888598230447b057ee0259431039affcd84b, stripped
Studio: validate legacy sd binary discovery (#8560)
danielhanchen commentedon Aug 13, 2026
Fixed on main by #8560.
The message you saw was wrong about what
/usr/bin/sdis. Debian and Ubuntu ship an unrelated find-and-replace tool under that name (packagesd, sourcerust-sd), and it installs exactly/usr/bin/sd. Studio's stable-diffusion.cpp discovery accepted the first executable calledsdon PATH on the filename alone, so on a machine with that package and no managed install it picked up the wrong program. Its--helpexits 0, so the runnability check passed, and the MiniMax-H3 gate then reported the only thing it could see: no H3 options, therefore an outdated build.Confirmed by extracting the real binary from the Ubuntu package and running Studio's discovery against it. On the old code it is returned and produces your error verbatim; on main it is ignored and the managed prebuilt installs instead.
Worth knowing it was not only MiniMax-H3. On such a host, ordinary image generation was pointed at the same wrong program, since discovery is shared. macOS is exposed the same way through
brew install sd, and Arch throughpacman -S sd.What changed:
sdwith a bounded--helpidentity probe before accepting it, and leaves anything unrelated exactly as it is, so nothing on your system is touchedYou should not need to do anything: update Studio and the managed build installs on the next load.
/usr/bin/sdcan stay where it is.Thanks for the report, and thanks to @Lyxot for the fix.
0x524c commentedon Aug 13, 2026
Hi @danielhanchen and @Lyxot
Thank you for quickly fixing the problem.
I just accessed the website to download the new version, but I see it's still at0_1_701_beta.In my case, it's an AppImage (I use CachyOS, not Debian).https://github.com/unslothai/unsloth/releases/download/v0.1.701-beta/Unsloth-Desktop-0_1_701_beta-Linux.AppImageToday I managed to download the new version 0_1_800_beta and it's working now.