Update README.md
Browse files
README.md
CHANGED
@@ -16,30 +16,15 @@ slim-sentiment has been fine-tuned for **sentiment analysis** function calls, ge
|
|
16 |
|
17 |
SLIM models 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.
|
18 |
|
19 |
-
Each slim model has a corresponding 'tool'
|
20 |
-
|
21 |
-
|
22 |
-
### Model Description
|
23 |
-
|
24 |
-
<!-- Provide a longer summary of what this model is. -->
|
25 |
-
|
26 |
-
- **Developed by:** llmware
|
27 |
-
- **Model type:** SLIM - small, specialized LLM generating structured outputs
|
28 |
-
- **Language(s) (NLP):** English
|
29 |
-
- **License:** Apache 2.0
|
30 |
-
- **Finetuned from model:** Tiny Llama 1B
|
31 |
|
32 |
|
33 |
## Prompt format:
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
"<{function}> " + {keys} + "</{function}>" +
|
38 |
-
|
39 |
-
"/n<bot>:"
|
40 |
|
41 |
<details>
|
42 |
-
<summary><b>Getting Started with Transformers Script </b> </summary>
|
43 |
|
44 |
model = AutoModelForCausalLM.from_pretrained("llmware/slim-sentiment")
|
45 |
tokenizer = AutoTokenizer.from_pretrained("llmware/slim-sentiment")
|
@@ -77,6 +62,8 @@ Each slim model has a corresponding 'tool' in a separate repository, e.g., [**'
|
|
77 |
</details>
|
78 |
|
79 |
|
|
|
|
|
80 |
<details>
|
81 |
<summary><b>Using as Function Call in LLMWare</b></summary>
|
82 |
|
|
|
16 |
|
17 |
SLIM models 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.
|
18 |
|
19 |
+
Each slim model has a corresponding 'quantized tool' version, e.g., [**'slim-sentiment-tool'**](https://huggingface.co/llmware/slim-sentiment-tool).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
|
22 |
## Prompt format:
|
23 |
|
24 |
+
`"<human> " + {text} + "\n" + "<{function}> " + {keys} + "</{function}>" + "/n<bot>:" `
|
|
|
|
|
|
|
|
|
25 |
|
26 |
<details>
|
27 |
+
<summary><b> Getting Started with Transformers Script </b> </summary>
|
28 |
|
29 |
model = AutoModelForCausalLM.from_pretrained("llmware/slim-sentiment")
|
30 |
tokenizer = AutoTokenizer.from_pretrained("llmware/slim-sentiment")
|
|
|
62 |
</details>
|
63 |
|
64 |
|
65 |
+
|
66 |
+
|
67 |
<details>
|
68 |
<summary><b>Using as Function Call in LLMWare</b></summary>
|
69 |
|