arcee-ai / AFM-4.5B-Base

huggingface.co
Total runs: 4.3K
24-hour runs: 64
7-day runs: -144
30-day runs: -10.0K
Model's Last Updated: September 18 2025
text-generation

Introduction of AFM-4.5B-Base

Model Details of AFM-4.5B-Base

Arcee AFM 4.5B

AFM-4.5B-Base

AFM-4.5B-Base 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 base model following merging and context extension.


Powered by Datology
Model Details
  • Model Architecture: ArceeForCausalLM
  • Parameters: 4.5B
  • Training Tokens: 8T
  • License: Arcee Model License (AML)
  • Key Features:
    • Built-in support for function calling and agentic reasoning.
    • Strong multilingual performance (English, Spanish, French, German, Italian, Portuguese, Russian, Arabic, Hindi, Korean, and Mandarin).

Benchmarks

image/png

How to use with transformers

You can use the model directly with the transformers library.

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

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

prompt = "Once upon a time "
input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to(model.device)

# Generate text
outputs = model.generate(
    input_ids,
    max_new_tokens=100,
    do_sample=True,
    temperature=0.7,
    top_p=0.95
)

generated_text = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
print(generated_text)
License

AFM-4.5B is released under the Arcee Model License . If your company makes less than $1.75 million in annual revenue, you’re free to use the model for commercial purposes, as long as you’re not providing the weights to a company above that threshold. If your product or application using AFM-4.5B is sold to a larger company, that’s fine—as long as they don’t receive or run the weights directly.

We want as many developers, researchers, and builders as possible to benefit from AFM-4.5B. At the same time, this license ensures that we can continue to develop and support the model for the community.

Runs of arcee-ai AFM-4.5B-Base on huggingface.co

4.3K
Total runs
64
24-hour runs
8
3-day runs
-144
7-day runs
-10.0K
30-day runs

More Information About AFM-4.5B-Base huggingface.co Model

More AFM-4.5B-Base license Visit here:

https://choosealicense.com/licenses/apache-2.0

AFM-4.5B-Base huggingface.co

AFM-4.5B-Base huggingface.co is an AI model on huggingface.co that provides AFM-4.5B-Base's model effect (), which can be used instantly with this arcee-ai AFM-4.5B-Base model. huggingface.co supports a free trial of the AFM-4.5B-Base model, and also provides paid use of the AFM-4.5B-Base. Support call AFM-4.5B-Base model through api, including Node.js, Python, http.

AFM-4.5B-Base huggingface.co Url

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

arcee-ai AFM-4.5B-Base online free

AFM-4.5B-Base huggingface.co is an online trial and call api platform, which integrates AFM-4.5B-Base's modeling effects, including api services, and provides a free online trial of AFM-4.5B-Base, you can try AFM-4.5B-Base online for free by clicking the link below.

arcee-ai AFM-4.5B-Base online free url in huggingface.co:

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

AFM-4.5B-Base install

AFM-4.5B-Base is an open source model from GitHub that offers a free installation service, and any user can find AFM-4.5B-Base on GitHub to install. At the same time, huggingface.co provides the effect of AFM-4.5B-Base install, users can directly use AFM-4.5B-Base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

AFM-4.5B-Base install url in huggingface.co:

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

Url of AFM-4.5B-Base

AFM-4.5B-Base huggingface.co Url

Provider of AFM-4.5B-Base huggingface.co

arcee-ai
ORGANIZATIONS

Other API from arcee-ai

huggingface.co

Total runs: 19.8K
Run Growth: -3.2K
Growth Rate: -16.29%
Updated:May 29 2026
huggingface.co

Total runs: 11.4K
Run Growth: 244
Growth Rate: 2.15%
Updated:September 18 2025
huggingface.co

Total runs: 571
Run Growth: -86
Growth Rate: -14.78%
Updated:July 22 2024
huggingface.co

Total runs: 210
Run Growth: 156
Growth Rate: 64.46%
Updated:June 03 2025
huggingface.co

Total runs: 190
Run Growth: 98
Growth Rate: 51.58%
Updated:July 19 2024
huggingface.co

Total runs: 181
Run Growth: 135
Growth Rate: 74.59%
Updated:June 11 2025
huggingface.co

Total runs: 170
Run Growth: 6
Growth Rate: 3.51%
Updated:August 01 2024
huggingface.co

Total runs: 151
Run Growth: 91
Growth Rate: 59.48%
Updated:February 27 2025
huggingface.co

Total runs: 125
Run Growth: 86
Growth Rate: 68.25%
Updated:September 10 2024
huggingface.co

Total runs: 118
Run Growth: 68
Growth Rate: 55.28%
Updated:January 16 2026