Skip to content

Fix a small typo blocking pip install - #40

Closed
rowan-walshe wants to merge 1 commit into
unslothai:mainfrom
rowan-walshe:main
Closed

rowan-walshe wants to merge 1 commit into
unslothai:mainfrom
rowan-walshe:main

Conversation

@rowan-walshe

Copy link
Copy Markdown

No description provided.

@danielhanchen

Copy link
Copy Markdown
Member

Oops my apologies - late night change so my bad - I just merged a PR from my brother - sorry again but thanks!

@danielhanchen

Copy link
Copy Markdown
Member

@rowan-walshe Forgot to say if you reinstall it (but I'm assuming you installed it via your own branch) to pass in -no-cache-dir :) Again thanks for the quick note!

@rowan-walshe

Copy link
Copy Markdown
Author

Thanks for the pointer and the quick fix :)

mmathew23 pushed a commit to mmathew23/unsloth that referenced this pull request Jun 8, 2025
* Update saving_utils.py

* Update compiler_replacements.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Compiler replacements

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update __init__.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update patching_utils.py

* Update patching_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update patching_utils.py

* Update patching_utils.py

* Update patching_utils.py

* Update patching_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update compiler.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update compiler.py

* Update compiler.py

* Fix requires grad

* Update peft_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update peft_utils.py

* Update peft_utils.py

* Update peft_utils.py

* Update peft_utils.py

* _get_dtype

* Update utils.py

* better attribution

* Update compiler.py

* Last layer GC

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Saving, llama.cpp

* Update llama_cpp.py

* Update llama_cpp.py

