Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,11 @@ info "mflux installed (versions <= $_pkg_cutoff)."
# to swap whenever a 1-bit model is already present under models/. Binary users
# who run setup before downloading a model should export BONSAI_VARIANT=binary.
_variant="${BONSAI_VARIANT:-ternary}"
for _bin_model in "$SCRIPT_DIR"/models/bonsai-image-4B-binary-*; do
[ -d "$_bin_model" ] && _variant="binary" && break
done
if [ -z "${BONSAI_VARIANT:-}" ]; then
for _bin_model in "$SCRIPT_DIR"/models/bonsai-image-4B-binary-*; do
Comment on lines 354 to +358
[ -d "$_bin_model" ] && _variant="binary" && break
done
fi

# bf16 GPU-vs-CPU matmul check: exit 0 if the GPU kernel is correct (reldiff
# < 0.1), 1 if it's miscompiled (the M5 NAX bug gives reldiff ~1.1).
Expand Down