/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Библиотека
transformers
Опубликована
28 мар 2025

xLAM-2-3b-fc-r-gguf

Генерация текстаТекст → текст3 профессии

Salesforce xLAM-2-3b-fc-r — компактная языковая модель из семейства Large Action Models, разработанная Salesforce для построения AI-агентов.

2 870скачиваний за 30 дней7лайковвеса обновлены6 мая 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Эта версия распространяется в формате GGUF и предназначена прежде всего для вызова функций, использования инструментов и ведения многошаговых диалогов, в которых модель преобразует намерения пользователя в исполнимые действия. Модель обучалась с использованием фреймворка APIGen-MT и данных Salesforce/APIGen-MT-5k и Salesforce/xlam-function-calling-60k.

Модель содержит около 3 миллиардов параметров, работает с текстом на английском языке и относится к моделям генерации текста. Заявленная длина контекста составляет 32 тысячи токенов; для моделей на базе Qwen-2.5 потенциально может быть достигнута длина до 128 тысяч токенов с применением YaRN, однако это требует дополнительной настройки. Суффикс fc указывает на дообучение для function calling, а r — на исследовательский выпуск. Модель совместима с llama.cpp и аналогичными GGUF-инструментами, а исходная серия также поддерживает Transformers и vLLM.

К сильным сторонам относятся специализация на вызове функций, применении инструментов и многошаговом взаимодействии, а также возможность более эффективного запуска на устройствах с ограниченными ресурсами благодаря формату GGUF. Ограничения включают относительно небольшой размер, английскую языковую специализацию, отсутствие заявленной мультимодальности и исследовательский статус; качество и безопасность действий агента зависят от интеграции с инструментами и внешнего контроля. Модель распространяется по лицензии CC BY-NC 4.0, допускающей использование с некоммерческими ограничениями.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Welcome to the xLAM-2 Model Family!

This repo provides the GGUF format for the xLAM-2-3b-fc-r model. Here's a link to original model xLAM-2-3b-fc-r.

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 significantly 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.

Using GGUF Files

For scenarios requiring more efficient inference or deployment on resource-constrained devices, we provide GGUF versions of our models, which are compatible with llama.cpp and similar frameworks.

How to Download GGUF Files

  1. Install Hugging Face CLI:
pip install huggingface-hub
  1. Login to Hugging Face:
huggingface-cli login
  1. Download the GGUF model:
huggingface-cli download Salesforce/Llama-xLAM-2-8b-fc-r-gguf Llama-xLAM-2-8b-fc-r-gguf --local-dir . --local-dir-use-symlinks False

Prompt Template

The GGUF models use the following prompt template:

<|begin_of_text|><|start_header_id|>system<|end_header_id|>

{TASK_INSTRUCTION}
You have access to a set of tools. When using tools, make calls in a single JSON array: 

[{"name": "tool_call_name", "arguments": {"arg1": "value1", "arg2": "value2"}}, ... (additional parallel tool calls as needed)]

If no tool is suitable, state that explicitly. If the user's input lacks required parameters, ask for clarification. Do not interpret or respond until tool results are returned. Once they are available, process them or make additional calls if needed. For tasks that don't require tools, such as casual conversation or general advice, respond directly in plain text. The available tools are:

{AVAILABLE_TOOLS}

<|eot_id|><|start_header_id|>user<|end_header_id|>

{USER_QUERY}<|eot_id|><|start_header_id|>assistant<|end_header_id|>

{ASSISTANT_QUERY}<|eot_id|><|start_header_id|>user<|end_header_id|>

{USER_QUERY}<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Usage Examples

Command Line
  1. Install llama.cpp framework from the source here
  2. Run the inference task as shown below. For configuration of generation-related parameters, refer to llama.cpp documentation
llama-cli -m [PATH-TO-LOCAL-GGUF]
Python Framework
  1. Install llama-cpp-python
pip install llama-cpp-python
  1. Use the high-level API for inference:
