Llama-3-CBHybrid

Llama-3-CBHybridL-8B

by Cerebras · Current open-weight model; available for download from Hugging Face

An open-weight 8-billion-parameter Cerebras model based on Llama-3.1-8B-Instruct. Its hybrid dense/sparse attention architecture is designed to reduce KV-cache memory use during long-context text generation, making it suitable for document QA, RAG, summarization, conversation, and self-hosted inference.

Text Reasoning Coding
Llama-3-CBHybridL-8B is Cerebras’s larger CBHybrid model, designed for long-context text generation on hardware where key-value cache memory is a constraint. Distributed through Hugging Face in BF16 Safetensors format, it is intended for local or self-hosted deployment rather than a Cerebras-hosted API. Its main technical distinction is a combination of dense and sparse attention: Cerebras reports approximately 1.6–1.7 times lower KV-cache memory use than the dense baseline, while published evaluations show competitive long-context results.
Outputs

What Llama-3-CBHybridL-8B can produce

Text
Inputs

What it can understand

Text
Capabilities

Support features

Fine-tuning
Model profile

Performance characteristics

6/10 Reasoning
7/10 Coding
7/10 Speed
8/10 Cost efficiency
Specifications

Technical details

Family Llama-3-CBHybrid
Type General Purpose
Context window tokens
Max output tokens tokens
Release date 2025-03-24
Status Current open-weight model; available for download from Hugging Face
Knowledge cutoff notes

No authoritative knowledge-cutoff date is published for this exact Cerebras checkpoint. Its base model is Llama-3.1-8B-Instruct, but the base model's cutoff should not be automatically assigned to this fine-tuned derivative.

Model notes

The canonical Hugging Face repository is cerebras/Llama-3-CBHybridL-8B. Cerebras's model card describes the model as Cerebras Llama3.1-CBHybridL-8B and identifies it as the large member of the CBHybrid series. It is built on Llama-3.1-8B-Instruct and has 25 sparse-attention layers out of 32, with seven dense layers retained. Cerebras reports approximately 1.6-1.7x lower KV-cache memory usage than the dense baseline. The sparse layers use an 8,192-token sliding window and 512 attention-sink tokens. The model card documents optional insertion of eight memory tokens after every 256 original input tokens. The repository provides Transformers usage with trust_remote_code=True and BF16 weights. It is licensed under the Llama 3.1 Community License. No exact model-specific knowledge cutoff, maximum context length, maximum output-token limit, hosted API pricing, native tool-calling support, JSON mode, prompt-caching service, or batch API is documented in the authoritative model materials reviewed.

COST

Pricing

Input Not applicable; no official Cerebras-hosted API price published for this checkpoint
Output Not applicable; no official Cerebras-hosted API price published for this checkpoint
Model guide

Llama-3-CBHybridL-8B: Cerebras Open-Weight Model for Memory-Efficient Long Context

Llama-3-CBHybridL-8B is an open-weight Cerebras language model based on Llama-3.1-8B-Instruct. Its hybrid attention architecture keeps dense attention in seven of 32 layers and uses sparse lambda-mask attention in the other 25, reducing KV-cache memory requirements for long-context inference while preserving general instruction-following and text-generation capabilities.

What is Llama-3-CBHybridL-8B?

Llama-3-CBHybridL-8B is an open-weight causal language model released by Cerebras on March 24, 2025. It is built from Meta’s Llama-3.1-8B-Instruct model and fine-tuned for a hybrid attention design that targets long sequences more efficiently than a conventional fully dense transformer.

The model has approximately 8 billion parameters and is provided through the Cerebras Hugging Face repository in BF16 Safetensors format. It can be loaded locally with the Transformers library and Cerebras’s custom model code. Unlike a hosted chat model, this checkpoint does not come with a published Cerebras token price or a provider-operated inference endpoint for this specific model.

Within Cerebras’s CBHybrid series, the “L” model is the larger variant. Its purpose is not to add image, audio, or video features, but to make text generation over long inputs less demanding in terms of KV-cache memory.

How the hybrid attention architecture saves memory

