Model reference · open weights

xLAM-fc-r

Available as managed deployment Licence fee LLMs Salesforce Text gen 1 variants 3k dl/mo

xLAM-fc-r is an open-weight language model from Salesforce. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

MakerSalesforce
TypeLanguage models
TaskText gen
Parameters (lead)1.3B
Context16k tokens
Runs withtransformers
Released2024-07-17
Popularity3k downloads / month
LicenceCommercial licence needed

About

What xLAM-fc-r is

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

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys xlam-fc-r for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (xlam-fc-r below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"xlam-fc-r","messages":[{"role":"user","content":"Hello"}]}'

Create an account — your API key is available in the console. 5M tokens/month currently included with every new account at launch.

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