XAgentTeam commited on
Commit
c9e40a4
1 Parent(s): fc898ae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +72 -0
README.md CHANGED
@@ -4,8 +4,80 @@ language:
4
  pipeline_tag: text-generation
5
  tags:
6
  - llama-2
 
7
  license: llama2
8
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  # **Code Llama**
10
  Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the 7B instruct-tuned version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom.
11
 
 
4
  pipeline_tag: text-generation
5
  tags:
6
  - llama-2
7
+ - function calling
8
  license: llama2
9
  ---
10
+ # **XAgent Llama**
11
+
12
+ XAgentLlaMa is a collection of fine-tuned generative text models ranging in scale from 7 billion to 34 billion based on Llama 2 and Code Llama.
13
+ This is the repository for the 34B fine-tuned model, optimized for XAgent with strong function call ability.
14
+
15
+ ## Warning: This is a preview version of the model, does not stand for final quality.
16
+
17
+ We collect around 300K pieces of data and fine-tune Code-Llama 34B with 48 A100 GPUs. More details will be released later.
18
+
19
+ This model is trained with a special function call format, and should be used with [XAgentGen](https://github.com/OpenBMB/XAgent/tree/dev/XAgentGen) to get best performance.
20
+
21
+ ### XAgentGen input format:
22
+ ```json
23
+ "messages":[
24
+ {
25
+ "role":"system",
26
+ "content":"...."
27
+ },
28
+ {...}
29
+ ],
30
+ "global_arguments":{ // Optional
31
+ "type": "object",
32
+ "properties":{
33
+ "k1":{
34
+ "type":"integer",
35
+ "description":"..."
36
+ },
37
+ "k2":{
38
+ "type":"string",
39
+ "description":"..."
40
+ },
41
+ ...
42
+ },
43
+ "required":["k1","k2"]
44
+ },
45
+ "functions":[// Optional
46
+ {
47
+ "name":"func1",
48
+ "description":"...",
49
+ "parameters":{
50
+ "type":"object",
51
+ "properties":{...},
52
+ "required":[...]
53
+ }
54
+ },
55
+ ....
56
+ ],
57
+ "function_call": {// Optional
58
+ "name":"func1"
59
+ }
60
+ ```
61
+
62
+ ### XAgentGen call output format:
63
+ ```json
64
+ {
65
+ "global_arguments": {
66
+ "k1":"v1",
67
+ "k2":"v2",
68
+ "k3":"v3",
69
+ ...
70
+ },
71
+ "function_call":{
72
+ "name":"func1",
73
+ "arguments":{...}
74
+ }
75
+ }
76
+ ```
77
+ If the json format of `global_arguments` is provided, the output will contains the `global_arguments` at any time.
78
+
79
+
80
+
81
  # **Code Llama**
82
  Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the 7B instruct-tuned version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom.
83