Skip to content

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.

Name Error Bug Fix - import from packaging.version import Version (#1468)

Yonghye Kwoncecbb08c0308
diff --git a/unsloth/save.py b/unsloth/save.py
index ea2d30972e8..11e1e7a3fb8 100644
--- a/unsloth/save.py
+++ b/unsloth/save.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from packaging.version import Version
from bitsandbytes.nn import Linear4bit as Bnb_Linear4bit
from peft.tuners.lora import Linear4bit as Peft_Linear4bit
from peft.tuners.lora import Linear as Peft_Linear