XAgentTeam commited on
Commit
ca42f56
1 Parent(s): bbffeca

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +68 -0
README.md CHANGED
@@ -1,3 +1,71 @@
1
  ---
2
  license: apache-2.0
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ tags:
4
+ - function call
5
  ---
6
+ 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.
7
+ This is the repository for the 7B fine-tuned model, optimized for XAgent with strong function call ability.
8
+
9
+ ## Warning: This is a preview version of the model, does not stand for final quality.
10
+
11
+ We collect around 300K pieces of data and fine-tune Code-Llama 7B with 48 A100 GPUs. More details will be released later.
12
+
13
+ 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.
14
+
15
+ ### XAgentGen input format:
16
+ ```json
17
+ "messages":[
18
+ {
19
+ "role":"system",
20
+ "content":"...."
21
+ },
22
+ {...}
23
+ ],
24
+ "global_arguments":{ // Optional
25
+ "type": "object",
26
+ "properties":{
27
+ "k1":{
28
+ "type":"integer",
29
+ "description":"..."
30
+ },
31
+ "k2":{
32
+ "type":"string",
33
+ "description":"..."
34
+ },
35
+ ...
36
+ },
37
+ "required":["k1","k2"]
38
+ },
39
+ "functions":[// Optional
40
+ {
41
+ "name":"func1",
42
+ "description":"...",
43
+ "parameters":{
44
+ "type":"object",
45
+ "properties":{...},
46
+ "required":[...]
47
+ }
48
+ },
49
+ ....
50
+ ],
51
+ "function_call": {// Optional
52
+ "name":"func1"
53
+ }
54
+ ```
55
+
56
+ ### XAgentGen call output format:
57
+ ```json
58
+ {
59
+ "global_arguments": {
60
+ "k1":"v1",
61
+ "k2":"v2",
62
+ "k3":"v3",
63
+ ...
64
+ },
65
+ "function_call":{
66
+ "name":"func1",
67
+ "arguments":{...}
68
+ }
69
+ }
70
+ ```
71
+ If the json format of `global_arguments` is provided, the output will contains the `global_arguments` at any time.