from llama_cpp import Llama
llm = Llama(
      model_path="[PATH-TO-MODEL]"
)
output = llm.create_chat_completion(
      messages = [
        {
          "role": "system",
          "content": "You are a helpful assistant that can use tools. You are developed by Salesforce xLAM team."

        },
        {
          "role": "user",
          "content": "Extract Jason is 25 years old"
        }
      ],
      tools=[{
        "type": "function",
        "function": {
          "name": "UserDetail",
          "parameters": {
            "type": "object",
            "title": "UserDetail",
            "properties": {
              "name": {
                "title": "Name",
                "type": "string"
              },
              "age": {
                "title": "Age",
                "type": "integer"
              }
            },
            "required": [ "name", "age" ]
          }
        }
      }],
      tool_choice={
        "type": "function",
        "function": {
          "name": "UserDetail"
        }
      }
)
print(output['choices'][0]['message'])

Benchmark Results

Berkeley Function-Calling Leaderboard (BFCL v3)

τ-bench Benchmark

Ethical Considerations

This release is for research purposes only in support of an academic paper. Our models, datasets, and code are not specifically designed or evaluated for all downstream purposes. We strongly recommend users evaluate and address potential concerns related to accuracy, safety, and fairness before deploying this model. We encourage users to consider the common limitations of AI, comply with applicable laws, and leverage best practices when selecting use cases, particularly for high-risk scenarios where errors or misuse could significantly impact people's lives, rights, or safety. For further guidance on use cases, refer to our AUP and AI AUP.

Model Licenses

For all Llama relevant models, please also follow corresponding Llama license and terms. Meta Llama 3 is licensed under the Meta Llama 3 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.

Citation

If you use our model or dataset in your work, please cite our paper:

@article{prabhakar2025apigenmt,
  title={APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplay},
  author={Prabhakar, Akshara and Liu, Zuxin and Yao, Weiran and Zhang, Jianguo and Zhu, Ming and Wang, Shiyu and Liu, Zhiwei and Awalgaonkar, Tulika and Chen, Haolin and Hoang, Thai and Niebles, Juan Carlos and Heinecke, Shelby and Wang, Huan and Savarese, Silvio and Xiong, Caiming},
  journal={arXiv preprint arXiv:2504.03601},
  year={2025}
}

Additionally, please check our other amazing works regarding xLAM series and consider citing them as well:

@article{zhang2025actionstudio,
  title={ActionStudio: A Lightweight Framework for Data and Training of Action Models},
  author={Zhang, Jianguo and Hoang, Thai and Zhu, Ming and Liu, Zuxin and Wang, Shiyu and Awalgaonkar, Tulika and Prabhakar, Akshara and Chen, Haolin and Yao, Weiran and Liu, Zhiwei and others},
  journal={arXiv preprint arXiv:2503.22673},
  year={2025}
}
@article{zhang2024xlam,
  title={xLAM: A Family of Large Action Models to Empower AI Agent Systems},
  author={Zhang, Jianguo and Lan, Tian and Zhu, Ming and Liu, Zuxin and Hoang, Thai and Kokane, Shirley and Yao, Weiran and Tan, Juntao and Prabhakar, Akshara and Chen, Haolin and others},
  journal={arXiv preprint arXiv:2409.03215},
  year={2024}
}
@article{liu2024apigen,
  title={Apigen: Automated pipeline for generating verifiable and diverse function-calling datasets},
  author={Liu, Zuxin and Hoang, Thai and Zhang, Jianguo and Zhu, Ming and Lan, Tian and Tan, Juntao and Yao, Weiran and Liu, Zhiwei and Feng, Yihao and RN, Rithesh and others},
  journal={Advances in Neural Information Processing Systems},
  volume={37},
  pages={54463--54482},
  year={2024}
}
@article{zhang2024agentohana,
  title={AgentOhana: Design Unified Data and Training Pipeline for Effective Agent Learning},
  author={Zhang, Jianguo and Lan, Tian and Murthy, Rithesh and Liu, Zhiwei and Yao, Weiran and Tan, Juntao and Hoang, Thai and Yang, Liangwei and Feng, Yihao and Liu, Zuxin and others},
  journal={arXiv preprint arXiv:2402.15506},
  year={2024}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

llama.cpp

Нельзя запустить

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
a40e82c

0 моделей