doberst commited on
Commit
c73aac2
·
verified ·
1 Parent(s): 5c2bd2e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
README.md CHANGED
@@ -34,7 +34,7 @@ Inference speed and loading time is much faster with the 'tool' versions of the
34
  The intended use of SLIM models is to re-imagine traditional 'hard-coded' classifiers through the use of function calls, and to provide a natural language flexible tool that can be used as decision gates and processing steps in a complex LLM-based automation workflow.
35
 
36
  <details>
37
- <summary></summary><b>Getting Started: </b> </summary>
38
 
39
  model = AutoModelForCausalLM.from_pretrained("llmware/slim-sentiment")
40
  tokenizer = AutoTokenizer.from_pretrained("llmware/slim-sentiment")
@@ -42,7 +42,6 @@ The intended use of SLIM models is to re-imagine traditional 'hard-coded' classi
42
  function = "classify"
43
  params = "sentiment"
44
 
45
- text = "That was the worst earnings call of the year. The CEO should be fired."
46
  text = "The stock market declined yesterday as investors worried increasingly about the slowing economy."
47
 
48
  prompt = "<human>: " + text + "\n" + f"<{function}> {params} </{function}>\n<bot>:"
@@ -69,7 +68,7 @@ Sample output:
69
  {"sentiment": ["negative"]}
70
 
71
 
72
- All of the SLIM models use a novel prompt instruction structured as follows:
73
 
74
  "<human> " + {text} + "\n" +
75
 
 
34
  The intended use of SLIM models is to re-imagine traditional 'hard-coded' classifiers through the use of function calls, and to provide a natural language flexible tool that can be used as decision gates and processing steps in a complex LLM-based automation workflow.
35
 
36
  <details>
37
+ <summary><b>Getting Started: </b> </summary>
38
 
39
  model = AutoModelForCausalLM.from_pretrained("llmware/slim-sentiment")
40
  tokenizer = AutoTokenizer.from_pretrained("llmware/slim-sentiment")
 
42
  function = "classify"
43
  params = "sentiment"
44
 
 
45
  text = "The stock market declined yesterday as investors worried increasingly about the slowing economy."
46
 
47
  prompt = "<human>: " + text + "\n" + f"<{function}> {params} </{function}>\n<bot>:"
 
68
  {"sentiment": ["negative"]}
69
 
70
 
71
+ ## Prompt Instruction format: all of the SLIM models use a novel prompt instruction structured as follows:
72
 
73
  "<human> " + {text} + "\n" +
74