Model reference · open weights

xLAM-fc-r

LLMs Salesforce Text gen 1 build Non-commercial 3k dl/mo

xLAM-fc-r is an open-weight language model from Salesforce. xLAM-1b-fc-r (BF16) weighs 2.7 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • xLAM-fc-r is a 1.3B parameter text-generation model developed by Salesforce, specifically optimized for function-calling tasks.
  • It is designed to translate user intentions into executable API calls and is intended for deployment on personal devices.
  • The model supports a context length of 16,384 tokens, operates in English, and is distributed under the cc-by-nc-4.0 license.

Summary of the Salesforce/xLAM-1b-fc-r model card, 2026-10-01

What it is

Released bySalesforce
Released2024-07-17
Parameters1.3B
VRAM2.7 GB for the weights

What it runs on

Memory and cards for xLAM-1b-fc-r (BF16)

2.7 GBweights, file size
197 MBcache per 1K tokens
541 MBruntime overhead, at least
16,384 tokenscontext max
CardRequests at onceContext maxMemory
8K each
RTX 3060 12 GB5all 16K11.6 GB
RTX 4060 Ti 16 GB7all 16K15.4 GB
RTX 3090 24 GB12all 16K23.4 GB
RTX 4090 24 GB12all 16K23.4 GB
RTX 5090 32 GB17all 16K31.0 GB
L40S 48 GB25all 16K44.0 GB
A100 80 GB46all 16K78.2 GB
H100 80 GB44all 16K78.1 GB
RTX PRO 6000 Blackwell 96 GB54all 16K93.8 GB
DGX Spark (GB10) 128 GB unified62all 16K107 GB
H200 141 GB81all 16K138 GB
B200 180 GB105all 16K176 GB
2× RTX 3060 12 GB
tensor parallel
12all 16K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
16all 16K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each
14.8 GB
511.3 GB
816.1 GB
1629.0 GB
3254.8 GB
64106 GB

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

From the model card

What Salesforce says about xLAM-fc-r

Read the model card

Welcome to the xLAM model family! Large Action Models (LAMs) are advanced large language models designed to enhance decision-making and translate user intentions into executable actions that interact with the world. LAMs autonomously plan and execute tasks to achieve specific goals, serving as the brains of AI agents. They have the potential to automate workflow processes across various domains, making them invaluable for a wide range of applications.

Table of Contents

Model Series

We provide a series of xLAMs in different sizes to cater to various applications, including those optimized for function-calling and general agent applications:

Model# Total ParamsContext LengthRelease DateCategoryDownload ModelDownload GGUF files
xLAM-7b-r7.24B32kSep. 5, 2024General, Function-calling🤗 Link--
xLAM-8x7b-r46.7B32kSep. 5, 2024General, Function-calling🤗 Link--
xLAM-8x22b-r141B64kSep. 5, 2024General, Function-calling🤗 Link--
xLAM-1b-fc-r1.35B16kJuly 17, 2024Function-calling🤗 Link🤗 Link
xLAM-7b-fc-r6.91B4kJuly 17, 2024Function-calling🤗 Link🤗 Link
xLAM-v0.1-r46.7B32kMar. 18, 2024General, Function-calling🤗 Link--

The fc series of models are optimized for function-calling capability, providing fast, accurate, and structured responses based on input queries and available APIs. These models are fine-tuned based on the deepseek-coder models and are designed to be small enough for deployment on personal devices like phones or computers.

We also provide their quantized GGUF files for efficient deployment and execution. GGUF is a file format designed to efficiently store and load large language models, making GGUF ideal for running AI models on local devices with limited resources, enabling offline functionality and enhanced privacy.

For more details, check our GitHub and paper.

Repository Overview

This repository is focused on our tiny xLAM-1b-fc-r model, which is optimized for function-calling and can be easily deployed on personal devices.

alt="drawing" width="620"/>

Function-calling, or tool use, is one of the key capabilities for AI agents. It requires the model not only understand and generate human-like text but also to execute functional API calls based on natural language instructions. This extends the utility of LLMs beyond simple conversation tasks to dynamic interactions with a variety of digital services and applications, such as retrieving weather information, managing social media platforms, and handling financial services.

The instructions will guide you through the setup, usage, and integration of xLAM-1b-fc-r with HuggingFace and vLLM. We will first introduce the basic usage, and then walk through the provided tutorial and example scripts in the examples folder.

Framework Versions

  • Transformers 4.41.0
  • Pytorch 2.3.0+cu121
  • Datasets 2.19.1
  • Tokenizers 0.19.1

Benchmark Results

We mainly test our function-calling models on the Berkeley Function-Calling Leaderboard (BFCL), which offers a comprehensive evaluation framework for assessing LLMs' function-calling capabilities across various programming languages and application domains like Java, JavaScript, and Python.

Both models exhibit balanced performance across various categories, showing their strong function-calling capabilities despite their small sizes.

See our paper and Github repo for more detailed analysis.

Usage

Basic Usage with Huggingface

To use the xLAM-1b-fc-r model from Huggingface, please first install the transformers library:

pip install transformers>=4.41.0

We use the following example to illustrate how to use our model to perform function-calling tasks. Please note that, our model works best with our provided prompt format. It allows us to extract JSON output that is similar to the function-calling mode of ChatGPT.

import json
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

torch.random.manual_seed(0)

model_name = "Salesforce/xLAM-1b-fc-r"
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype="auto", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_name)

# Please use our provided instruction prompt for best performance
task_instruction = """
You are an expert in composing functions. You are given a question and a

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