Skip to content

Run a model

Two ways, depending on the model. Both run offline once the weights are downloaded, and nothing you type leaves your computer.

L-42 ships as ready-to-run files (GGUF and MLX). The small file is 493 MB and needs about 1.6 GB of memory.

Terminal window
ollama run hf.co/cetusian/pocket-atlas-0.8b:Q4_K_M

L-01, L-02, A-01, A-02 and A-03 ship as small adapters on top of an open Qwen base model. A laptop is enough for the 0.8B models; A-02 is 2B and likes a GPU.

  1. Install

    Terminal window
    pip install -U transformers peft accelerate
  2. Load the base model and the adapter

    run.py
    from transformers import AutoModelForCausalLM, AutoTokenizer
    from peft import PeftModel
    base = "Qwen/Qwen3.5-0.8B"
    tok = AutoTokenizer.from_pretrained(base)
    model = AutoModelForCausalLM.from_pretrained(base, torch_dtype="auto", device_map="auto")
    model = PeftModel.from_pretrained(model, "superbird-labs/l-01-document-extractor")
  3. Ask with the right prompt

    messages = [{"role": "system", "content": SYSTEM}, # from the model's page
    {"role": "user", "content": "your input here"}]
    ids = tok.apply_chat_template(messages, add_generation_prompt=True,
    enable_thinking=False, return_tensors="pt").to(model.device)
    out = model.generate(ids, max_new_tokens=512, do_sample=False)
    print(tok.decode(out[0][ids.shape[-1]:], skip_special_tokens=True))

Open small models for every industry, free to run offline. Custom ones for companies.

superbirdlabs.com Custom models Hugging Face hello@superbirdlabs.com