revert commit for build_prompt
Browse files
README.md
CHANGED
@@ -21,7 +21,7 @@ extra_gated_fields:
|
|
21 |
Affiliation: text
|
22 |
---
|
23 |
|
24 |
-
|
25 |
<p align="center">
|
26 |
<img width="500px" alt="xLAM" src="https://huggingface.co/datasets/jianguozhang/logos/resolve/main/xlam-no-background.png">
|
27 |
</p>
|
@@ -206,26 +206,10 @@ def convert_to_xlam_tool(tools):
|
|
206 |
|
207 |
# Helper function to build the input prompt for our model
|
208 |
def build_prompt(task_instruction: str, format_instruction: str, tools: list, query: str):
|
209 |
-
prompt = f"[BEGIN OF TASK INSTRUCTION]
|
210 |
-
{
|
211 |
-
[END OF
|
212 |
-
|
213 |
-
"
|
214 |
-
prompt += f"[BEGIN OF AVAILABLE TOOLS]
|
215 |
-
{json.dumps(xlam_format_tools)}
|
216 |
-
[END OF AVAILABLE TOOLS]
|
217 |
-
|
218 |
-
"
|
219 |
-
prompt += f"[BEGIN OF FORMAT INSTRUCTION]
|
220 |
-
{format_instruction}
|
221 |
-
[END OF FORMAT INSTRUCTION]
|
222 |
-
|
223 |
-
"
|
224 |
-
prompt += f"[BEGIN OF QUERY]
|
225 |
-
{query}
|
226 |
-
[END OF QUERY]
|
227 |
-
|
228 |
-
"
|
229 |
return prompt
|
230 |
|
231 |
# Build the input and start the inference
|
@@ -323,11 +307,23 @@ This release is for research purposes only in support of an academic paper. Our
|
|
323 |
|
324 |
If you find this repo helpful, please cite our paper:
|
325 |
```bibtex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
@article{liu2024apigen,
|
327 |
title={APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets},
|
328 |
author={Liu, Zuxin and Hoang, Thai and Zhang, Jianguo and Zhu, Ming and Lan, Tian and Kokane, Shirley and Tan, Juntao and Yao, Weiran and Liu, Zhiwei and Feng, Yihao and others},
|
329 |
journal={arXiv preprint arXiv:2406.18518},
|
330 |
year={2024}
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
}
|
332 |
```
|
333 |
-
```
|
|
|
21 |
Affiliation: text
|
22 |
---
|
23 |
|
24 |
+
|
25 |
<p align="center">
|
26 |
<img width="500px" alt="xLAM" src="https://huggingface.co/datasets/jianguozhang/logos/resolve/main/xlam-no-background.png">
|
27 |
</p>
|
|
|
206 |
|
207 |
# Helper function to build the input prompt for our model
|
208 |
def build_prompt(task_instruction: str, format_instruction: str, tools: list, query: str):
|
209 |
+
prompt = f"[BEGIN OF TASK INSTRUCTION]\n{task_instruction}\n[END OF TASK INSTRUCTION]\n\n"
|
210 |
+
prompt += f"[BEGIN OF AVAILABLE TOOLS]\n{json.dumps(xlam_format_tools)}\n[END OF AVAILABLE TOOLS]\n\n"
|
211 |
+
prompt += f"[BEGIN OF FORMAT INSTRUCTION]\n{format_instruction}\n[END OF FORMAT INSTRUCTION]\n\n"
|
212 |
+
prompt += f"[BEGIN OF QUERY]\n{query}\n[END OF QUERY]\n\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
return prompt
|
214 |
|
215 |
# Build the input and start the inference
|
|
|
307 |
|
308 |
If you find this repo helpful, please cite our paper:
|
309 |
```bibtex
|
310 |
+
@article{zhang2024xlam,
|
311 |
+
title={xlam: A family of large action models to empower ai agent systems},
|
312 |
+
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},
|
313 |
+
journal={arXiv preprint arXiv:2409.03215},
|
314 |
+
year={2024}
|
315 |
+
}
|
316 |
+
|
317 |
@article{liu2024apigen,
|
318 |
title={APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets},
|
319 |
author={Liu, Zuxin and Hoang, Thai and Zhang, Jianguo and Zhu, Ming and Lan, Tian and Kokane, Shirley and Tan, Juntao and Yao, Weiran and Liu, Zhiwei and Feng, Yihao and others},
|
320 |
journal={arXiv preprint arXiv:2406.18518},
|
321 |
year={2024}
|
322 |
+
|
323 |
+
@article{zhang2025actionstudio,
|
324 |
+
title={ActionStudio: A Lightweight Framework for Data and Training of Action Models},
|
325 |
+
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},
|
326 |
+
journal={arXiv preprint arXiv:2503.22673},
|
327 |
+
year={2025}
|
328 |
}
|
329 |
```
|
|