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.

Closed

#3,591 opened on Nov 12, 2025

 (11 comments) (0 reactions) (0 assignees)Python (5,658 forks)batch import
help wanted

Repository metrics

Stars
 (64,271 stars)
PR merge metrics
 (Avg merge 3d 15h) (525 merged PRs in 30d)

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