unslothai/unsloth

[Bug] import unsloth failed and shows UnicodeDecodeError

Open

#2,489 创建于 2025年5月6日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)Python (5,658 fork)batch import
help wanted

仓库指标

Star
 (64,271 star)
PR 合并指标
 (平均合并 3天 15小时) (30 天内合并 525 个 PR)

描述

Hi, I would like to try the latest Mistral finetuning script on my local machine. I am currently using WSL with Ubuntu 24.04.1 LTS and conda virtual environment to run unsloth

I had tried other scripts on unsloth before and they work well. However, this time when I run the command "pip install unsloth vllm==0.8.2", everything messed up and I could not even import unsloth...

When I import unsloth, it shows UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte

I tried to everything like reinstall unsloth, reinstall virtual env and unsloth, ...etc, but nothing works...

Image

Could you help me out with this issue? Thanks a lot!

贡献者指南