Update README.md
Browse files
README.md
CHANGED
|
@@ -6,21 +6,30 @@ license: apache-2.0
|
|
| 6 |
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 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 small, fast inference implementation.
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
| 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
|
| 22 |
-
ModelCatalog().
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
|
| 25 |
Slim models can also be loaded even more simply as part of a multi-model, multi-step LLMfx calls:
|
| 26 |
|
|
@@ -39,7 +48,7 @@ Slim models can also be loaded even more simply as part of a multi-model, multi-
|
|
| 39 |
- **Model type:** GGUF
|
| 40 |
- **Language(s) (NLP):** English
|
| 41 |
- **License:** Apache 2.0
|
| 42 |
-
- **Quantized from model:** llmware/slim-sentiment (finetuned tiny llama)
|
| 43 |
|
| 44 |
## Uses
|
| 45 |
|
|
|
|
| 6 |
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 8 |
|
|
|
|
| 9 |
|
| 10 |
+
**slim-sentiment-tool** is a 4_K_M quantized GGUF version of slim-sentiment, providing a small, fast inference implementation, optimized for multi-model concurrent deployment.
|
| 11 |
|
| 12 |
+
[**slim-sentiment**](https://huggingface.co/llmware/slim-sentiment) is part of the SLIM ("Structured Language Instruction Model") series, providing a set of small, specialized decoder-based LLMs, fine-tuned for function-calling.
|
| 13 |
|
| 14 |
+
To pull the model via API:
|
| 15 |
|
| 16 |
+
from huggingface_hub import snapshot_download
|
| 17 |
+
snapshot_download("llmware/slim-sentiment-tool", local_dir="/path/on/your/machine/", local_dir_use_symlinks=False)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
Load in your favorite GGUF inference engine, or try with llmware as follows:
|
| 21 |
+
|
| 22 |
+
from llmware.models import ModelCatalog
|
| 23 |
+
|
| 24 |
# to load the model and make a basic inference
|
| 25 |
sentiment_tool = ModelCatalog().load_model("slim-sentiment-tool")
|
| 26 |
response = sentiment_tool.function_call(text_sample)
|
| 27 |
|
| 28 |
# this one line will download the model and run a series of tests
|
| 29 |
+
ModelCatalog().tool_test_run("slim-sentiment-tool", verbose=True)
|
| 30 |
+
|
| 31 |
+
Note: please review [**config.json**](https://huggingface.co/llmware/slim-sentiment-tool/blob/main/config.json) in the repository for prompt wrapping information, details on the model, and full test set.
|
| 32 |
+
|
| 33 |
|
| 34 |
Slim models can also be loaded even more simply as part of a multi-model, multi-step LLMfx calls:
|
| 35 |
|
|
|
|
| 48 |
- **Model type:** GGUF
|
| 49 |
- **Language(s) (NLP):** English
|
| 50 |
- **License:** Apache 2.0
|
| 51 |
+
- **Quantized from model:** llmware/slim-sentiment (finetuned tiny llama 1b)
|
| 52 |
|
| 53 |
## Uses
|
| 54 |
|