Skip to content

Conversation

@pcmoritz
Copy link
Collaborator

Follow up to #919 to fix the CI

@pcmoritz pcmoritz added the tx label Jan 23, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request fixes the standalone training script by updating how logits are computed in the loss_fn. The change replaces direct access to output.logits with a call to model.compute_logits(output.last_hidden_state). This aligns with recent model API changes where the model's __call__ method returns a CausalLMOutput object that no longer contains a logits attribute. The fix is correct and necessary for the training script to function properly and resolve the CI failure.

@pcmoritz pcmoritz merged commit 3a929c5 into NovaSky-AI:main Jan 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant