Open LLMs/Zyphra

Open-Weight LLM · Private & Custom AI

Zamba2-1.2B-instruct

Lightweight hybrid SSM-transformer for private deployment in ops workflows—instruction-tuned, low-latency inference, minimal memory footprint.

Zamba2-1.2B-instruct is a 1.2B-parameter hybrid model combining Mamba2 state-space layers with shared transformer blocks, fine-tuned for instruction-following and multi-turn chat. It outperforms models 2–3× larger (e.g., Gemma2-2B) while requiring significantly less memory and delivering faster inference. For ops teams, it's a pragmatic choice for running custom conversational agents, document automation, and internal knowledge systems entirely in your own environment.

1.2B
Parameters
apache-2.0
License (OSI/permissive)
Unknown
Context
407.9k
Downloads

Model facts

DeveloperZyphra
Parameters1.2B
Context windowUnknown
Licenseapache-2.0 — OSI/permissive
Tasktext-generation
GatedNo
Downloads407.9k
Likes30
Updated2025-02-07
SourceZyphra/Zamba2-1.2B-instruct

Private deployment

Run Zamba2-1.2B-instruct in your own environment

Self-hosting requires transformers from source, mamba-ssm (v2.1.0+), and causal-conv1d installed; CPU inference possible but latency-prohibitive—GPU (CUDA/bfloat16) recommended. Running it privately means your company retains full data control: chat logs, customer interactions, and proprietary documents never leave your infrastructure. No external API calls, no licensing per inference, no vendor lock-in.

Operational AI use cases

01

Internal Customer Support Copilot

Deploy as a private tier-1 responder for Slack/Teams: ingest company docs and FAQs into a RAG system, route routine tickets automatically, escalate edge cases to humans. Runs on a single GPU; response latency ~150–200ms (per model card data), suitable for real-time support chat without external APIs.

02

HR & Finance Document Processor

Automate intake and summarization of employee requests, benefits forms, and expense reports. Extract structured data, validate compliance rules, flag anomalies. Low parameter count means it fits in airgapped or restricted-network environments; processes sensitive HR/financial data without touching third-party servers.

03

Operational Knowledge Agent

Build an internal chatbot indexing runbooks, SOPs, incident playbooks, and system diagrams. Employee queries answered in real-time without Slack/Teams integration overhead. Instruction-tuning means it follows complex multi-step workflows; hybrid architecture handles long context windows efficiently (exact length unknown—requires testing).

Custom AI

As a base for custom AI

Strong foundation for purpose-built applications: fine-tune on your own domain data (financial ops, legal docs, technical support) using standard HuggingFace DPO/SFT pipelines. At 1.2B parameters, it's tractable for LoRA adaptation on modest hardware; Zyphra's LoRA projection design means you can specialize layers without blowing out memory. Build domain-specific chatbots, classification pipelines, or agent orchestration frameworks without licensing overhead or API dependencies.

In the operating system

Where it fits

In an AI operating system: sits in the **inference & agent layer**, serving as the reasoning backbone for workflows. Pairs with retrieval (RAG) and tool-calling layers to automate document processing, decision support, and multi-step operational tasks. Lightweight enough to run alongside orchestration platforms (e.g., n8n, Zapier) or custom agentic frameworks on a single box.

Data control & security

Private deployment architecture means all inference, embeddings, and chat history stay within your network boundary—no data transits to external LLM providers or Zyphra's servers. This eliminates compliance friction for regulated industries (healthcare, finance) and sensitive ops (HR, legal, procurement). Security posture depends on your infrastructure (firewall, encryption at rest/transit, access controls), not the model itself. Model card does not detail fine-tuning data provenance in detail; audit training datasets (Ultrachat, Orca DPO, OpenHermes) for IP/confidentiality concerns if fine-tuning on proprietary data.

Hardware footprint

**Estimate** (unverified): bfloat16 inference ~3–4 GB VRAM; int8 quantization ~2 GB; CPU-only feasible but impractical (100–300ms+ per token). Hybrid SSM architecture claimed to use less memory than comparable transformers; exact training/inference memory curves not disclosed.

Integration

Native transformers + HuggingFace Inference Server (or Ollama, vLLM) allows REST/gRPC endpoints for Python/Node backends. Chat template built in (via tokenizer). Requires source-install of mamba-ssm due to kernel compatibility—not a plug-and-play Docker image, but documented. Inference optimizations (Mamba2 kernel benefits) contingent on PyTorch + CUDA alignment; test integration path before production. No LangChain/LlamaIndex native example provided in card, but standard integrations should work (treated as a generic causal LM).

When it's not the right fit

  • Context length requirement unknown—card does not specify max_tokens or rope_scaling. If your workflows need >8K token context, validate empirically before adopting.
  • Specialized reasoning at scale (complex math, code generation, multi-hop reasoning) likely limited by 1.2B parameter budget; models 7B+ (Llama 2, Mistral) may be safer for high-stakes automation.
  • Non-English or multilingual ops workflows unsupported (no indication of multilingual training); focus appears to be English instruction-following.
  • Unfamiliar hybrid SSM-transformer architecture means fewer third-party optimizations, quantization libraries, and debugging resources compared to pure-transformer models; adds friction for teams new to Mamba.

Alternatives to consider

Gemma2-2B-Instruct (Google)

Comparable instruction-tuned transformer, slightly larger (2.7B), pure attention-based (no SSM). Broader ecosystem support (LiteLLM, vLLM, Ollama). Outperformed by Zamba2-1.2B despite 2× size.

SmolLM-1.7B-Instruct (Hugging Face)

Lightweight pure transformer, well-documented, native transformers integration. Less performant on MT-Bench (43.37 vs. 59.53) and inference latency characteristics not published. More familiar codebase.

Mistral-7B-Instruct (Mistral AI)

7B parameters, much stronger reasoning for complex ops tasks (code generation, structured extraction). Requires more GPU VRAM (~16 GB bfloat16); standard transformer architecture with broader quantization/optimization tooling. Overkill for simple chat/FAQ automation, ideal for knowledge-heavy workflows.

FAQ

Can we run Zamba2-1.2B-instruct in an airgapped network?

Yes. Once model weights and dependencies (transformers, mamba-ssm) are cached/predownloaded, inference runs entirely offline. No model serving requires internet access. Suitable for FedRAMP/HIPAA environments if your infrastructure meets those standards independently.

Is commercial use permitted?

Yes. Apache 2.0 license permits commercial use, modification, and distribution provided you include the license and copyright notice. No fees, royalties, or per-inference charges. Zyphra retains no claims on derivative models or outputs.

Can we fine-tune Zamba2-1.2B on our proprietary operational data?

Yes. Standard SFT/DPO fine-tuning with HuggingFace transformers is documented. Expect 4–16 GPU hours on an A100 for small-scale domain adaptation. Zyphra's LoRA projections in shared attention blocks reduce overhead. Fine-tuned weights remain fully yours.

What's the inference latency for real-time ops (e.g., support ticketing)?

Model card shows Time to First Token ~50–150ms and output generation ~100–300 tokens/sec on GPU (charts provided but specific hardware not named). CPU inference significantly slower (minutes). Exact latency depends on your hardware and batch size; prototype before committing to SLA.

Run Custom Ops AI in Your Environment

Zamba2-1.2B is built for private deployment. With LLM.co, we help middle-market companies wire open-weight models into their ops stack—no vendor lock-in, full data control. Start building a custom AI system that stays in your network.