Repository navigation
Fix Mistral, Qwen - #1565
Merged
Merged
Fix Mistral, Qwen#1565
Conversation
* Update granite to work with latest post_patch methods * Pass position_embeddings for granite even if transformers<4.47 * Update llama.py --------- Co-authored-by: Daniel Han <[email protected]>
* Update granite.py Grab residual multiplier directly from layer * Update llama.py Version should read >= 4.47.1 as that is the version requiring the changes * Update granite.py * Update llama.py --------- Co-authored-by: Daniel Han <[email protected]>
* support modelscope * change modelscope args * remove useless import * remove useless import * fix * wip * fix * remove useless code * add readme * add some comments * change print to raise error * update comment * Update loader.py --------- Co-authored-by: Daniel Han <[email protected]>
* check for torch.cuda and triton if available on my machine(mac m3) the cuda were not available * Update pyproject.toml * Update __init__.py --------- Co-authored-by: Daniel Han <[email protected]>
Signed-off-by: datta0 <[email protected]>
* fix: flash_attn_detection_error * Update _utils.py --------- Co-authored-by: Daniel Han <[email protected]>
abiswas-realadvice
pushed a commit
to abiswas-realadvice/unsloth
that referenced
this pull request
May 14, 2026
* use exact model name * Update save.py * Update _utils.py * Update _utils.py * Update _utils.py * Update _utils.py * print * Update _utils.py * Update _utils.py * Update llama.py * Update _utils.py * Update vision.py * Update _utils.py * Update _utils.py * Update _utils.py * Update _utils.py * Update _utils.py * Update _utils.py * Update _utils.py * Update _utils.py * Update loader.py * accurate_accumulation * Update loader.py * Update loader.py * Update _utils.py * Update loader.py * Update loader.py * Update loader.py * Update loader.py * Update pyproject.toml * Update __init__.py * Update pyproject.toml * Update __init__.py * Update __init__.py * Fix Triton heuristics triton-lang/triton#5224 * Update __init__.py * Update __init__.py * Update __init__.py * Update __init__.py * Xformers * Update loader.py * Update loader.py * Rewind * Update _utils.py * Update _utils.py * requires grad * Update loader.py * Update _utils.py * Update loader.py * changing model to base_model if peft model is already used * Improve debugging experience (unslothai#1512) * Create CONTRIBUTING.md (unslothai#1472) Creating contributing guidelines * Update CONTRIBUTING.md improved sentence * Improve logging control in `unsloth_compile_transformers` by conditionally redirecting stdout based on UNSLOTH_DISABLE_LOGGER environment variable --------- Co-authored-by: Michael Han <[email protected]> Co-authored-by: Nino Risteski <[email protected]> * Update loader.py * Update llama.py * Update llama.py * Revert "Update llama.py" This reverts commit a8edd09. * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Update llama.py * Auto change is_bfloat16_supported * Update llama.py * Force data-type * Update llama.py * All attention refactor fix (unslothai#1491) * change initilization of n_heads, n_kv_heads, hidden_size in llama.py * do the same for cohere, mistral, gemma2, granite * do the same for flexattention,cohere, mistral, granite * Update llama.py * Update llama.py * Update granite to work with latest post_patch methods (unslothai#1502) * Update granite to work with latest post_patch methods * Pass position_embeddings for granite even if transformers<4.47 * Update llama.py --------- Co-authored-by: Daniel Han <[email protected]> * Minor fixes for granite models (unslothai#1503) * Update granite.py Grab residual multiplier directly from layer * Update llama.py Version should read >= 4.47.1 as that is the version requiring the changes * Update granite.py * Update llama.py --------- Co-authored-by: Daniel Han <[email protected]> * support modelscope models and datasets (unslothai#1481) * support modelscope * change modelscope args * remove useless import * remove useless import * fix * wip * fix * remove useless code * add readme * add some comments * change print to raise error * update comment * Update loader.py --------- Co-authored-by: Daniel Han <[email protected]> * Merge branch 'main' into nightly * Phi 4 * Update llama.py * Torch.Cuda Is Available Condition and Warning (unslothai#1545) * check for torch.cuda and triton if available on my machine(mac m3) the cuda were not available * Update pyproject.toml * Update __init__.py --------- Co-authored-by: Daniel Han <[email protected]> * Update mistral.py * Update mistral.py * Update _utils.py * Update _utils.py * Update _utils.py * Update _utils.py * Update _utils.py * Fix * Bug fixes * Update mapper.py * Add dropout to granite to match HF's implementation (unslothai#1557) Signed-off-by: datta0 <[email protected]> * Update llama.py * Update llama.py * Bug fixes * fix: flash_attn_detection_error (unslothai#1556) * fix: flash_attn_detection_error * Update _utils.py --------- Co-authored-by: Daniel Han <[email protected]> --------- Signed-off-by: datta0 <[email protected]> Co-authored-by: Itsuro Tajima <[email protected]> Co-authored-by: Muhammad Osama <[email protected]> Co-authored-by: Edd <[email protected]> Co-authored-by: Michael Han <[email protected]> Co-authored-by: Nino Risteski <[email protected]> Co-authored-by: Kareem <[email protected]> Co-authored-by: Datta Nimmaturi <[email protected]> Co-authored-by: Z <[email protected]> Co-authored-by: tastelikefeet <[email protected]> Co-authored-by: AminWhat <[email protected]> Co-authored-by: Zhe Zhang <[email protected]>
danielhanchen
added a commit
that referenced
this pull request
Oct 6, 2026
…#12783) * MLX backend tests: answer zoo's _fusion_modules in the inference stub unsloth_zoo #1565 made mlx/generate.py import _fusion_modules from mlx.inference and call tuple(_fusion_modules(model, None)). The stub refuses private names, so the guard added in #12700 failed on Linux (the stub cannot answer _fusion_modules) and every macOS vision test raised ImportError in the dispatch job (#12778). It is a plain function, not a scope, so the stub carries zoo's three-line body in PLAIN_HELPERS, the call-shape replay calls it instead of entering it, and a new test fails if the copy drifts from zoo's body. * MLX stub body check: drop only a leading docstring before comparing Filtering every ast.Expr also hid bare calls, so zoo adding a log line or other call to _fusion_modules would have passed. Only a leading string literal is ignored now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.