unslothai/unsloth

[Bug] After adding import unsloth to the first line of the script, the GRPOTrainer fails to run properly; however, it works normally again once this import is removed. The Sophia optimizer interface being used was generated by an AI.

Open

#3591 opened on Nov 12, 2025

View on GitHub
 (11 comments) (0 reactions) (0 assignees)Python (64,271 stars) (5,658 forks)batch import
help wanted

Description

sophia_grpo.py Scripts generated by AI may encounter many issues, such as the inability to utilize multiple GPUs using fp16

xl.py token_utils.py

Contributor guide