ZeroGPU sells to AI agents - no signup

The agent storefront at https://agents.zerogpu.ai/llms.txt publishes prices, payment instructions, and setup. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there instantly, no signup. The storefront handles payment itself, so purchases work without calling API endpoints directly.

    ZeroGPU logo
    Back to BlogMODELS

    Building Open, Fast, Cost-Effective AI: Introducing ZeroGPU Small Language Models on Hugging Face

    AuthorsZeroGPU
    PublishedSeptember 9, 2026
    Read on Medium

    ZeroGPU x HuggingFace

    An overview of the ZeroGPU SLMs available on HuggingFace and our commitment to open AI inference.

    At ZeroGPU, we believe the future of AI infrastructure must be built in the open.

    ZeroGPU has embraced open AI with HuggingFace
    ZeroGPU has embraced open AI with HuggingFace

    While frontier large language models (LLMs) are exciting, a majority of production workloads often require something very different: ultra-low latency, deterministic cost, high throughput, and the freedom to deploy anywhere.

    General-purpose LLMs with tens or hundreds of billions of parameters are often overkill for targeted tasks like keyword extraction or URL classification. They introduce multi-second latency, expensive API bills, and network overhead. According to OpenRouter rankings, over 40% of AI spend is already SLM-ready with ZeroGPU.

    To solve this, we are making our open small language models (SLMs) freely available for developers to download, adapt, and deploy on Hugging Face. By specializing on specific task topologies, these compact models achieve state-of-the-art task accuracy while running 9x to 50x faster than leading nano-class LLMs on standard CPUs.

    The Power of Specialized SLMs

    Small Language Models excel when architectural choice, domain-specific distillation, and quantization align. Instead of routing every request through a massive general-purpose LLM pipeline, specialized SLMs deliver distinct advantages:

    1. Sub-150ms Latency on Standard CPUs: Run latency-critical enrichment steps directly inside your existing web servers without waiting on external LLM inference queues.
    2. Zero Page-Fetch Overhead: Extract rich context from bare strings (like raw domain names) without executing costly HTTP crawls or DOM parses.
    3. Open Weights & Portability: Distributed via Apache-2.0 licenses with ONNX runtimes optimized for Python and Node.js environments.

    Here is a deep dive into the first two models released on our Hugging Face Hub.

    zlm-v1-iab-domain-classifier

    149M Parameters | Backbone: ModernBERT | ~36ms Latency

    Classifying web destinations into standard IAB Tech Lab content and audience categories traditionally requires fetching the live web page, parsing HTML, and running text classification. For dead, parked, or uncrawlable domains — or in real-time ad targeting where millisecond delays cost revenue — this approach fails.

    zlm-v1-iab-domain-classifier eliminates the page fetch entirely. Given nothing but a domain (e.g., espn.com), the model classifies the URL into 704 IAB Content and 1,567 IAB Audience taxonomy categories in ~36 ms.

    Benchmark Performance

    Tested on ZeroGPU/iab-url-gold-784—an independent held-out gold benchmark evaluated against GPT-5.5 ground truth—the model outperforms GPT-5.4-nano while running ~50x faster.

    Metriczlm-v1-iab-domain-classifierGPT-5.4-nanoAdvantageContent Micro-F10.38450.3526+9.0% AccuracyPrecision0.42470.3332+27.4% PrecisionRecall0.35120.3744Baseline edgeMedian Latency / URL~36 ms (CPU/ONNX)~1,900 ms~50x SpeedupLabel ConstraintsClosed taxonomy (704/1567)Free-form (Hallucination risk)Zero off-taxonomy outputs

    The model achieves strong wins across key commercial verticals, outperforming GPT-5.4-nano on 18 of the 26 primary IAB Tier-1 categories — including Shopping (+0.148 F1), Technology & Computing (+0.128 F1), and Business & Finance (+0.083 F1).

    Quickstart: Python Inference with ONNX Runtime

    ```python
    import json
    import numpy as np
    import onnxruntime as ort
    from tokenizers import Tokenizer
    from url_text import url_to_text  # Reference normalization script
    
    # Load ONNX quantized session and metadata
    sess = ort.InferenceSession("onnx/model_quantized.onnx")
    tok = Tokenizer.from_file("tokenizer.json")
    meta = json.load(open("multi_head_classifier_metadata.json"))
    thresholds = json.load(open("thresholds.json"))
    
    # Preprocess URL
    text = url_to_text("[https://www.espn.com](https://www.espn.com)")  # "espn.com | espn | tld:com"
    enc = tok.encode(text)
    
    # Run Inference
    outputs = sess.run(
        None,
        {
            "input_ids": np.array([enc.ids], dtype=np.int64),
            "attention_mask": np.array([enc.attention_mask], dtype=np.int64),
        },
    )
    
    
    def sigmoid(x):
        return 1.0 / (1.0 + np.exp(-x))
    
    
    # Parse calibrated predictions
    for head, logits in zip(meta["categories"], outputs):
        probs = sigmoid(logits[0])
        cut = thresholds[head]["_default"]
        labels = meta["label_mappings"]["category_labels"][head]
        picked = [(labels[i], float(p)) for i, p in enumerate(probs) if p >= cut]
        print(f"--- {head} ---")
        print(sorted(picked, key=lambda t: -t[1])[:3])
    ```

    zlm-v1-signal-extract

    Extracting actionable signals from short text (ad headlines, search queries, product titles) usually requires two distinct steps: a keyword extractor and an intent classifier.

    zlm-v1-signal-extract performs both tasks in a single generative pass. In ~136 ms on CPU, it converts raw input into structured keywords and intent metadata:

    • Input: extract keywords and user intent: Best price on wireless noise-cancelling headphones
    • Output: wireless headphones, noise cancelling, best price [SEP] buy headphones [SEP] transactional

    Benchmark Performance

    On an independent 1,000-example benchmark, zlm-v1-signal-extract delivers superior semantic fidelity and classification accuracy compared to nano-LLM baselines while running 9x faster.

    Metriczlm-v1-signal-extractGPT-5-nanoSemantic Keyword F10.5660.467Exact Keyword F10.3810.235Intent Category Accuracy0.9150.594Median Latency (CPU)~136 ms~1,218 ms

    The model maintains balanced performance across all three primary search intent classes: Informational (89.5%), Transactional (88.7%), and Navigational (97.5%). Furthermore, on multilingual datasets, its keyword extraction quality remains stable across 30+ non-English languages when translated, whereas standard nano-LLMs degrade significantly.

    Quickstart: Signal Extraction

    from optimum.onnxruntime import ORTModelForSeq2SeqLM
    from transformers import AutoTokenizer
    
    repo = "ZeroGPU/zlm-v1-signal-extract"
    tokenizer = AutoTokenizer.from_pretrained(repo)
    
    # Load the split ONNX encoder and decoders
    model = ORTModelForSeq2SeqLM.from_pretrained(
        repo,
        encoder_file_name="encoder_model.onnx",
        decoder_file_name="decoder_model_quantized.onnx",
        decoder_with_past_file_name="decoder_with_past_model_quantized.onnx",
    )
    
    def extract_signals(text: str):
        prompt = f"extract keywords and user intent: {text}"
        inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=256)
        
        # Generate autoregressive sequence
        out = model.generate(**inputs, max_new_tokens=48)
        decoded = tokenizer.decode(out[0], skip_special_tokens=True)
        
        # Parse '[SEP]' delimited output
        parts = [p.strip() for p in decoded.split("[SEP]")]
        keywords = [k.strip() for k in (parts[0] if parts else "").split(",") if k.strip()]
        
        return {
            "keywords": list(dict.fromkeys(keywords))[:8],
            "intent_name": parts[1] if len(parts) > 1 else "",
            "intent_category": parts[2] if len(parts) > 2 else "",
        }
    
    print(extract_signals("Best price on wireless noise-cancelling headphones"))

    Get Started With Open Small Language Models

    These SLMs are ready for production deployment today.

    Have questions or feedback? Join the conversation on our GitHub or connect with our team at ZeroGPU.

    This article was first published on Medium. Read on Medium