jianguozhang commited on
Commit
4648789
·
verified ·
1 Parent(s): 230ca89

Revert commit for build_prompt

Browse files
Files changed (1) hide show
  1. README.md +15 -25
README.md CHANGED
@@ -21,7 +21,7 @@ extra_gated_fields:
21
  Affiliation: text
22
  ---
23
 
24
- ```markdown
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>
@@ -199,29 +199,11 @@ def build_conversation_history_prompt(conversation_history: str):
199
 
200
 
201
  # Helper function to build the input prompt for our model
202
- def build_prompt(task_instruction: str, format_instruction: str, tools: list, query: str, conversation_history: list):
203
- prompt = f"[BEGIN OF TASK INSTRUCTION]
204
- {task_instruction}
205
- [END OF TASK INSTRUCTION]
206
-
207
- "
208
- prompt += f"[BEGIN OF AVAILABLE TOOLS]
209
- {json.dumps(xlam_format_tools)}
210
- [END OF AVAILABLE TOOLS]
211
-
212
- "
213
- prompt += f"[BEGIN OF FORMAT INSTRUCTION]
214
- {format_instruction}
215
- [END OF FORMAT INSTRUCTION]
216
-
217
- "
218
- prompt += f"[BEGIN OF QUERY]
219
- {query}
220
- [END OF QUERY]
221
-
222
- "
223
-
224
- if len(conversation_history) > 0: prompt += build_conversation_history_prompt(conversation_history)
225
  return prompt
226
 
227
  # Build the input and start the inference
@@ -492,6 +474,15 @@ If you find this repo helpful, please consider to cite our papers:
492
  }
493
  ```
494
 
 
 
 
 
 
 
 
 
 
495
  ```bibtex
496
  @article{zhang2024agentohana,
497
  title={AgentOhana: Design Unified Data and Training Pipeline for Effective Agent Learning},
@@ -499,5 +490,4 @@ If you find this repo helpful, please consider to cite our papers:
499
  journal={arXiv preprint arXiv:2402.15506},
500
  year={2024}
501
  }
502
- ```
503
  ```
 
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>
 
199
 
200
 
201
  # Helper function to build the input prompt for our model
202
+ def build_prompt(task_instruction: str, format_instruction: str, tools: list, query: str):
203
+ prompt = f"[BEGIN OF TASK INSTRUCTION]\n{task_instruction}\n[END OF TASK INSTRUCTION]\n\n"
204
+ prompt += f"[BEGIN OF AVAILABLE TOOLS]\n{json.dumps(xlam_format_tools)}\n[END OF AVAILABLE TOOLS]\n\n"
205
+ prompt += f"[BEGIN OF FORMAT INSTRUCTION]\n{format_instruction}\n[END OF FORMAT INSTRUCTION]\n\n"
206
+ prompt += f"[BEGIN OF QUERY]\n{query}\n[END OF QUERY]\n\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  return prompt
208
 
209
  # Build the input and start the inference
 
474
  }
475
  ```
476
 
477
+ ```bibtex
478
+ @article{zhang2025actionstudio,
479
+ title={ActionStudio: A Lightweight Framework for Data and Training of Action Models},
480
+ 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},
481
+ journal={arXiv preprint arXiv:2503.22673},
482
+ year={2025}
483
+ }
484
+ ```
485
+
486
  ```bibtex
487
  @article{zhang2024agentohana,
488
  title={AgentOhana: Design Unified Data and Training Pipeline for Effective Agent Learning},
 
490
  journal={arXiv preprint arXiv:2402.15506},
491
  year={2024}
492
  }
 
493
  ```