Update README.md
Browse files
README.md
CHANGED
|
@@ -11,10 +11,10 @@ inference: false
|
|
| 11 |
|
| 12 |
slim-sentiment has been fine-tuned for **sentiment analysis** function calls, generating output consisting of a python dictionary corresponding to specified keys, e.g.:
|
| 13 |
|
| 14 |
-
`{"sentiment": ["positive"]}`
|
| 15 |
|
| 16 |
|
| 17 |
-
SLIM models are designed to provide a flexible natural language generative model that can be used
|
| 18 |
|
| 19 |
Each slim model has a 'quantized tool' version, e.g., [**'slim-sentiment-tool'**](https://huggingface.co/llmware/slim-sentiment-tool).
|
| 20 |
|
|
@@ -23,16 +23,11 @@ Each slim model has a 'quantized tool' version, e.g., [**'slim-sentiment-tool'*
|
|
| 23 |
|
| 24 |
`function = "classify"`
|
| 25 |
`params = "sentiment"`
|
| 26 |
-
|
| 27 |
-
|
| 28 |
`prompt = "<human> " + {text} + "\n" + `
|
| 29 |
-
|
| 30 |
-
`
|
| 31 |
-
|
| 32 |
-
` "/n<bot>:" `
|
| 33 |
|
| 34 |
|
| 35 |
-
|
| 36 |
<details>
|
| 37 |
<summary>Transformers Script </summary>
|
| 38 |
|
|
|
|
| 11 |
|
| 12 |
slim-sentiment has been fine-tuned for **sentiment analysis** function calls, generating output consisting of a python dictionary corresponding to specified keys, e.g.:
|
| 13 |
|
| 14 |
+
`{"sentiment": ["positive"]}`
|
| 15 |
|
| 16 |
|
| 17 |
+
SLIM models are designed to provide a flexible natural language generative model that can be used as part of a multi-step, multi-model LLM-based automation workflow.
|
| 18 |
|
| 19 |
Each slim model has a 'quantized tool' version, e.g., [**'slim-sentiment-tool'**](https://huggingface.co/llmware/slim-sentiment-tool).
|
| 20 |
|
|
|
|
| 23 |
|
| 24 |
`function = "classify"`
|
| 25 |
`params = "sentiment"`
|
|
|
|
|
|
|
| 26 |
`prompt = "<human> " + {text} + "\n" + `
|
| 27 |
+
`"<{function}> " + {params} + "</{function}>" + `
|
| 28 |
+
`"/n<bot>:" `
|
|
|
|
|
|
|
| 29 |
|
| 30 |
|
|
|
|
| 31 |
<details>
|
| 32 |
<summary>Transformers Script </summary>
|
| 33 |
|