In a standard transformer, each attention layer may retain key and value states for earlier tokens. These states, known as the KV cache, can become a major memory cost as the input grows. Llama-3-CBHybridL-8B reduces that cost by using different attention patterns in different layers.

The model contains 32 attention layers. Seven retain dense attention, while 25 use sparse lambda-mask attention. The sparse layers use an 8,192-token sliding window and 512 global attention-sink tokens, according to Cerebras’s model documentation. In practical terms, the model does not need to keep every prior token equally available in every sparse layer. The dense layers still provide full attention in selected parts of the network, helping preserve information flow while the sparse layers limit the amount of cached history.

Cerebras reports approximately 1.6–1.7 times lower KV-cache memory usage than the dense Llama-3.1-8B-Instruct baseline. At a representative 16K sequence length, the reported KV-cache usage was 1.376 GB for CBHybridL-8B compared with 2.147 GB for the dense baseline. These are provider-reported measurements, so actual memory use can vary with the runtime, batch size, precision, and generation settings.

The model card also documents an optional memory-token technique. Applications can insert eight auxiliary memory tokens after every 256 original input tokens using the custom tokenizer.insert_memory_tokens() helper. Cerebras’s ablation results support this configuration, but memory tokens are an optional implementation technique rather than a separate model capability.

Long-context performance

Cerebras reports results on two long-context evaluations. On its LongBench measurement across English and Chinese tasks, Llama-3-CBHybridL-8B achieved a macro mean of 59.05, compared with 57.037 for the Llama-3.1-8B-Instruct baseline. On the HELMET long-context suite at a 16K sequence length, it achieved a reported macro mean of 58.564.

The results were not uniformly higher on every task. Cerebras reports improvements in areas such as long-document question answering and in-context learning, while some recall, reranking, and summarization results were lower than the baseline. This makes the model’s main advantage a workload-level trade-off: it is intended to reduce memory pressure for long inputs, not to guarantee a universal quality improvement.

No authoritative maximum context length is published for this exact checkpoint in the supplied model materials. The documented 8,192-token sliding window applies to the sparse attention pattern and should not be treated as the model’s overall context limit. The exact maximum usable sequence length depends on the repository implementation and deployment configuration.

Capabilities, modalities, and output

Llama-3-CBHybridL-8B is a text-in, text-out model. It accepts textual prompts and produces text, including ordinary completions, instruction-following responses, conversational replies, summaries, and generated code. It does not natively accept images, audio, or video, and it does not produce image, audio, video, music, speech, or embedding outputs.

The base model, Llama-3.1-8B-Instruct, gives the checkpoint a general instruction-following foundation. The supplied research does not establish a separate model-specific reasoning benchmark, formal tool-calling interface, guaranteed structured-output mode, or provider-native JSON mode. Developers may be able to prompt the model to emit a particular format, but that should not be confused with a documented structured-output guarantee.

There is also no authoritative maximum output-token limit documented for this checkpoint. Output capacity will therefore depend on the selected runtime and the total sequence limits supported by the model implementation.

Deployment, licensing, and pricing

The intended deployment path is local or self-hosted inference. Cerebras’s model card demonstrates use with AutoTokenizer and AutoModelForCausalLM from Transformers, with trust_remote_code=True and BF16 inference recommended. Because the repository uses custom model code, deployment teams should review the code and environment before running it in production.

The model is distributed under the Llama 3.1 Community License. Anyone evaluating commercial deployment, redistribution, or access by end users should review the repository’s license and acceptable-use requirements rather than assuming that open weights imply unrestricted commercial use.

No model-specific hosted API pricing is published for Llama-3-CBHybridL-8B. Its input and output prices are therefore not applicable as a documented Cerebras API product. The economic trade-off is instead mainly determined by the hardware, hosting, storage, and operational costs of running the checkpoint locally or through a third-party inference service. Lower KV-cache memory requirements may help deployments that serve long prompts or multiple concurrent requests, but they do not guarantee a lower total cost in every environment.

Best use cases

