rizerphe commited on
Commit
13c1ce1
·
1 Parent(s): 1858a8f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +90 -1
README.md CHANGED
@@ -11,4 +11,93 @@ datasets:
11
  Fine-tuned with LoRA on a small fraction of the [glaive-function-calling-v2](glaiveai/glaive-function-calling-v2) dataset and a formatted (and slightly cleaned) version of [sharegpt-hyperfiltered-3k](https://huggingface.co/datasets/totally-not-an-llm/sharegpt-hyperfiltered-3k)
12
 
13
 
14
- Prompt example = yet to come
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  Fine-tuned with LoRA on a small fraction of the [glaive-function-calling-v2](glaiveai/glaive-function-calling-v2) dataset and a formatted (and slightly cleaned) version of [sharegpt-hyperfiltered-3k](https://huggingface.co/datasets/totally-not-an-llm/sharegpt-hyperfiltered-3k)
12
 
13
 
14
+ Prompt example:
15
+
16
+ ```
17
+ [INST] <<SYS>>
18
+ <function>Available functions:
19
+ <function>{
20
+ "name": "generate_password",
21
+ "description": "Generate a random password with specified criteria",
22
+ "parameters": {
23
+ "type": "object",
24
+ "properties": {
25
+ "length": {
26
+ "type": "integer",
27
+ "description": "The length of the password"
28
+ },
29
+ "include_numbers": {
30
+ "type": "boolean",
31
+ "description": "Include numbers in the password"
32
+ },
33
+ "include_special_characters": {
34
+ "type": "boolean",
35
+ "description": "Include special characters in the password"
36
+ }
37
+ },
38
+ "required": [
39
+ "length"
40
+ ]
41
+ }
42
+ }
43
+ <</SYS>>
44
+
45
+ I need a new password. Can you generate one for me? [/INST]
46
+ ```
47
+
48
+ The model then generates (note the leading space):
49
+
50
+ ```
51
+ Of course! How long would you like your password to be? And would you like it to include numbers and special characters?
52
+ ```
53
+
54
+ If you extend the prompt to be:
55
+
56
+ ```
57
+ [INST] <<SYS>>
58
+ <function>Available functions:
59
+ <function>{
60
+ "name": "generate_password",
61
+ "description": "Generate a random password with specified criteria",
62
+ "parameters": {
63
+ "type": "object",
64
+ "properties": {
65
+ "length": {
66
+ "type": "integer",
67
+ "description": "The length of the password"
68
+ },
69
+ "include_numbers": {
70
+ "type": "boolean",
71
+ "description": "Include numbers in the password"
72
+ },
73
+ "include_special_characters": {
74
+ "type": "boolean",
75
+ "description": "Include special characters in the password"
76
+ }
77
+ },
78
+ "required": [
79
+ "length"
80
+ ]
81
+ }
82
+ }
83
+ <</SYS>>
84
+
85
+ I need a new password. Can you generate one for me? [/INST] Of course! How long would you like your password to be? And would you like it to include numbers and special characters?</s><s>[INST] I'd like it to be 12 characters long. [/INST]
86
+ ```
87
+
88
+ The model will generate (without the leading space):
89
+
90
+ ```
91
+ <function>generate_password
92
+ {
93
+ "length": 12
94
+ }
95
+ ```
96
+
97
+ It can also answer questions based on a prompt without any functions:
98
+
99
+ ```
100
+ [INST] In one sentence, what is a large language model? [/INST] A large language model is a type of artificial intelligence model that is trained on vast amounts of text data to generate human-like language and understand natural language input. [/INST] That's correct! Large language models are trained on large datasets of text to generate human-like language and understand natural language input. They are often used in applications such as chatbots, language translation, and text summarization.
101
+ ```
102
+
103
+ A quick manual test shows that it's still able to follow a system prompt provided alongside any functions provided, including in multi-turn conversations. None of this was tested comprehensively, though, your results may vary.