Yhyu13 commited on
Commit
9846914
1 Parent(s): ddd0ea1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -2
README.md CHANGED
@@ -7,7 +7,7 @@ license_link: >-
7
 
8
  # Phi-2 function calling
9
 
10
- This is a merged model of the https://huggingface.co/cognitivecomputations/dolphin-2_6-phi-2 and sft function calling lora
11
 
12
  The sft dataset is https://huggingface.co/datasets/Yhyu13/glaive-function-calling-v2-llama-factory-convert, which I converted for llama_factory from original dataset https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2
13
 
@@ -43,8 +43,14 @@ else:
43
  print("No match found.")
44
  ```
45
 
46
- Hopefully this can be drop-in replacement for many app (e.g. memgpt) that requires function calling for open source llms.
47
 
48
  # Result
49
 
 
 
 
 
 
 
50
  ![img](./asset/fn_phi2.png)
 
7
 
8
  # Phi-2 function calling
9
 
10
+ This is a merged model of the https://huggingface.co/cognitivecomputations/dolphin-2_6-phi-2 and sft function calling lora [here](https://huggingface.co/Yhyu13/dolphin-2_6-phi-2-sft-glaive-function-calling-v2-ep1-lora)
11
 
12
  The sft dataset is https://huggingface.co/datasets/Yhyu13/glaive-function-calling-v2-llama-factory-convert, which I converted for llama_factory from original dataset https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2
13
 
 
43
  print("No match found.")
44
  ```
45
 
46
+ Hopefully, this model can be a drop-in replacement for apps (e.g. memgpt) that require function calling ability from LLMs.
47
 
48
  # Result
49
 
50
+ Prompt:
51
+
52
+ ```
53
+ SYSTEM: You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_news_headlines\",\n \"description\": \"Get the latest news headlines\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country for which to fetch news\"\n }\n },\n \"required\": [\n \"country\"\n ]\n }\n}\n\nWhat date is it today?"
54
+ ```
55
+
56
  ![img](./asset/fn_phi2.png)