Model reference · open weights

AFM

LLMs arcee-ai Text gen 1 build Open weights 11k dl/mo

AFM is an open-weight language model from arcee-ai. AFM-4.5B (BF16) weighs 9.2 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • AFM-4.5B is a 4.6 billion parameter instruction-tuned text generation model developed by arcee-ai.
  • It supports a context length of 65,536 tokens and is trained on 8 trillion tokens to handle tasks in English, Spanish, French, German, Italian, Portuguese, Russian, Arabic, Hindi, Korean, and Chinese.
  • The model is released under the Apache-2.0 license.

Summary of the arcee-ai/AFM-4.5B model card, 2026-10-01

What it is

Released byarcee-ai
Released2025-07-29
Parameters4.6B
VRAM9.2 GB for the weights

What it runs on

Memory and cards for AFM-4.5B (BF16)

9.2 GBweights, file size
74 MBcache per 1K tokens
754 MBruntime overhead, at least
65,536 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB2—21K11.6 GB
RTX 4060 Ti 16 GB82all 64K15.4 GB
RTX 3090 24 GB225all 64K23.4 GB
RTX 4090 24 GB225all 64K23.4 GB
RTX 5090 32 GB348all 64K31.0 GB
L40S 48 GB5614all 64K44.0 GB
A100 80 GB11228all 64K78.2 GB
H100 80 GB10526all 64K78.1 GB
RTX PRO 6000 Blackwell 96 GB13132all 64K93.8 GB
DGX Spark (GB10) 128 GB unified15438all 64K107 GB
H200 141 GB20551all 64K138 GB
B200 180 GB26766all 64K176 GB
2× RTX 3060 12 GB
tensor parallel
205all 64K11.6 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
110.6 GB12.4 GB
513.0 GB22.1 GB
814.8 GB29.3 GB
1619.7 GB48.6 GB
3229.3 GB87.3 GB
6448.6 GB165 GB

One card, with vLLM's small-card settings.

From the model card

What arcee-ai says about AFM

Read the model card

AFM-4.5B is a 4.5 billion parameter instruction-tuned model developed by Arcee.ai, designed for enterprise-grade performance across diverse deployment environments from cloud to edge. The base model was trained on a dataset of 8 trillion tokens, comprising 6.5 trillion tokens of general pretraining data followed by 1.5 trillion tokens of midtraining data with enhanced focus on mathematical reasoning and code generation. Following pretraining, the model underwent supervised fine-tuning on high-quality instruction datasets. The instruction-tuned model was further refined through reinforcement learning on verifiable rewards as well as for human preference. We use a modified version of TorchTitan for pretraining, Axolotl for supervised fine-tuning, and a modified version of Verifiers for reinforcement learning.

The development of AFM-4.5B prioritized data quality as a fundamental requirement for achieving robust model performance. We collaborated with DatologyAI, a company specializing in large-scale data curation. DatologyAI's curation pipeline integrates a suite of proprietary algorithms—model-based quality filtering, embedding-based curation, target distribution-matching, source mixing, and synthetic data. Their expertise enabled the creation of a curated dataset tailored to support strong real-world performance.

The model architecture follows a standard transformer decoder-only design based on Vaswani et al., incorporating several key modifications for enhanced performance and efficiency. Notable architectural features include grouped query attention for improved inference efficiency and ReLU^2 activation functions instead of SwiGLU to enable sparsification while maintaining or exceeding performance benchmarks.

The model available in this repo is the instruct model following supervised fine-tuning and reinforcement learning.

View our documentation here for more details: https://docs.arcee.ai/arcee-foundation-models/introduction-to-arcee-foundation-models


Model Details

  • Model Architecture: ArceeForCausalLM
  • Parameters: 4.5B
  • Training Tokens: 8T
  • License: Apache 2.0
  • Recommended settings:
    • temperature: 0.5
    • top_k: 50
    • top_p: 0.95
    • repeat_penalty: 1.1

Benchmarks

*Qwen3 and SmolLM's reasoning approach causes their scores to vary wildly from suite to suite - but these are all scores on our internal harness with the same hyperparameters. Be sure to reference their reported scores. SmolLM just released its bench.

How to use with transformers

You can use the model directly with the transformers library.

We recommend a lower temperature, around 0.5, for optimal performance.

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "arcee-ai/AFM-4.5B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

messages = [
    {"role": "user", "content": "Who are you?"},
]

input_ids = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt"
).to(model.device)

outputs = model.generate(
    input_ids,
    max_new_tokens=256,
    do_sample=True,
    temperature=0.5,
    top_k=50,
    top_p=0.95
)

response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)

How to use with vllm

Ensure you are on version 0.10.1 or newer

pip install vllm>=0.10.1

You can then serve the model natively

vllm serve arcee-ai/AFM-4.5B

How to use with Together API

You can access this model directly via the Together Playground.

Python (Official Together SDK)

from together import Together

client = Together()
response = client.chat.completions.create(
    model="arcee-ai/AFM-4.5B",
    messages=[
        {
            "role": "user",
            "content": "What are some fun things to do in New York?"
        }
    ]
)
print(response.choices[0].message.content)

cURL

curl -X POST "https://api.together.xyz/v1/chat/completions" \
  -H "Authorization: Bearer $TOGETHER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "arcee-ai/AFM-4.5B",
    "messages": [
      {
        "role": "user",
        "content": "What are some fun things to do in New York?"
      }
    ]
  }'

Quantization support

Support for llama.cpp and Intel OpenVINO is available:

https://huggingface.co/arcee-ai/AFM-4.5B-GGUF

https://huggingface.co/arcee-ai/AFM-4.5B-ov

License

AFM-4.5B is released under the Apache-2.0 license.

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms