python3Packages.unsloth-zoo: 2025.8.1 -> 2025.8.8

Changed files
+7 -7
pkgs
development
python-modules
+3 -2
pkgs/development/python-modules/unsloth-zoo/default.nix
···
buildPythonPackage rec {
pname = "unsloth-zoo";
-
version = "2025.8.1";
+
version = "2025.8.8";
pyproject = true;
# no tags on GitHub
src = fetchPypi {
pname = "unsloth_zoo";
inherit version;
-
hash = "sha256-AkAfd+dJb8A9cUYK/VH30Q5xN2BW/x4zyndnIyN9y14=";
+
hash = "sha256-Njezsl9+oxAyiRF87AXQJbLjNz/lco0j8JG8RnTiZAE=";
};
# pyproject.toml requires an obsolete version of protobuf,
# but it is not used.
# Upstream issue: https://github.com/unslothai/unsloth-zoo/pull/68
pythonRelaxDeps = [
+
"datasets"
"protobuf"
"transformers"
"torch"
+4 -5
pkgs/development/python-modules/unsloth-zoo/dont-require-unsloth.patch
···
diff --git a/unsloth_zoo/__init__.py b/unsloth_zoo/__init__.py
-
index a629854..06014b1 100644
+
index 2332907..2eed5e9 100644
--- a/unsloth_zoo/__init__.py
+++ b/unsloth_zoo/__init__.py
-
@@ -17,8 +17,6 @@
-
__version__ = "2025.5.11"
+
@@ -64,8 +64,6 @@ pass
+
from importlib.util import find_spec
-if find_spec("unsloth") is None:
···
pass
del find_spec
-
@@ -28,13 +26,14 @@ def get_device_type():
+
@@ -75,12 +73,13 @@ def get_device_type():
return "cuda"
elif hasattr(torch, "xpu") and torch.xpu.is_available():
return "xpu"
···
pass
DEVICE_TYPE : str = get_device_type()
-
import os
-if not ("UNSLOTH_IS_PRESENT" in os.environ):
- raise ImportError("Please install Unsloth via `pip install unsloth`!")
pass