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
Fix GRPO eval
Daniel Hanc37380c63b83
diff --git a/pyproject.toml b/pyproject.tomlindex 6e85d76de2d..f02df718183 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -37,7 +37,7 @@ triton = []huggingface = [- "unsloth_zoo>=2025.4.4",+ "unsloth_zoo>=2025.5.1","packaging","tyro","transformers>=4.51.3,!=4.47.0",@@ -381,7 +381,7 @@ colab-ampere-torch220 = ["flash-attn>=2.6.3",]colab-new = [- "unsloth_zoo>=2025.4.4",+ "unsloth_zoo>=2025.5.1","packaging","tyro","transformers>=4.51.3,!=4.47.0",diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 90e0d9eb44f..82a1d02fce1 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.4.8"+__version__ = "2025.5.1"__all__ = ["SUPPORTS_BFLOAT16",diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 65c7334f516..2145571ae1e 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1076,7 +1076,7 @@ def CausalLM_fast_forward(fast_forward_inference):if labels is not None: labels = labels.to(lm_head_device)# Output last hidden states without logits if asked- if self.training and os.environ.get("UNSLOTH_RETURN_HIDDEN_STATES", "0") == "1":+ if os.environ.get("UNSLOTH_RETURN_HIDDEN_STATES", "0") == "1":if num_logits_to_keep != 0:hidden_states = hidden_states[:, -num_logits_to_keep:, :]return CausalLMOutputWithPast(