jtatman commited on
Commit
eedac58
1 Parent(s): 6ce4741

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +123 -1
README.md CHANGED
@@ -1,4 +1,126 @@
1
  ---
2
  license: llama2
 
 
 
 
3
  ---
4
- A gguf version of the v1 model of llama2funcall
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: llama2
3
+ tags:
4
+ - functions
5
+ - llama2
6
+ - gguf
7
  ---
8
+ A gguf version of the v1 model of llama 2 function calling model in:
9
+ - fLlama-2-7b-chat.q3_K_M.gguf
10
+ GGUF versions of v3 in:
11
+ - Llama-2-7b-chat-hf-function-calling-v3-Q4_0.gguf
12
+ - Llama-2-7b-chat-hf-function-calling-v3-Q_4_K_M.gguf
13
+ - Llama-2-7b-chat-hf-function-calling-v3-Q2_K.gguf
14
+
15
+ Set up like so:
16
+ ```Python
17
+ [INST] You have access to the following functions. Use them if required:
18
+
19
+ [
20
+ {
21
+ "type": "function",
22
+ "function": {
23
+ "name": "get_big_stocks",
24
+ "description": "Get the names of the largest N stocks by market cap",
25
+ "parameters": {
26
+ "type": "object",
27
+ "properties": {
28
+ "number": {
29
+ "type": "integer",
30
+ "description": "The number of largest stocks to get the names of, e.g. 25"
31
+ },
32
+ "region": {
33
+ "type": "string",
34
+ "description": "The region to consider, can be \"US\" or \"World\"."
35
+ }
36
+ },
37
+ "required": [
38
+ "number"
39
+ ]
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "type": "function",
45
+ "function": {
46
+ "name": "get_stock_price",
47
+ "description": "Get the stock price of an array of stocks",
48
+ "parameters": {
49
+ "type": "object",
50
+ "properties": {
51
+ "names": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string"
55
+ },
56
+ "description": "An array of stocks"
57
+ }
58
+ },
59
+ "required": [
60
+ "names"
61
+ ]
62
+ }
63
+ }
64
+ }
65
+ ]
66
+
67
+ [INST] Get the names of the five largest stocks in the US by market cap [/INST]
68
+
69
+ {
70
+ "name": "get_big_stocks",
71
+ "arguments": {
72
+ "number": 5,
73
+ "region": "US"
74
+ }
75
+ }</s>
76
+ ```
77
+
78
+ or this:
79
+
80
+ ```Python
81
+ <s>[INST] <<SYS>>
82
+ You are a helpful research assistant. The following functions are available for you to fetch further data to answer user questions, if relevant:
83
+
84
+ {
85
+ "function": "search_bing",
86
+ "description": "Search the web for content on Bing. This allows users to search online/the internet/the web for content.",
87
+ "arguments": [
88
+ {
89
+ "name": "query",
90
+ "type": "string",
91
+ "description": "The search query string"
92
+ }
93
+ ]
94
+ }
95
+
96
+ {
97
+ "function": "search_arxiv",
98
+ "description": "Search for research papers on ArXiv. Make use of AND, OR and NOT operators as appropriate to join terms within the query.",
99
+ "arguments": [
100
+ {
101
+ "name": "query",
102
+ "type": "string",
103
+ "description": "The search query string"
104
+ }
105
+ ]
106
+ }
107
+
108
+
109
+ To call a function, respond - immediately and only - with a JSON object of the following format:
110
+ {
111
+ "function": "function_name",
112
+ "arguments": {
113
+ "argument1": "argument_value",
114
+ "argument2": "argument_value"
115
+ }
116
+ }
117
+ <</SYS>>[/INST]
118
+
119
+ [INST] Find papers on high pressure batch reverse osmosis [/INST]
120
+ ```
121
+
122
+ Good results through standard llama.cpp chat web interface - also can be used for openai proxy.
123
+
124
+ Original Creds go here:
125
+
126
+ (Trelis/Llama-2-7b-chat-hf-function-calling-v3)[https://huggingface.co/Trelis/Llama-2-7b-chat-hf-function-calling-v3]