Apriel is a family of models built for versatility, offering high throughput and efficiency across a wide range of tasks.
Apriel-5B-Base
Apriel-5B-base is a decoder-only transformer trained on 4.5T+ tokens of data. It is the first release in the Apriel model family, designed to support research on foundation models. Apriel-5B-base achieves strong performance across common benchmarks for models under 5B parameters.
Apriel-5B-Instruct
Apriel-5B-Instruct
is built on top of
Apriel-5B-base
using continual pretraining (CPT), supervised finetuning (SFT), and post-training alignment with DPO and RLVR.
Both CPT and SFT stages involved training multiple domain-biased variants with overlapping datasets (e.g., instruction, code, math). These were then merged to form a more general-purpose model before alignment. The final model is aligned for instruction following, reasoning, and safety-aware dialogue.
The y-axis shows average downstream benchmark scores. Throughput (x-axis) was measured using
vLLM
with batch size 8, 256 input tokens, and 32 output tokens.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "ServiceNow-AI/Apriel-5B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
device = "cuda"if torch.cuda.is_available() else"cpu"
model = AutoModelForCausalLM.from_pretrained(
checkpoint,
torch_dtype=torch.bfloat16 if device == "cuda"else torch.float32
).to(device)
messages = [
{"role": "system", "content": "You are a helpful AI assistant that provides accurate and concise information."},
{"role": "user", "content": "Tell me about artificial intelligence"}
]
input_text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(input_text, return_tensors="pt").to(device)
generation_params = {
"max_new_tokens": 512,
"temperature": 0.2,
"top_p": 0.9,
"do_sample": True
}
outputs = model.generate(**inputs, **generation_params)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Chat Template
<|system|>
System message here (optional)
<|end|>
<|user|>
User message here
<|end|>
<|assistant|>
Assistant response here
<|end|>
If no system message is provided, the model inserts a blank system prompt to maintain format structure. The model supports structured interaction patterns, including tool calling and reasoning steps for more advanced workflows.
The Apriel family of models are designed for a variety of general-purpose instruction tasks, including:
Question answering and information retrieval
Content generation and summarization
Code assistance and generation
Logical reasoning and multi-step tasks
Creative writing and ideation
They are
not intended
for use in safety-critical applications without human oversight or in scenarios requiring guaranteed factual accuracy.
Limitations
Factual accuracy:
May produce incorrect, misleading, or outdated content. Outputs should be verified before use in critical contexts.
Bias:
May reflect societal, cultural, or systemic biases present in training data.
Ethics:
Do not use the model to produce harmful, unlawful, or unethical content.
Language:
Strongest performance is in English. Output quality may degrade in underrepresented languages.
Critical use:
Not suitable for medical, legal, financial, or other high-risk applications without safeguards.
Security and Responsible Use
Security Responsibilities:
Deployers and users are strongly encouraged to align their security practices with established frameworks and regulatory guidelines such as the EU AI Act and the NIST AI Risk Management Framework (RMF).
Guidelines for Deployers:
Regularly conduct robustness assessments to identify and mitigate adversarial inputs.
Implement validation and filtering processes to prevent harmful or biased outputs.
Continuously perform data privacy checks to guard against unintended data leaks.
Document and communicate the model's limitations, intended usage, and known security risks to all end-users.
Schedule periodic security reviews and updates to address emerging threats and vulnerabilities.
Guidelines for Users:
Follow established security policies and usage guidelines provided by deployers.
Protect and manage sensitive information when interacting with the model.
Report anomalies, suspicious behavior, or unsafe outputs to deployers or developers.
Maintain human oversight and apply judgment to mitigate potential security or ethical risks during interactions.
Disclaimer:
Users accept responsibility for securely deploying, managing, and using this open-source LLM. The model is provided "as-is," without explicit or implied warranty regarding security or fitness for any specific application or environment.
Pretraining
Model
Architecture:
Transformer decoder with grouped-query attention and YARN rotary embeddings
@misc{Apriel-small-language-models,
author = {Slam labs team},
title = {Apriel - a Family of performant small language models},
howpublished = {https://huggingface.co/ServiceNow-AI/Apriel-5B-Instruct},
publisher = {SLAM - ServiceNow Language Models Lab}
year = {2025}
}
Runs of mrfakename Apriel-5B-Base on huggingface.co
12
Total runs
1
24-hour runs
3
3-day runs
1
7-day runs
0
30-day runs
More Information About Apriel-5B-Base huggingface.co Model
Apriel-5B-Base huggingface.co is an AI model on huggingface.co that provides Apriel-5B-Base's model effect (), which can be used instantly with this mrfakename Apriel-5B-Base model. huggingface.co supports a free trial of the Apriel-5B-Base model, and also provides paid use of the Apriel-5B-Base. Support call Apriel-5B-Base model through api, including Node.js, Python, http.
Apriel-5B-Base huggingface.co is an online trial and call api platform, which integrates Apriel-5B-Base's modeling effects, including api services, and provides a free online trial of Apriel-5B-Base, you can try Apriel-5B-Base online for free by clicking the link below.
mrfakename Apriel-5B-Base online free url in huggingface.co:
Apriel-5B-Base is an open source model from GitHub that offers a free installation service, and any user can find Apriel-5B-Base on GitHub to install. At the same time, huggingface.co provides the effect of Apriel-5B-Base install, users can directly use Apriel-5B-Base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.