The model is a strong candidate when the application needs ordinary language-model capabilities together with long-input memory efficiency. Suitable workloads include:

  • Long-context conversational applications that must retain substantial written history.
  • Retrieval-augmented generation over lengthy retrieved passages.
  • Question answering over large documents or collections of documents.
  • Summarization of long reports, transcripts, or technical material.
  • Local text generation where dense-attention KV-cache usage is a practical hardware constraint.
  • General instruction following and code generation when a self-hosted open-weight model is preferred.

For retrieval-augmented generation, the hybrid attention design can be useful when the prompt contains many retrieved passages and the deployment must control memory consumption. However, the published benchmark variation means teams should test their own document types, retrieval strategy, prompt format, and sequence lengths.

When to choose this model

Choose Llama-3-CBHybridL-8B when you need an open-weight text model that can be deployed locally and your main constraint is the memory cost of long-context inference. It is particularly relevant when reducing KV-cache usage matters more than having a provider-managed API, built-in multimodal support, or formally documented tool and structured-output features.

A conventional dense model may be more appropriate when maximum compatibility with standard Transformers implementations is more important than sparse-attention memory savings, or when your workload is mostly short prompts where the cache reduction has little practical value. A hosted commercial model may be preferable when you need usage-based billing, managed scaling, service-level commitments, native tool calling, or a documented JSON interface. A multimodal model is required for applications involving images, audio, or video.

Compared with a smaller language model, CBHybridL-8B may offer a more capable general-purpose foundation for instruction following and code generation, but its approximately 8 billion parameters and local deployment requirements still create a hardware and operations burden. Compared with a larger dense model, it prioritizes memory efficiency and self-hosting over access to a broader provider platform or necessarily stronger performance on every reasoning and generation task.

Limitations and open questions

The most important limitation is incomplete publication of operational specifications. The supplied authoritative materials do not document an exact maximum context length, maximum output-token limit, knowledge-cutoff date, hosted token price, native tool-calling support, prompt-caching service, or batch API. These values should be treated as unknown rather than inferred from the base model or from the sparse layer’s window size.

The model is also not a general multimodal system. Its documented interface is text generation only. Custom model code and the optional memory-token mechanism may require more integration work than a conventional dense checkpoint. Finally, Cerebras’s benchmark results are useful evidence about the intended trade-off but are provider-reported measurements, not a guarantee for every long-context workload.

Overall, Llama-3-CBHybridL-8B is best understood as a self-hostable Llama-derived model with a specific systems advantage: hybrid dense and sparse attention designed to reduce KV-cache memory use. That distinction is most valuable for long documents, extended conversations, and other workloads where the cost of retaining a large textual history is more important than access to a managed multimodal or tool-oriented platform.


Answers to Frequently Asked Questions

Can Llama-3-CBHybridL-8B process images, audio, or video, and does it have hosted API pricing?
No. Llama-3-CBHybridL-8B is a text-in, text-out model and does not natively process or generate images, audio, or video. No model-specific hosted Cerebras API pricing or provider-operated inference endpoint is documented for this checkpoint; its intended deployment path is local or self-hosted inference.
What are the main use cases for Llama-3-CBHybridL-8B?
It is suited to self-hosted long-context workloads such as document question answering, retrieval-augmented generation, long-document summarization, extended conversations, general instruction following, and code generation. It is especially relevant when reducing KV-cache memory is more important than using a managed API or a multimodal model.
What is Llama-3-CBHybridL-8B?
Llama-3-CBHybridL-8B is an approximately 8-billion-parameter open-weight, text-in/text-out causal language model released by Cerebras on March 24, 2025. It is derived from Meta’s Llama-3.1-8B-Instruct and uses hybrid dense and sparse attention to reduce KV-cache memory usage during long-context inference.
How does Llama-3-CBHybridL-8B reduce memory usage?
The model has 32 attention layers: seven use dense attention and 25 use sparse lambda-mask attention with an 8,192-token sliding window and 512 global attention-sink tokens. Cerebras reports approximately 1.6–1.7 times lower KV-cache memory usage than the dense Llama-3.1-8B-Instruct baseline, although actual usage depends on the runtime, batch size, precision, and generation settings.


Sources 3
AI Provider

About Cerebras