* Add error handling for forward method in patch_gradient_accumulation (unslothai#32)

* Update peft_utils.py

* Update peft_utils.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update __init__.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update llama_cpp.py

* Update tokenizer_utils.py

* Update tokenizer_utils.py

* Update tokenizer_utils.py

* Update saving_utils.py

* Update __init__.py

* Create vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Licensing, bug fixes

* Update patching_utils.py

* Update vllm_utils.py

* Update __init__.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* rotary

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* load lora from tensors

* 0.7.1 lora request

* Update vllm_lora_request.py

* Update vllm_lora_request.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update compiler.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update __init__.py

---------

Co-authored-by: Edd <[email protected]>
mmathew23 pushed a commit to mmathew23/unsloth that referenced this pull request Jun 25, 2025
* Update saving_utils.py

* Update compiler_replacements.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Compiler replacements

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update __init__.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update patching_utils.py

* Update patching_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update patching_utils.py

* Update patching_utils.py

* Update patching_utils.py

* Update patching_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update compiler.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update compiler.py

* Update compiler.py

* Fix requires grad

* Update peft_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update peft_utils.py

* Update peft_utils.py

* Update peft_utils.py

* Update peft_utils.py

* _get_dtype

* Update utils.py

* better attribution

* Update compiler.py

* Last layer GC

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Saving, llama.cpp

* Update llama_cpp.py

* Update llama_cpp.py

* Add error handling for forward method in patch_gradient_accumulation (unslothai#32)

* Update peft_utils.py

* Update peft_utils.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update __init__.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update llama_cpp.py

* Update tokenizer_utils.py

* Update tokenizer_utils.py

* Update tokenizer_utils.py

* Update saving_utils.py

* Update __init__.py

* Create vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Licensing, bug fixes

* Update patching_utils.py

* Update vllm_utils.py

* Update __init__.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* rotary

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* load lora from tensors

* 0.7.1 lora request

* Update vllm_lora_request.py

* Update vllm_lora_request.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update compiler.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update __init__.py

---------

Co-authored-by: Edd <[email protected]>
mmathew23 pushed a commit to mmathew23/unsloth that referenced this pull request Jul 7, 2025
* Update saving_utils.py

* Update compiler_replacements.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Compiler replacements

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update __init__.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update patching_utils.py

* Update patching_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update patching_utils.py

* Update patching_utils.py

* Update patching_utils.py

* Update patching_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update compiler.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update compiler.py

* Update compiler.py

* Fix requires grad

* Update peft_utils.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update compiler.py

* Update peft_utils.py

* Update peft_utils.py

* Update peft_utils.py

* Update peft_utils.py

* _get_dtype

* Update utils.py

* better attribution

* Update compiler.py

* Last layer GC

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Saving, llama.cpp

* Update llama_cpp.py

* Update llama_cpp.py

* Add error handling for forward method in patch_gradient_accumulation (unslothai#32)

* Update peft_utils.py

* Update peft_utils.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update __init__.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update gradient_checkpointing.py

* Update llama_cpp.py

* Update tokenizer_utils.py

* Update tokenizer_utils.py

* Update tokenizer_utils.py

* Update saving_utils.py

* Update __init__.py

* Create vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Licensing, bug fixes

* Update patching_utils.py

* Update vllm_utils.py

* Update __init__.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* rotary

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* load lora from tensors

* 0.7.1 lora request

* Update vllm_lora_request.py

* Update vllm_lora_request.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update compiler.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update vllm_utils.py

* Update __init__.py

---------

Co-authored-by: Edd <[email protected]>
meefs pushed a commit to meefs/unsloth that referenced this pull request Oct 31, 2026
…ch skip (unslothai#16255)

## Summary

unslothai#16127 made the diffusers MOSS-Image path skip transformer block 22 on
the negative pass per checkpoint, as the reference workflows do: never
for MOSS-Image-SFT, and only while sigma-percent is in [0, 0.5] for
MOSS-Image-Base. The GGUF path runs stable-diffusion.cpp, which still
skips block 22 on every step for both checkpoints.

unslothai/stable-diffusion.cpp#40 added sample args that express the
per-checkpoint rule. This sends them from Studio and pins the prebuilt
that reads them.

The pinned release, `master-982-0518b34-uaba3a1c`, is published on
unslothai/stable-diffusion.cpp; the 7 asset names
`test_sd_cpp_vulkan_cpu_torch.py` lists are all in it.

## Change

- `sd_cpp_args.moss_uncond_skip_sample_args`: `moss_uncond_skip=false`
for SFT, `moss_uncond_skip_start=0,moss_uncond_skip_end=0.5` for Base.
Base is detected from the repo id, folder or GGUF filename (separators
folded). `UNSLOTH_MOSS_REFERENCE_SKIP=0` sends nothing, which is the
binary's every-step default.
- `sd_cpp_backend`: MOSS-Image requests carry it, as
`sample_params.extra_sample_args` on the server path and
`--extra-sample-args` on the CLI path. Other families send nothing.
- `install_sd_cpp_prebuilt.DEFAULT_TAG`: `master-982-0518b34-ud331c66`
-> `master-982-0518b34-uaba3a1c`. Same upstream base (master-982); the
new build adds only unslothai#40. The tests that name the pin are updated.

A build without the keys ignores them, so an older install keeps today's
behaviour until it updates.

## Results

`MOSS-Image-Base-Q4_K_M.gguf`, Linux x86_64 CPU, 256x256, 25 steps,
`euler`, the release's own `sd-cli`:

| case | negative passes that skip block 22 |
|---|---|
| new pin, no keys | 25 of 25; PNG byte-identical to the current pin |
| new pin, SFT (`moss_uncond_skip=false`) | 0 of 25 |
| new pin, Base (window `0..0.5`) | 13 of 25 (steps 1-13) |
| current pin given the keys | keys ignored; identical to the same
binary without them |

The server path, driven through this branch's `build_img_gen_request`
and `SdCppServer`, gives the same counts: 25, 0 and 13 of 25.

## Tests

- `test_sd_cpp_moss_uncond_skip.py` (new): Base / SFT detection across
repo ids, folders and GGUF names, the env kill switch, the server
request field, the CLI flag, and that other families send nothing.
- `test_sd_cpp_moss_uncond_skip.py`, `test_sd_cpp_args.py`,
`test_sd_cpp_install_verify.py`, `test_sd_cpp_vulkan_cpu_torch.py`,
`test_diffusion_more_families.py`: 310 passed.

## Not proven

- Only the Linux x86_64 CPU bundle was run. The CUDA, Vulkan, Metal,
Windows and aarch64 bundles were built by the release job but not
rendered.
- The MOSS-Image-SFT GGUF was not rendered on the GGUF path; its 0-of-25
count comes from the Base GGUF given the SFT keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants