Views
No views yet


| Model | # Total Params | Context Length | Category | Download Model | Download GGUF files |
|---|---|---|---|---|---|
| Llama-xLAM-2-70b-fc-r | 70B | 128k | Multi-turn Conversation, Function-calling | 🤗 Link | NA |
| Llama-xLAM-2-8b-fc-r | 8B | 128k | Multi-turn Conversation, Function-calling | 🤗 Link | 🤗 Link |
| xLAM-2-32b-fc-r | 32B | 32k (max 128k)* | Multi-turn Conversation, Function-calling | 🤗 Link | NA |
| xLAM-2-3b-fc-r | 3B | 32k (max 128k)* | Multi-turn Conversation, Function-calling | 🤗 Link | 🤗 Link |
| xLAM-2-1b-fc-r | 1B | 32k (max 128k)* | Multi-turn Conversation, Function-calling | 🤗 Link | 🤗 Link |
-fc suffix indicates that the models are fine-tuned for function calling tasks, while the -r suffix signifies a research release.pip install huggingface-hubhuggingface-cli loginhuggingface-cli download Salesforce/Llama-xLAM-2-8b-fc-r-gguf Llama-xLAM-2-8b-fc-r-gguf --local-dir . --local-dir-use-symlinks False<|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|>llama-cli -m [PATH-TO-LOCAL-GGUF]pip install llama-cpp-python1from llama_cpp import Llama
2llm = Llama(
3 model_path="[PATH-TO-MODEL]"
4)
5output = llm.create_chat_completion(
6 messages = [
7 {
8 "role": "system",
9 "content": "You are a helpful assistant that can use tools. You are developed by Salesforce xLAM team."
10
11 },
12 {
13 "role": "user",
14 "content": "Extract Jason is 25 years old"
15 }
16 ],
17 tools=[{
18 "type": "function",
19 "function": {
20 "name": "UserDetail",
21 "parameters": {
22 "type": "object",
23 "title": "UserDetail",
24 "properties": {
25 "name": {
26 "title": "Name",
27 "type": "string"
28 },
29 "age": {
30 "title": "Age",
31 "type": "integer"
32 }
33 },
34 "required": [ "name", "age" ]
35 }
36 }
37 }],
38 tool_choice={
39 "type": "function",
40 "function": {
41 "name": "UserDetail"
42 }
43 }
44)
45print(output['choices'][0]['message'])


1@article{prabhakar2025apigenmt,
2 title={APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplay},
3 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},
4 journal={arXiv preprint arXiv:2504.03601},
5 year={2025}
6}1@article{zhang2025actionstudio,
2 title={ActionStudio: A Lightweight Framework for Data and Training of Action Models},
3 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},
4 journal={arXiv preprint arXiv:2503.22673},
5 year={2025}
6}1@article{zhang2024xlam,
2 title={xLAM: A Family of Large Action Models to Empower AI Agent Systems},
3 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},
4 journal={arXiv preprint arXiv:2409.03215},
5 year={2024}
6}1@article{liu2024apigen,
2 title={Apigen: Automated pipeline for generating verifiable and diverse function-calling datasets},
3 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},
4 journal={Advances in Neural Information Processing Systems},
5 volume={37},
6 pages={54463--54482},
7 year={2024}
8}1@article{zhang2024agentohana,
2 title={AgentOhana: Design Unified Data and Training Pipeline for Effective Agent Learning},
3 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},
4 journal={arXiv preprint arXiv:2402.15506},
5 year={2024}
6}