This is a randomly initialized tiny model based on tiiuae/falcon-40b for testing and debugging.

Feature Source This repo
Checkpoint tensor elements 41.84B BF16 9.11M BF16
Safetensors weight files 83.67 GB (9 files) 18.23 MB (model.safetensors)
Layers 60 4
Hidden width / FFN width 8,192 / 32,768 128 / 512
Query heads / KV heads / head_dim 128 / 8 (GQA 16:1) / 64 4 / 4 (MHA) / 32
Decoder layout parallel attention, new decoder architecture Same
Vocabulary rows / embedding tying 65,024 / untied (source) 65,024 / tied
Stored precision BF16 Same

Falcon modeling requires head_dim times the number of heads to equal the hidden width, so a TP=4-legal head_dim 32 design fixes hidden width at 128. The tiny checkpoint ties the language-model head to the token embedding (the source checkpoint shipped them untied) to keep the artifact at 18.22MB; the source 16:1 GQA ratio cannot be represented with only four query heads and is reduced to MHA.

SGLang 0.5.10 registers no native implementation for FalconForCausalLM (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 18.2MB

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()
    )
    inputs = tokenizer("The quick brown fox jumps over the lazy dog.", 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/falcon")

Creating this repo

Change log

  • 2026-11-07: Initial version rebuilt from the official tiiuae/falcon-40b source using the native Transformers Falcon implementation.

This repo is generated by GPT-6.1-Sol.

Downloads last month
111
Safetensors
Model size
9.11M 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/falcon

Finetuned
(6)
this model

Collection including tiny-random/falcon