Model reference · open weights

Llama-xLAM-2-fc-r

LLMs Salesforce Text gen 2 builds Non-commercial 19k dl/mo

Llama-xLAM-2-fc-r is an open-weight language model from Salesforce. Llama-xLAM-2-8b-fc-r-gguf (GGUF) weighs 4.9 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • Llama-xLAM-2-fc-r is an 8.0B parameter text-generation model developed by Salesforce for multi-turn conversation and function-calling tasks.
  • It supports a context length of 131,072 tokens and operates in English.
  • The model is released under the cc-by-nc-4.0 license for research purposes only.

Summary of the Salesforce/Llama-xLAM-2-8b-fc-r model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released bySalesforce
Released2025-03-27
Parameters8.0B
VRAM4.9 GB for the weights

What it runs on

Memory and cards for Llama-xLAM-2-8b-fc-r-gguf (GGUF)

4.9 GBweights, file size
651 MBruntime overhead, at least
131,072 tokenscontext max

How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.

CardWeights alone
RTX 3060 12 GBfits
RTX 4060 Ti 16 GBfits
RTX 3090 24 GBfits
RTX 4090 24 GBfits
RTX 5090 32 GBfits
L40S 48 GBfits
A100 80 GBfits
H100 80 GBfits
RTX PRO 6000 Blackwell 96 GBfits
DGX Spark (GB10) 128 GB unifiedfits
H200 141 GBfits
B200 180 GBfits

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
Llama-xLAM-2-8b-fc-r ↗ 8.0BBF16 16.1 GB2× RTX 3060 12 GB
Llama-xLAM-2-8b-fc-r-gguf (above) ↗
12 builds: Q2_K 3.2 GB … F16 16.1 GB
—GGUF 4.9 GBRTX 3060 12 GB

From the model card

What Salesforce says about Llama-xLAM-2-fc-r

Read the model card

Large Action Models (LAMs) are advanced language models designed to enhance decision-making by translating user intentions into executable actions. As the brains of AI agents, LAMs autonomously plan and execute tasks to achieve specific goals, making them invaluable for automating workflows across diverse domains. This model release is for research purposes only.

The new xLAM-2 series, built on our most advanced data synthesis, processing, and training pipelines, marks a significant leap in multi-turn conversation and tool usage. Trained using our novel APIGen-MT framework, which generates high-quality training data through simulated agent-human interactions. Our models achieve state-of-the-art performance on BFCL and τ-bench benchmarks, outperforming frontier models like GPT-4o and Claude 3.5. Notably, even our smaller models demonstrate superior capabilities in multi-turn scenarios while maintaining exceptional consistency across trials.

We've also refined the chat template and vLLM integration, making it easier to build advanced AI agents. Compared to previous xLAM models, xLAM-2 offers superior performance and seamless deployment across applications.

Table of Contents


Model Series

xLAM series are significant better at many things including general tasks and function calling. For the same number of parameters, the model have been fine-tuned across a wide range of agent tasks and scenarios, all while preserving the capabilities of the original model.

Model# Total ParamsContext LengthCategoryDownload ModelDownload GGUF files
Llama-xLAM-2-70b-fc-r70B128kMulti-turn Conversation, Function-calling🤗 LinkNA
Llama-xLAM-2-8b-fc-r8B128kMulti-turn Conversation, Function-calling🤗 Link🤗 Link
xLAM-2-32b-fc-r32B32k (max 128k)*Multi-turn Conversation, Function-calling🤗 LinkNA
xLAM-2-3b-fc-r3B32k (max 128k)*Multi-turn Conversation, Function-calling🤗 Link🤗 Link
xLAM-2-1b-fc-r1B32k (max 128k)*Multi-turn Conversation, Function-calling🤗 Link🤗 Link

*Note: The default context length for Qwen-2.5-based models is 32k, but you can use techniques like YaRN (Yet Another Recursive Network) to achieve maximum 128k context length. Please refer to here for more details.

You can also explore our previous xLAM series here.

The -fc suffix indicates that the models are fine-tuned for function calling tasks, while the -r suffix signifies a research release.

✅ All models are fully compatible with vLLM and Transformers-based inference frameworks.

Usage

Framework versions

  • Transformers 4.46.1 (or later)
  • PyTorch 2.5.1+cu124 (or later)
  • Datasets 3.1.0 (or later)
  • Tokenizers 0.20.3 (or later)

Basic Usage with Huggingface Chat Template

The new xLAM models are designed to work seamlessly with the Hugging Face Transformers library and utilize natural chat templates for an easy and intuitive conversational experience. Below are examples of how to use these models.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("Salesforce/Llama-xLAM-2-3b-fc-r")
model = AutoModelForCausalLM.from_pretrained("Salesforce/Llama-xLAM-2-3b-fc-r", torch_dtype=torch.bfloat16, device_map="auto")

# Example conversation with a tool call
messages = [
    {"role": "user", "content": "Hi, how are you?"},
    {"role": "assistant", "content": "Thanks. I am doing well. How can I help you?"},
    {"role": "user", "content": "What's the weather like in London?"},
]

tools = [
    {
        "name": "get_weather",
        "description": "Get the current weather for a location",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"},
                "unit": {"type": "string", "enum": ["celsius", "fahrenheit"], "description": "The unit of temperature to return"}
            },
            "required": ["location"]
        }
    }
]

print("====== prompt after applying chat template ======")
print(tokenizer.apply_chat_template(messages, tools=tools, add_generation_prompt=True, tokenize=False))

inputs = tokenizer.apply_chat_template(messages, tools=tools, add_generation_prompt=True, return_dict=True, return_tensors="pt")
input_ids_len = in

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