This is a randomly initialized tiny model based on ai21labs/AI21-Jamba-1.5-Large for testing and debugging.

Feature Source This repo
Checkpoint tensor elements 398.56B BF16 12.31M BF16
Safetensors weight files 797.11 GB (166 files) 24.69 MB (model.safetensors)
Layers / layer cycle 72 / 8-layer cycle 16 / two complete cycles
Cycle composition 4 MoE + 1 attention + 3 SSM Same
Residual width / expert FFN width 8,192 / 24,576 64 / 128
Q heads / KV heads / head_dim 64 / 8 / 128 4 / 4 / 32
Experts / top-k 16 / 2 Same
Mamba state / expand / dt rank 16 / 2 / 512 16 / 2 / 16
Vocabulary rows / embedding tying 65,536 / untied Same
Stored precision BF16 Same

The SSM sublayers run through the automatic kernel selection: the optimized mamba_ssm / causal-conv1d kernels when installed, otherwise the built-in PyTorch scan implementation.

SGLang 0.5.10 registers no native implementation for JambaForCausalLM (no EntryClass in sglang/srt/models), so only the generic TransformersForCausalLM fallback exists, which does not shard the model across tensor-parallel ranks. Serving evidence for this repository is the Transformers example.

File path Size
model.safetensors 24.7MB

Example usage

Transformers (โœ… verified)

def run_transformers(model_id: str):
    import torch
    from transformers import AutoModelForCausalLM, AutoTokenizer

    model_id = str(model_id)
    tokenizer = AutoTokenizer.from_pretrained(model_id)
    model = (
        AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, attn_implementation="sdpa").eval().cuda()
    )
    prompt = tokenizer.apply_chat_template(
        [{"role": "user", "content": "Tell me a joke."}],
        tokenize=False,
        add_generation_prompt=True,
    )
    inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
    with torch.no_grad():
        assert torch.isfinite(model(**inputs).logits).all()
        output = model.generate(**inputs, do_sample=False, max_new_tokens=8)
    print(tokenizer.decode(output[0], skip_special_tokens=True))


if __name__ == "__main__":
    run_transformers(model_id="tiny-random/jamba")

Creating this repo

Change log

  • 2026-11-07: Initial version rebuilt from the official ai21labs/AI21-Jamba-1.5-Large source with two complete 8-layer attention/SSM/MoE cycles.

This repo is generated by GPT-6.1-Sol.

Downloads last month
-
Safetensors
Model size
12.3M params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for tiny-random/jamba

Finetuned
(3)
this model