Skip to content

Conversation

@rolandtannous
Copy link
Collaborator

Fixed crash in UNSLOTH_GRPO_TRAINER when using models like Gemma3 that don't inherit FastLlama's from_pretrained method. Added attribute check before accessing self.llm to prevent AttributeError when sleep mode wake-up is attempted on models without vllm engine attributes.
Resolves: Gemma3-1b GRPO notebook AttributeError - "Gemma3ForCausalLM object has no attribute self.llm"

works in tandem with unsloth PR#174

@rolandtannous rolandtannous force-pushed the fix/gemma3-grpo-self-llm branch from 7b48a01 to 88b2a9c Compare June 21, 2025 01:10
@shimmyshimmer shimmyshimmer merged commit db8185d into unslothai:main Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants