Skip to content

Feature: Add HuggingFaceTB/SmolLM3-3B native TensorRT support #1146

Description

@ruiling-smartbear

Request type

Model onboarding

Proposed model

Add a native TensorRT-Model-Connect family for
HuggingFaceTB/SmolLM3-3B,
pinned to an immutable Hugging Face revision.

SmolLM3 is an Apache-2.0, publicly downloadable 3B decoder-only text model.
Its published configuration declares model_type: "smollm3" and
SmolLM3ForCausalLM, so this is not an exact Qwen or Llama checkpoint alias.

Why a new family

The model is a compact long-context, multilingual reasoning model with GQA and
a documented 3:1 NoPE/RoPE layout. It is not eligible for the current native
Llama path, which deliberately accepts only model_type == "llama",
LlamaForCausalLM, and full rotary embeddings. A model-owned family keeps
the checkpoint mapping, positional encoding, build graph, native runtime, and
validation contract isolated rather than weakening those established guards.

Proposed initial scope

  1. Create owned Python, native-runtime, and E2E roots named smollm3.
  2. Implement the smallest BF16, single-GPU text-generation path; no quantized,
    tensor-parallel, tool-calling, or extended-context support in the first PR.
  3. Add one exact checkpoint/revision E2E manifest with a short, deterministic
    chat prompt and a Hugging Face reference comparison.
  4. Publish support only after a successful target-hardware build and retained
    E2E/parity evidence.

Explicit non-goals

  • No generic decoder abstraction or changes to existing Llama/Qwen ownership.
  • No claim that the initial profile supports the model's 64K/128K context,
    YaRN extrapolation, or every chat-template/tool mode.
  • No relaxation of an oracle, threshold, or test criterion to obtain a pass.

Maintainer input requested

Before implementation, please confirm the preferred initial GPU class,
TensorRT/CUDA cohort, cache length, and reference-validation acceptance
criteria. I will keep the first PR scoped to that agreed profile and split
performance qualification into a follow-up if needed.

Initial reconnaissance

  • No open issue or pull request for SmolLM3 was found before filing.
  • The checkpoint is public and the upstream card documents Transformers
    support from v4.53.0.
  • The local repository's model-onboarding guide requires a new model family to
    carry Python builder, native runtime, and model-owned E2E descriptors, plus
    target-hardware evidence before calling the checkpoint supported.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions