Instructions to use llmware/slim-sa-ner-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-sa-ner-tool with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-sa-ner-tool", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use llmware/slim-sa-ner-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-sa-ner-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-sa-ner-tool
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf llmware/slim-sa-ner-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-sa-ner-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-sa-ner-tool # Run inference directly in the terminal: ./build/bin/llama cli -hf llmware/slim-sa-ner-tool
Use Docker
docker model run hf.co/llmware/slim-sa-ner-tool
- Llama new
- LM Studio
- Jan
- Ollama
How to use llmware/slim-sa-ner-tool with Ollama:
ollama run hf.co/llmware/slim-sa-ner-tool
- Unsloth Desktop
- Docker Model Runner
How to use llmware/slim-sa-ner-tool with Docker Model Runner:
docker model run hf.co/llmware/slim-sa-ner-tool
- Lemonade
How to use llmware/slim-sa-ner-tool with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-sa-ner-tool
Run and chat with the model
lemonade run user.slim-sa-ner-tool-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,10 +7,18 @@ license: cc-by-sa-4.0
|
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 8 |
|
| 9 |
|
| 10 |
-
**slim-sa-ner-tool** is a 4_K_M quantized GGUF version of slim-sa-ner, providing a small, fast inference implementation, optimized for multi-model concurrent deployment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
-
[**slim-sa-ner**](https://huggingface.co/llmware/slim-sa-ner) is part of the SLIM ("**S**tructured **L**anguage **I**nstruction **M**odel") series, providing a set of small, specialized decoder-based LLMs, fine-tuned for function-calling.
|
| 14 |
|
| 15 |
To pull the model via API:
|
| 16 |
|
|
|
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 8 |
|
| 9 |
|
| 10 |
+
**slim-sa-ner-tool** is a 4_K_M quantized GGUF version of [**slim-sa-ner**](https://huggingface.co/llmware/slim-sa-ner), providing a small, fast inference implementation, optimized for multi-model concurrent deployment.
|
| 11 |
+
|
| 12 |
+
slim-sa-ner combines two of the most popular traditional classifier functions (Sentiment Analysis and Named Entity Recognition), and reimagines them as function calls on a specialized decoder-based LLM, generating output consisting of a python dictionary with keys corresponding to sentiment, and NER identifiers, such as people, organization, and place, e.g.:
|
| 13 |
+
|
| 14 |
+
{'sentiment': ['positive'], people': ['..'], 'organization': ['..'],
|
| 15 |
+
'place': ['..]}
|
| 16 |
+
|
| 17 |
+
This 3B parameter 'combo' model is designed to illustrate the potential power of using function calls on small, specialized models to enable a single model architecture to combine the capabilities of what were traditionally two separate model architectures on an encoder.
|
| 18 |
+
|
| 19 |
+
The intent of SLIMs is to forge a middle-ground between traditional encoder-based classifiers and open-ended API-based LLMs, providing an intuitive, flexible natural language response, without complex prompting, and with improved generalization and ability to fine-tune to a specific domain use case.
|
| 20 |
|
| 21 |
|
|
|
|
| 22 |
|
| 23 |
To pull the model via API:
|
| 24 |
|