Skip to content

Bringup/ling 3.0 tiny - #2677

Open
willg-nv wants to merge 6 commits into
NVIDIA:mainfrom
willg-nv:bringup/ling-3.0-tiny
Open

willg-nv wants to merge 6 commits into
NVIDIA:mainfrom
willg-nv:bringup/ling-3.0-tiny

Conversation

@willg-nv

@willg-nv willg-nv commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Add native FP32 text continuation for inclusionAI/Ling-3.0-tiny through the bailing_hybrid family.

Background

Related to #2664. The initial scope is one sequence with greedy decoding and a fixed context profile.

Exit Criteria

  • Build/load the pinned checkpoint through the family and native task interfaces.
  • Preserve the checkpoint's hybrid attention, recurrent state, expert routing, and tokenizer behavior.
  • Enforce the committed independent-reference comparisons and pass the applicable repository checks before claiming full readiness.

Implementation

  • Add the family-owned TensorRT builder for hybrid attention and routed experts.
  • Add native tokenization, recurrent/KV state management, and incremental greedy generation.
  • Add ownership tests, C++ runtime/tokenizer helpers, and a pinned-checkpoint E2E recipe with retained reference comparisons.

This adds family-specific bundles and dependencies without changing shared public API/ABI layouts or the shared bundle container format. Family dependencies are declared in requirements.txt.

Change categories

  • Model or runtime behavior
  • Public API
  • ABI
  • Bundle or artifact format
  • Dependencies
  • Documentation only
  • CI or developer tooling

Validation

Commands and Results

The E2E test checks native tokenization against the checkpoint tokenizer and exact greedy token/text agreement with the upstream reference for two prompts. These describe tests added in the diff, not an execution result.

Reproduction after preparing the pinned checkpoint, family dependencies, and native runtime required by the test:

python3 -m pytest families/bailing_hybrid/tests/test_support.py -q
python3 -m pytest families/bailing_hybrid/tests/test_e2e.py --e2e-testcase ling-3.0-tiny -q

These commands were not rerun for this description-only update. No build, inference, accuracy, performance, or full-premerge pass is asserted here; see the PR checks for public execution results.

Hardware, Environment, and Revisions

PR head: 72469794ff52e2c39977335d1e2a2599f9733b15. The committed recipe pins inclusionAI/Ling-3.0-tiny at 9a98e35fe1c9ee255f78dd64771c7ae15a799481. FP32, one sequence, one device; the committed recipe uses a 128-token profile and up to 16 generated tokens. Execution requires a CUDA-capable GPU and TensorRT. A tested GPU/OS/CUDA/TensorRT matrix is not asserted by this description.

Not Run / Remaining Gaps

Sampling, quantization, reduced precision, dynamic KV cache, and distributed execution are outside this implementation. Longer-context and performance qualification are not established by the committed short-prompt recipe.

Contributor Self-Review

  • I have completed a self-review of this change.

Notes For Future Readers

Review state handling and tokenization alongside the checkpoint recipe. The family pins Transformers and its reference-model dependencies; other bailing_hybrid configurations are not implied to be supported.

Public model reference: inclusionAI/Ling-3.0-tiny.

Risk level

  • Low
  • Medium
  • High

This introduces a complete hybrid recurrent/attention decoder, routed experts, and persistent generation state.

Implement family-owned FP32 KDA recurrence, causal convolution history, interleaved MLA position embeddings, and group-limited sparse experts. Add NFC byte-level tokenization and pinned full-prefix reference generation tests.

Signed-off-by: Will Guo <willg@nvidia.com>
Signed-off-by: Will Guo <willg@nvidia.com>
…c runtime contracts

Signed-off-by: Will Guo <willg@nvidia.com>
…ilder policy

Signed-off-by: Will Guo <willg@nvidia.com>
…ative build

Signed-off-by: Will Guo <willg@nvidia.com>
@willg-nv willg-nv self-assigned this Nov 25, 2026
@willg-nv
willg-nv requested a review from yifeif-nv as a code owner November 25, 2026 08:14
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Explain Change →

Note

CodeRabbit ASCII loading animation

Currently processing new changes in this PR. This may take a few minutes, please wait...

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f536b2f and 7246979.

Files selected for processing: 15

  • families/bailing_hybrid/__init__.py
  • families/bailing_hybrid/model.py
  • families/bailing_hybrid/requirements.txt
  • families/bailing_hybrid/runtime/CMakeLists.txt
  • families/bailing_hybrid/runtime/bpe_tokenizer.cpp
  • families/bailing_hybrid/runtime/plugin.cpp
  • families/bailing_hybrid/runtime/tokenizer.h
  • families/bailing_hybrid/support.py
  • families/bailing_hybrid/tests/__init__.py
  • families/bailing_hybrid/tests/cpp/test_runtime.cpp
  • families/bailing_hybrid/tests/cpp/test_tokenizer.cpp
  • families/bailing_hybrid/tests/manifests/ling-3.0-tiny.json
  • families/bailing_hybrid/tests/requirements.txt
  • families/bailing_hybrid/tests/test_e2e.py
  • families/bailing_hybrid/tests/test_support.py

@willg-nv willg-nv linked an issue Nov 25, 2026 that may be closed by this pull request
2 tasks done

This branch has not been deployed

No deployments
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.

Feature: support inclusionAI/Ling-3.0-tiny

1 participant