Skip to content

fix(recipes): align Medusa Mooncake buffers with the validated run - #63

Merged
zhouaihui merged 1 commit into
inclusionAI:mainfrom
sysuTobo:fix/medusa-recipe-mooncake-defaults
Nov 24, 2026
Merged

zhouaihui merged 1 commit into
inclusionAI:mainfrom
sysuTobo:fix/medusa-recipe-mooncake-defaults

Conversation

@sysuTobo

@sysuTobo sysuTobo commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The maintained Medusa recipe carried older Mooncake Store/TCP buffer values.
The validated 1T+1D run required the values already present in
configs/examples/medusa_qwen3_8b_4k_tcp.yaml:

  • local_buffer_size 2GB -> 8GB
  • host_buffer_size 2GB -> 1GB
  • async_put_pool_size 8 -> 1
  • enable_hard_pin false -> true

Without these overrides the Target service failed during startup/transfer in
the validated environment. This aligns the recipe with the example and with
the overrides used by the run, so the recipe works as shipped.

Transport only: training data, objective, heads and optimizer are unchanged.

Verification

  • pytest -q tests/cpu/test_release_recipes.py — 53 passed
  • python -m tools.check_docs — pass
  • The edited values equal the CLI overrides used by the validated 1T+1D run;
    no separate GPU run was performed after this config-only edit.

Part of #17.

Updates the mooncake block in configs/recipes/medusa_qwen3_8b.yaml (+4/-3):

  • local_buffer_size: 2GB → 8GB
  • host_buffer_size: 2GB → 1GB
  • async_put_pool_size: 8 → 1
  • enable_hard_pin: added as true

Config-only change. Training data, objective, heads, and optimizer are unchanged per the PR description.

Verification: the author reports pytest -q tests/cpu/test_release_recipes.py (53 passed) and python -m tools.check_docs (pass). No GPU run was performed after this edit. Runtime stability with these values is not verified here; the author reports the Target service failed without these overrides in the validated environment.

The recipe carried older Store/TCP buffer values (local 2GB, host 2GB,
async pool 8, hard pin off). The validated 1T+1D run required local 8GB,
host 1GB, async pool 1 and hard pinning; without those overrides the Target
service failed during startup/transfer.

Match the example config and the validated values so the recipe runs as
shipped. Transport only; the training objective is unchanged.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Medusa Qwen3 8B recipe changes Mooncake buffer sizes and async put pool size. It also enables hard pinning.

Changes: Medusa recipe configuration

Layer / File(s) Summary
Update Mooncake settings
configs/recipes/medusa_qwen3_8b.yaml
local_buffer_size changes from 2GB to 8GB, host_buffer_size from 2GB to 1GB, and async_put_pool_size from 8 to 1. The recipe adds enable_hard_pin: true.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related issues

  • inclusionAI/ASpec#17 — This updates the maintained Medusa recipe, but does not add the heads, loss, or export support described in the issue.

Possibly related PRs

  • inclusionAI/ASpec#51 — This PR changes Mooncake settings in the Medusa recipe introduced by PR #51.
  • inclusionAI/ASpec#41 — The supplied context says this PR uses settings from the Store/TCP example added by PR #41.

Suggested reviewers: zhouaihui

Merge Risk: Low · up to 87ad7

This updates the shipped Medusa recipe's Mooncake transport values to match a previously validated run. The values are small and reversible. No GPU run was performed after the edit, so confirm startup and transfer on the target environment before relying on it.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: aligning the Medusa Mooncake buffer values in the recipe with the validated run. The raw summary and objectives confirm the four config edits in configs/recipes/medusa_qwen…
Description check Passed The description covers the outcome (the four buffer value changes and the startup/transfer failure they prevent), states that training data, objective, heads and optimizer are unchanged, and lists ver…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: aligning the Medusa Mooncake buffer values in the recipe with the validated run. The raw summary and objectives confirm the four config edits in configs/recipes/medusa_qwen3_8b.yaml. The title is specific and follows the fix(scope) convention. It is 66 characters, which is slightly long but acceptable.

Full details: Description check

Explanation

The description covers the outcome (the four buffer value changes and the startup/transfer failure they prevent), states that training data, objective, heads and optimizer are unchanged, and lists verification checks with results. It also notes that no GPU run followed the config-only edit. Two template items are not addressed: the 'Compatibility and provenance' section does not state public config implications, and the 'Unverified scope / known limitations' item is only implied by the note about the missing GPU run. The description also says the values come from the validated 1T+1D run, but the run's logs are not linked. These gaps are minor, so the description is mostly complete.

Resolution

Optional: state the public config implications explicitly (for example, whether existing users of the recipe see different buffer sizes). Optional: list the unverified scope under 'Unverified scope / known limitations', including that no GPU run was done after this edit. Optional: link the validated 1T+1D run for traceability.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fc6f601 and 87ad7b4.

Files selected for processing: 1

  • configs/recipes/medusa_qwen3_8b.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@zhouaihui zhouaihui left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@zhouaihui
zhouaihui merged commit e1da445 into inclusionAI:main Nov 24, 2026
3 checks passed
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