Skip to content

Fix DS v3.2 decoding issue#3633

Merged
copybara-service[bot] merged 1 commit intomainfrom
indexer_fix
Apr 10, 2026
Merged

Fix DS v3.2 decoding issue#3633
copybara-service[bot] merged 1 commit intomainfrom
indexer_fix

Conversation

@RissyRan
Copy link
Copy Markdown
Collaborator

@RissyRan RissyRan commented Apr 10, 2026

Description

Fix DeepSeek V3.2 model decoding issue, see more details in b/500088962.

  • We should enable the Dense warm up only when indexer_loss_scaling_factor > 0 like mentioned here.
  • We should use model_mode instead of self.model_mode. Updated other branches as well.

Tests

  • Before the change: random outputs
  • After the change: reasonable decoding outputs

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Collaborator

@shuningjin shuningjin left a comment

Choose a reason for hiding this comment

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

Thanks for the investigation and fix! Could you also add a comment on the model mode for future reference?

elif (cfg.use_indexer and not cfg.indexer_sparse_training) and self.model_mode == MODEL_MODE_TRAIN:

@RissyRan
Copy link
Copy Markdown
Collaborator Author

Thanks for the investigation and fix! Could you also add a comment on the model mode for future reference?

elif (cfg.use_indexer and not cfg.indexer_sparse_training) and self.model_mode == MODEL_MODE_TRAIN:

Added.

Copy link
Copy Markdown
Collaborator

@Rohan-Bierneni Rohan-Bierneni left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix.

@RissyRan RissyRan mentioned this pull request Apr 10, 2026
4 tasks
@copybara-service copybara-service Bot merged commit 7e5ef3e into main Apr 10, 2026
35 of 36 checks passed
@copybara-service copybara-service Bot deleted the indexer_fix branch April 10, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants