[Model] Add Inkling model support [1/N] (#48799)

Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Co-authored-by: Bugen Zhao <i@bugenzhao.com>
Co-authored-by: Giancarlo Delfin <32987265+TheEpicDolphin@users.noreply.github.com>
Co-authored-by: Isotr0py <Isotr0py@outlook.com>
Co-authored-by: Isotr0py <mozf@inferact.ai>
Co-authored-by: Jee Jee Li <jeejeelee@inferact.ai>
Co-authored-by: Roger Wang <hey@rogerw.io>
Co-authored-by: Yifan Qiao <yifanqiao@inferact.ai>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Woosuk Kwon
2026-07-15 23:40:07 -07:00
committed by GitHub
co-authored by Bugen Zhao Giancarlo Delfin Isotr0py Isotr0py Jee Jee Li Roger Wang Yifan Qiao Claude Fable 5 OpenAI Codex
parent 8bfd683901
commit 6570c9800c
95 changed files with 12137 additions and 62 deletions
+11 -2
View File
@@ -190,8 +190,8 @@ def test_arbitrary_N_splitk(N):
@pytest.mark.parametrize(
"N,K",
[(256, 7168), (256, 14400), (8, 4096), (384, 7168)],
ids=["DSV3", "DSV4-Flash", "Mixtral", "DSV4-Pro"],
[(256, 7168), (256, 14400), (8, 4096), (384, 7168), (264, 6144)],
ids=["DSV3", "DSV4-Flash", "Mixtral", "DSV4-Pro", "Inkling"],
)
def test_single_token(N, K):
torch.manual_seed(42)
@@ -202,6 +202,15 @@ def test_single_token(N, K):
_assert_close(out, _ref(a, b), context=f"M=1 {N}x{K}")
def test_inkling_max_tokens():
torch.manual_seed(42)
a = torch.randn(64, 6144, dtype=torch.bfloat16, device="cuda")
b = torch.randn(264, 6144, dtype=torch.bfloat16, device="cuda")
out = _gemm(a, b)
assert out.shape == (64, 264)
_assert_close(out, _ref(a, b), context="Inkling M=64")
# =================================================================
# Numerical robustness
# =================================================================