Skip to content

feat(flint): add Automodel and SGLang GRPO support - #4837

Merged
snowmanwwg merged 2 commits into
flint-supportfrom
flint-support-implementation
Oct 21, 2026
Merged

snowmanwwg merged 2 commits into
flint-supportfrom
flint-support-implementation

Conversation

@snowmanwwg

Copy link
Copy Markdown
Contributor

What does this PR do?

Enable Flint GRPO training with Automodel and SGLang, targeting the flint-support integration branch at tested RL revision e65b8b8.

  • Preserve model-declared FP32 parameters during refit and support native gate precision and Automodel checkpoint mappings.
  • Load SGLang plugins before server-argument resolution, expose serving/KV-cache controls, and guard router lifetime.
  • Include dependency patches for Flint refit, sink activation-checkpoint recomputation, and hybrid KV-cache offload.
  • Include four-layer/full-49-layer smoke recipes, eight-node DAPO recipes, checkpoint/autoresume guards, W&B setup, and tensor/optimizer audit tools.

Usage and scope

See integrations/flint/README.md. The original Flint plugin and Automodel model implementation remain private prerequisites; only the integration changes are included here. Operational tools retain deployment-specific paths and require a new configured workspace and unique W&B ID before use.

The 4K recipe uses 5120 total / 4096 response tokens, reward shaping disabled, and overlong filtering enabled; the filtering comparison overrides that flag to false. The original recipe retains 4096 total / 3072 response tokens and shaping.

No weights, credentials, datasets, logs, tensor dumps, or generated reports are included. Upstream workflows are retained. The separate private repository remains unchanged.

Validation

Prior packaging validation of the same implementation:

  • 30 CPU compatibility tests, including Transformers 5.18 tokenizer paths.
  • 36 checkpoint-window/runtime-overlay/fatal-guard tests.
  • 10 step-zero tensor-audit tests.
  • 5 proxy/checkpoint-audit tests.
  • Python parsing, shell syntax, credential-pattern scanning, and Git whitespace checks.

This submission cherry-picks that implementation and adjusts documentation for the public target. Whitespace checks pass; GPU tests were not rerun for publication. Prior GPU evidence includes four-layer and full-49-layer training/refit/checkpoint resume. The original long run stopped at 48 recorded steps / durable checkpoint 45. Neither active comparison run is claimed complete.

Full-logits parity, exhaustive ordinary-parameter finiteness, and optimizer-moment equality remain unverified. Intermittent FlashInfer TRT-LLM failures remain unresolved. The checkpoint-save exception concurrent with quota exhaustion has no established causal linkage.

Prechecks

  • Signed-off commits and contribution guidance followed.
  • Regression tests and known limitations included.
  • Fresh GPU functional rerun / upstream CI.

@snowmanwwg

Copy link
Copy Markdown
Contributor Author

/ok to test 5f787d7

@copy-pr-bot

copy-pr-bot Bot commented Oct 21, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@snowmanwwg snowmanwwg added the CI:L1 Run doctests, unit tests, and functional tests label Oct 21, 2026
@snowmanwwg
snowmanwwg merged commit 71c048b into flint-support Oct 21, 2026
42 of 47 checks passed
@snowmanwwg
snowmanwwg deleted the flint-support-implementation branch October 21, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L1 Run doctests, unit tests, and functional tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant