Add library name tag, link to paper
Browse filesThis PR adds the relevant library name, ensuring people can use it more easily with the Transformers library.
It also ensures the link to the paper is up-to-date.
README.md
CHANGED
@@ -1,27 +1,27 @@
|
|
1 |
---
|
2 |
-
extra_gated_heading: >-
|
3 |
-
Acknowledge to follow corresponding license to access the
|
4 |
-
repository
|
5 |
-
extra_gated_button_content: Agree and access repository
|
6 |
-
extra_gated_fields:
|
7 |
-
First Name: text
|
8 |
-
Last Name: text
|
9 |
-
Country: country
|
10 |
-
Affiliation: text
|
11 |
-
license: cc-by-nc-4.0
|
12 |
datasets:
|
13 |
- Salesforce/xlam-function-calling-60k
|
14 |
language:
|
15 |
- en
|
|
|
16 |
pipeline_tag: text-generation
|
|
|
17 |
tags:
|
18 |
- function-calling
|
19 |
- LLM Agent
|
20 |
- tool-use
|
21 |
- deepseek
|
22 |
- pytorch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,10 +206,26 @@ 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 |
-
|
212 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
return prompt
|
214 |
|
215 |
# Build the input and start the inference
|
@@ -296,7 +312,8 @@ These resources provide a robust foundation for integrating xLAM models into you
|
|
296 |
|
297 |
## License
|
298 |
|
299 |
-
`xLAM-7b-fc-r` is distributed under the CC-BY-NC-4.0 license, with additional terms specified in the [Deepseek license](https://github.com/deepseek-ai/
|
|
|
300 |
|
301 |
## Ethical Considerations
|
302 |
|
@@ -313,3 +330,4 @@ If you find this repo helpful, please cite our paper:
|
|
313 |
year={2024}
|
314 |
}
|
315 |
```
|
|
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
datasets:
|
3 |
- Salesforce/xlam-function-calling-60k
|
4 |
language:
|
5 |
- en
|
6 |
+
license: cc-by-nc-4.0
|
7 |
pipeline_tag: text-generation
|
8 |
+
library_name: transformers
|
9 |
tags:
|
10 |
- function-calling
|
11 |
- LLM Agent
|
12 |
- tool-use
|
13 |
- deepseek
|
14 |
- pytorch
|
15 |
+
extra_gated_heading: Acknowledge to follow corresponding license to access the repository
|
16 |
+
extra_gated_button_content: Agree and access repository
|
17 |
+
extra_gated_fields:
|
18 |
+
First Name: text
|
19 |
+
Last Name: text
|
20 |
+
Country: country
|
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>
|
|
|
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 |
+
{task_instruction}
|
211 |
+
[END OF TASK INSTRUCTION]
|
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
|
|
|
312 |
|
313 |
## License
|
314 |
|
315 |
+
`xLAM-7b-fc-r` is distributed under the CC-BY-NC-4.0 license, with additional terms specified in the [Deepseek license](https://github.com/deepseek-ai/deepseek-coder/blob/main/LICENSE-MODEL).
|
316 |
+
|
317 |
|
318 |
## Ethical Considerations
|
319 |
|
|
|
330 |
year={2024}
|
331 |
}
|
332 |
```
|
333 |
+
```
|