Update README.md
Browse files
README.md
CHANGED
@@ -8,16 +8,21 @@ license: apache-2.0
|
|
8 |
|
9 |
**slim-sentiment-tool** is part of the SLIM ("Structured Language Instruction Model") model series, providing a set of small, specialized decoder-based LLMs, fine-tuned for function-calling.
|
10 |
|
11 |
-
slim-sentiment-tool is a 4_K_M quantized GGUF version of slim-sentiment
|
12 |
|
13 |
-
Load in your favorite GGUF inference engine, or try with llmware as follows:
|
14 |
|
15 |
from llmware.models import ModelCatalog
|
16 |
|
17 |
-
|
18 |
-
|
|
|
19 |
|
20 |
-
|
|
|
|
|
|
|
|
|
21 |
|
22 |
from llmware.agents import LLMfx
|
23 |
|
@@ -40,7 +45,18 @@ Slim models can also be loaded even more simply as part of LLMfx calls:
|
|
40 |
|
41 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
42 |
|
43 |
-
The intended use of SLIM models is to re-imagine traditional 'hard-coded' classifiers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
Example:
|
46 |
|
|
|
8 |
|
9 |
**slim-sentiment-tool** is part of the SLIM ("Structured Language Instruction Model") model series, providing a set of small, specialized decoder-based LLMs, fine-tuned for function-calling.
|
10 |
|
11 |
+
slim-sentiment-tool is a 4_K_M quantized GGUF version of slim-sentiment, providing a fast, small inference implementation.
|
12 |
|
13 |
+
Load in your favorite GGUF inference engine (see details below on how to set up the prompt template), or try with llmware as follows:
|
14 |
|
15 |
from llmware.models import ModelCatalog
|
16 |
|
17 |
+
# to load the model and make a basic inference
|
18 |
+
sentiment_tool = ModelCatalog().load_model("slim-sentiment-tool")
|
19 |
+
response = sentiment_tool.function_call(text_sample)
|
20 |
|
21 |
+
# this one line will download the model and run a series of tests automatically
|
22 |
+
ModelCatalog().test_run("slim-sentiment-tool", verbose=True)
|
23 |
+
|
24 |
+
|
25 |
+
Slim models can also be loaded even more simply as part of a multi-model, multi-step LLMfx calls:
|
26 |
|
27 |
from llmware.agents import LLMfx
|
28 |
|
|
|
45 |
|
46 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
47 |
|
48 |
+
The intended use of SLIM models is to re-imagine traditional 'hard-coded' classifiers by combining:
|
49 |
+
|
50 |
+
- LLM function calls
|
51 |
+
|
52 |
+
- Agents created with multiple models
|
53 |
+
|
54 |
+
- Small specialized models 'built for purpose'
|
55 |
+
|
56 |
+
- Quantization
|
57 |
+
|
58 |
+
Please check out the config.json file included in the repository which includes details on the GGUF model, as well as a set of a
|
59 |
+
test samples.
|
60 |
|
61 |
Example:
|
62 |
|