Instructions to use llmware/slim-boolean-phi-3-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-boolean-phi-3-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-boolean-phi-3-gguf", dtype="auto") - llama-cpp-python
How to use llmware/slim-boolean-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-boolean-phi-3-gguf", filename="slim-boolean.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use llmware/slim-boolean-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-boolean-phi-3-gguf # Run inference directly in the terminal: llama cli -hf llmware/slim-boolean-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-boolean-phi-3-gguf # Run inference directly in the terminal: llama cli -hf llmware/slim-boolean-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-boolean-phi-3-gguf # Run inference directly in the terminal: ./llama-cli -hf llmware/slim-boolean-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-boolean-phi-3-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf llmware/slim-boolean-phi-3-gguf
Use Docker
docker model run hf.co/llmware/slim-boolean-phi-3-gguf
- LM Studio
- Jan
- Ollama
How to use llmware/slim-boolean-phi-3-gguf with Ollama:
ollama run hf.co/llmware/slim-boolean-phi-3-gguf
- Unsloth Studio
How to use llmware/slim-boolean-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-boolean-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-boolean-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-boolean-phi-3-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use llmware/slim-boolean-phi-3-gguf with Docker Model Runner:
docker model run hf.co/llmware/slim-boolean-phi-3-gguf
- Lemonade
How to use llmware/slim-boolean-phi-3-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-boolean-phi-3-gguf
Run and chat with the model
lemonade run user.slim-boolean-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-boolean-
|
| 3 |
-
"model_ft_base": "slim-boolean",
|
| 4 |
"quantization": "4Q_K_M GGUF",
|
| 5 |
-
"model_base": "
|
| 6 |
-
"model_type": "
|
| 7 |
-
"tokenizer": "llmware/slim-boolean",
|
| 8 |
-
"parameters": "
|
| 9 |
-
"description": "slim-boolean is a function-calling model, fine-tuned to output structured dictionaries with binary boolean answer keys of 'yes' or 'no' with optional (explain) parameter that provides an 'explanation' key",
|
| 10 |
"prompt_wrapper": "human_bot",
|
| 11 |
"prompt_format": "<human> {context_passage} <boolean> {yes_no_question} (explain) </boolean>\n<bot>:",
|
| 12 |
"output_format": "{'answer': ['yes'], 'explanation': ['reason for answer']",
|
| 13 |
"primary_keys": ["answer", "explanation"],
|
| 14 |
"output_values": ["boolean classification with optional explanation"],
|
| 15 |
"publisher": "llmware",
|
| 16 |
-
"release_date": "
|
| 17 |
"test_set": [
|
| 18 |
|
| 19 |
{"context": "The Nasdaq Composite and the S&P 500 each rose for the fifth day in a row Wednesday. The S&P increased by a minuscule 0.08% but was still able to secure a new all-time closing record. The Nasdaq was led by a broader tech rally and finished the day 0.36% higher. The Dow missed out on the day’s rally and was dragged down by declines of more than 2% in Verizon and 3M, which each reported earnings on Tuesday. Netflix, meanwhile, soared after its Tuesday earnings report and finished the day with gains of more than 10%. Follow live market updates.",
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_name": "slim-boolean-phi-3-gguf",
|
| 3 |
+
"model_ft_base": "slim-boolean-phi-3",
|
| 4 |
"quantization": "4Q_K_M GGUF",
|
| 5 |
+
"model_base": "microsoft/phi-3",
|
| 6 |
+
"model_type": "phi3",
|
| 7 |
+
"tokenizer": "llmware/slim-boolean-phi-3",
|
| 8 |
+
"parameters": "3.8 billion",
|
| 9 |
+
"description": "slim-boolean-phi-3-gguf is a function-calling model, fine-tuned to output structured dictionaries with binary boolean answer keys of 'yes' or 'no' with optional (explain) parameter that provides an 'explanation' key",
|
| 10 |
"prompt_wrapper": "human_bot",
|
| 11 |
"prompt_format": "<human> {context_passage} <boolean> {yes_no_question} (explain) </boolean>\n<bot>:",
|
| 12 |
"output_format": "{'answer': ['yes'], 'explanation': ['reason for answer']",
|
| 13 |
"primary_keys": ["answer", "explanation"],
|
| 14 |
"output_values": ["boolean classification with optional explanation"],
|
| 15 |
"publisher": "llmware",
|
| 16 |
+
"release_date": "august 2024",
|
| 17 |
"test_set": [
|
| 18 |
|
| 19 |
{"context": "The Nasdaq Composite and the S&P 500 each rose for the fifth day in a row Wednesday. The S&P increased by a minuscule 0.08% but was still able to secure a new all-time closing record. The Nasdaq was led by a broader tech rally and finished the day 0.36% higher. The Dow missed out on the day’s rally and was dragged down by declines of more than 2% in Verizon and 3M, which each reported earnings on Tuesday. Netflix, meanwhile, soared after its Tuesday earnings report and finished the day with gains of more than 10%. Follow live market updates.",
|