Skip to content

[Bug] The stable-diffusion.cpp build at /usr/bin/sd predates MiniMax-H3 support #8507

Closed

Description

@0x524c

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.

Image

Activity

  1. 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
  2. danielhanchen commented on Aug 12, 2026

    @danielhanchen
    Member

    Will check and follow up and fix

  3. Lyxot commented on Aug 12, 2026

    @Lyxot
    Collaborator

    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.

  4. 0x524c commented on Aug 12, 2026

    @0x524c
    Author

    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

    Hi, here the output:

    readlink -f "$(command -v sd)"
    dpkg -S "$(readlink -f "$(command -v sd)")" 2>/dev/null || echo -ne "not owned by a Debian package\n\n"
    sd --help 2>&1 | head -n 12
    /usr/bin/sd
    not owned by a Debian package
    

    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

  5. 0x524c commented on Aug 12, 2026

    @0x524c
    Author

    I'm using a CachyOS, here more details:

    pacman -Q linux-cachyos cachyos-settings cachyos-hello
    linux-cachyos 7.1.8-1
    cachyos-settings 1:1.4.0-1
    cachyos-hello 0.28.1-1

    The /usr/bin/sd is 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

  6. danielhanchen commented on Aug 13, 2026

    @danielhanchen
    Member

    Fixed on main by #8560.

    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.

  7. 0x524c commented on Aug 13, 2026

    @0x524c
    Author

    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 at 0_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.AppImage

    Today I managed to download the new version 0_1_800_beta and it's working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions