Instructions to use llmware/slim-sa-ner-phi-3-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-sa-ner-phi-3-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-sa-ner-phi-3-gguf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use llmware/slim-sa-ner-phi-3-gguf 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-phi-3-gguf # Run inference directly in the terminal: llama cli -hf llmware/slim-sa-ner-phi-3-gguf
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-phi-3-gguf # Run inference directly in the terminal: llama cli -hf llmware/slim-sa-ner-phi-3-gguf
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf llmware/slim-sa-ner-phi-3-gguf # Run inference directly in the terminal: ./llama-cli -hf llmware/slim-sa-ner-phi-3-gguf
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf llmware/slim-sa-ner-phi-3-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf llmware/slim-sa-ner-phi-3-gguf
Use Docker
docker model run hf.co/llmware/slim-sa-ner-phi-3-gguf
- LM Studio
- Jan
- Ollama
How to use llmware/slim-sa-ner-phi-3-gguf with Ollama:
ollama run hf.co/llmware/slim-sa-ner-phi-3-gguf
- Unsloth Desktop
- Docker Model Runner
How to use llmware/slim-sa-ner-phi-3-gguf with Docker Model Runner:
docker model run hf.co/llmware/slim-sa-ner-phi-3-gguf
- Lemonade
How to use llmware/slim-sa-ner-phi-3-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-sa-ner-phi-3-gguf
Run and chat with the model
lemonade run user.slim-sa-ner-phi-3-gguf-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
-
# SLIM-SA_NER-
|
| 6 |
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 8 |
|
| 9 |
|
| 10 |
-
**slim-sa-ner-
|
| 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 |
|
|
@@ -23,7 +24,7 @@ The intent of SLIMs is to forge a middle-ground between traditional encoder-base
|
|
| 23 |
To pull the model via API:
|
| 24 |
|
| 25 |
from huggingface_hub import snapshot_download
|
| 26 |
-
snapshot_download("llmware/slim-sa-ner-
|
| 27 |
|
| 28 |
|
| 29 |
Load in your favorite GGUF inference engine, or try with llmware as follows:
|
|
@@ -31,14 +32,14 @@ Load in your favorite GGUF inference engine, or try with llmware as follows:
|
|
| 31 |
from llmware.models import ModelCatalog
|
| 32 |
|
| 33 |
# to load the model and make a basic inference
|
| 34 |
-
model = ModelCatalog().load_model("slim-sa-ner-
|
| 35 |
response = model.function_call(text_sample)
|
| 36 |
|
| 37 |
# this one line will download the model and run a series of tests
|
| 38 |
-
ModelCatalog().tool_test_run("slim-sa-ner-
|
| 39 |
|
| 40 |
|
| 41 |
-
Note: please review [**config.json**](https://huggingface.co/llmware/slim-sa-ner-
|
| 42 |
|
| 43 |
|
| 44 |
## Model Card Contact
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
inference: false
|
| 4 |
---
|
| 5 |
|
| 6 |
+
# SLIM-SA_NER-PHI-3-GGUF
|
| 7 |
|
| 8 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
|
| 10 |
|
| 11 |
+
**slim-sa-ner-phi-3-gguf** 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.
|
| 12 |
|
| 13 |
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.:
|
| 14 |
|
|
|
|
| 24 |
To pull the model via API:
|
| 25 |
|
| 26 |
from huggingface_hub import snapshot_download
|
| 27 |
+
snapshot_download("llmware/slim-sa-ner-phi-3-gguf", local_dir="/path/on/your/machine/", local_dir_use_symlinks=False)
|
| 28 |
|
| 29 |
|
| 30 |
Load in your favorite GGUF inference engine, or try with llmware as follows:
|
|
|
|
| 32 |
from llmware.models import ModelCatalog
|
| 33 |
|
| 34 |
# to load the model and make a basic inference
|
| 35 |
+
model = ModelCatalog().load_model("slim-sa-ner-phi-3-gguf")
|
| 36 |
response = model.function_call(text_sample)
|
| 37 |
|
| 38 |
# this one line will download the model and run a series of tests
|
| 39 |
+
ModelCatalog().tool_test_run("slim-sa-ner-phi-3-gguf", verbose=True)
|
| 40 |
|
| 41 |
|
| 42 |
+
Note: please review [**config.json**](https://huggingface.co/llmware/slim-sa-ner-phi-3-gguf/blob/main/config.json) in the repository for prompt wrapping information, details on the model, and full test set.
|
| 43 |
|
| 44 |
|
| 45 |
## Model Card Contact
|