Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Nightly (#3169)
Daniel Han7e1581b92913
diff --git a/pyproject.toml b/pyproject.tomlindex e563ba6fc51..6f6f225bde2 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -37,7 +37,7 @@ triton = []huggingface = [- "unsloth_zoo>=2025.8.4",+ "unsloth_zoo>=2025.8.5","packaging","tyro","transformers>=4.51.3,!=4.47.0,!=4.52.0,!=4.52.1,!=4.52.2,!=4.52.3,!=4.53.0",@@ -384,7 +384,7 @@ colab-ampere-torch220 = ["flash-attn>=2.6.3",]colab-new = [- "unsloth_zoo>=2025.8.4",+ "unsloth_zoo>=2025.8.5","packaging","tyro","transformers>=4.51.3,!=4.47.0,!=4.52.0,!=4.52.1,!=4.52.2,!=4.52.3,!=4.53.0",diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex ab2694fde14..c84fd118e70 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -12,7 +12,7 @@# See the License for the specific language governing permissions and# limitations under the License.-__version__ = "2025.8.5"+__version__ = "2025.8.6"__all__ = ["SUPPORTS_BFLOAT16",diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex ab7f4bfdded..ae03a685ebb 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -701,8 +701,9 @@ def LlamaModel_fast_forward(# Fix out of bounds tokenizationif hasattr(self, "max_seq_length"):if seq_length > self.max_seq_length:+ shape = input_ids.shape if input_ids is not None else inputs_embeds.shapelogger.warning_once(- f"Unsloth: Input IDs of length {seq_length} > the model's max sequence length of {self.max_seq_length}.\n"\+ f"Unsloth: Input IDs of shape {shape} with length {seq_length} > the model's max sequence length of {self.max_seq_length}.\n"\"We shall truncate it ourselves. It's imperative if you correct this issue first.")if input_ids is not None:diff --git a/unsloth/models/mapper.py b/unsloth/models/mapper.pyindex 829fe295836..e8fc55c2bd5 100644--- a/unsloth/models/mapper.py+++ b/unsloth/models/mapper.py@@ -941,6 +941,16 @@ __INT_TO_FLOAT_MAPPER = \"Qwen/Qwen3-4B-Thinking-2507","unsloth/Qwen3-4B-Thinking-2507-bnb-4bit",),+ "unsloth/gemma-3-270m-it-unsloth-bnb-4bit" : (+ "unsloth/gemma-3-270m-it",+ "google/gemma-3-270m-it",+ "unsloth/gemma-3-270m-it-bnb-4bit",+ ),+ "unsloth/gemma-3-270m-unsloth-bnb-4bit" : (+ "unsloth/gemma-3-270m",+ "google/gemma-3-270m",+ "unsloth/gemma-3-270m-bnb-4bit",+ ),}INT_TO_FLOAT_MAPPER = {}