Instructions to use llmware/slim-ner-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-ner-tool with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-ner-tool", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use llmware/slim-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-ner-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-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-ner-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-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-ner-tool # Run inference directly in the terminal: ./build/bin/llama cli -hf llmware/slim-ner-tool
Use Docker
docker model run hf.co/llmware/slim-ner-tool
- Llama new
- LM Studio
- Jan
- Ollama
How to use llmware/slim-ner-tool with Ollama:
ollama run hf.co/llmware/slim-ner-tool
- Unsloth Desktop
- Docker Model Runner
How to use llmware/slim-ner-tool with Docker Model Runner:
docker model run hf.co/llmware/slim-ner-tool
- Lemonade
How to use llmware/slim-ner-tool with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-ner-tool
Run and chat with the model
lemonade run user.slim-ner-tool-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Upload config.json
Browse files- config.json +13 -1
config.json
CHANGED
|
@@ -1,3 +1,15 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_name": "slim-sentiment-tool",
|
| 3 |
+
"quantization": "4Q_K_M GGUF",
|
| 4 |
+
"model_base": "tiny-llama",
|
| 5 |
+
"model_type": "llama",
|
| 6 |
+
"parameters": "1.1 billion",
|
| 7 |
+
"description": "slim-sentiment is a function-calling model, fine-tuned to output structured json dictionaries generally with one key 'sentiment', and a value consisting of a list, usually with a single string value - positive, negative or neutral",
|
| 8 |
+
"prompt_wrapper": "human_bot",
|
| 9 |
+
"prompt_format": "<human> {context_passage} <classify> sentiment </classify>\n<bot>:",
|
| 10 |
+
"output_format": "{'sentiment': ['positive']}",
|
| 11 |
+
"primary_keys": ["sentiment"],
|
| 12 |
+
"output_values": ["positive", "negative", "neutral"],
|
| 13 |
+
"publisher": "llmware",
|
| 14 |
+
"release_date": "february 2024"
|
| 15 |
}
|