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", dtype="auto") - llama-cpp-python
How to use llmware/slim-sa-ner-phi-3-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="llmware/slim-sa-ner-phi-3-gguf", filename="slim-sa-ner.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use llmware/slim-sa-ner-phi-3-gguf with llama.cpp:
Install from brew
brew install llama.cpp # 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
Install from WinGet (Windows)
winget install llama.cpp # 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
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 Studio new
How to use llmware/slim-sa-ner-phi-3-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for llmware/slim-sa-ner-phi-3-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for llmware/slim-sa-ner-phi-3-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for llmware/slim-sa-ner-phi-3-gguf to start chatting
- 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
Update config.json
Browse files- config.json +8 -8
config.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
| 1 |
{
|
| 2 |
-
"model_name": "slim-sa-ner-
|
| 3 |
-
"model_ft_base": "slim-sa-ner",
|
| 4 |
"quantization": "4Q_K_M GGUF",
|
| 5 |
-
"model_base": "
|
| 6 |
-
"model_type": "
|
| 7 |
-
"tokenizer": "llmware/slim-sa-ner",
|
| 8 |
-
"parameters": "
|
| 9 |
-
"description": "slim-sa-ner is a function-calling model, fine-tuned to output structured dictionaries corresponding to sentiment and NER keys",
|
| 10 |
"prompt_wrapper": "human_bot",
|
| 11 |
"prompt_format": "<human> {context_passage} <classify> sentiment, people, organization, place </classify>\n<bot>:",
|
| 12 |
"output_format": "{dictionary consisting of sentiment, people, organization, and place keys}",
|
| 13 |
"primary_keys": ["sentiment, people, organization, place"],
|
| 14 |
"output_values": ["each key will have a value consisting of a list"],
|
| 15 |
"publisher": "llmware",
|
| 16 |
-
"release_date": "
|
| 17 |
"test_set": [
|
| 18 |
{
|
| 19 |
"context": "Citibank announced a reduction in its targets for economic growth in France and the UK last week in light of ongoing concerns about inflation and unemployment, especially in large employers such as Airbus.",
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_name": "slim-sa-ner-phi-3-gguf",
|
| 3 |
+
"model_ft_base": "slim-sa-ner-phi-3",
|
| 4 |
"quantization": "4Q_K_M GGUF",
|
| 5 |
+
"model_base": "microsoft/phi-3",
|
| 6 |
+
"model_type": "phi3",
|
| 7 |
+
"tokenizer": "llmware/slim-sa-ner-phi-3",
|
| 8 |
+
"parameters": "3.8 billion",
|
| 9 |
+
"description": "slim-sa-ner-phi-3-gguf is a function-calling model, fine-tuned to output structured dictionaries corresponding to sentiment and NER keys",
|
| 10 |
"prompt_wrapper": "human_bot",
|
| 11 |
"prompt_format": "<human> {context_passage} <classify> sentiment, people, organization, place </classify>\n<bot>:",
|
| 12 |
"output_format": "{dictionary consisting of sentiment, people, organization, and place keys}",
|
| 13 |
"primary_keys": ["sentiment, people, organization, place"],
|
| 14 |
"output_values": ["each key will have a value consisting of a list"],
|
| 15 |
"publisher": "llmware",
|
| 16 |
+
"release_date": "august 2024",
|
| 17 |
"test_set": [
|
| 18 |
{
|
| 19 |
"context": "Citibank announced a reduction in its targets for economic growth in France and the UK last week in light of ongoing concerns about inflation and unemployment, especially in large employers such as Airbus.",
|