Instructions to use llmware/slim-sentiment-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-sentiment-tool with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-sentiment-tool", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use llmware/slim-sentiment-tool with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf llmware/slim-sentiment-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-sentiment-tool
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf llmware/slim-sentiment-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-sentiment-tool
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf llmware/slim-sentiment-tool # Run inference directly in the terminal: ./build/bin/llama cli -hf llmware/slim-sentiment-tool
Use Docker
docker model run hf.co/llmware/slim-sentiment-tool
- Llama new
- LM Studio
- Jan
- Ollama
How to use llmware/slim-sentiment-tool with Ollama:
ollama run hf.co/llmware/slim-sentiment-tool
- Unsloth Desktop
- Docker Model Runner
How to use llmware/slim-sentiment-tool with Docker Model Runner:
docker model run hf.co/llmware/slim-sentiment-tool
- Lemonade
How to use llmware/slim-sentiment-tool with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-sentiment-tool
Run and chat with the model
lemonade run user.slim-sentiment-tool-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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, providing a
|
| 12 |
|
| 13 |
-
Load in your favorite GGUF inference engine (see details
|
| 14 |
|
| 15 |
from llmware.models import ModelCatalog
|
| 16 |
|
|
@@ -18,7 +18,7 @@ Load in your favorite GGUF inference engine (see details below on how to set up
|
|
| 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().test_run("slim-sentiment-tool", verbose=True)
|
| 23 |
|
| 24 |
|
|
@@ -45,18 +45,10 @@ Slim models can also be loaded even more simply as part of a multi-model, multi-
|
|
| 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 |
-
|
| 49 |
|
| 50 |
-
|
| 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 |
|
|
|
|
| 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 |
+
Load in your favorite GGUF inference engine (see details in config.json to set up the prompt template), or try with llmware as follows:
|
| 14 |
|
| 15 |
from llmware.models import ModelCatalog
|
| 16 |
|
|
|
|
| 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().test_run("slim-sentiment-tool", verbose=True)
|
| 23 |
|
| 24 |
|
|
|
|
| 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 |
+
SLIM models provide a fast, flexible, intuitive way to integrate classifiers and structured function calls into RAG and LLM application workflows.
|
| 49 |
|
| 50 |
+
Model instructions, details and test samples have been packaged into the config.json file in the repository, along with the GGUF file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
|
|
|
|
|
|
| 52 |
|
| 53 |
Example:
|
| 54 |
|