Instructions to use christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf", filename="phi3-mini-instruct-pii-redactor-q4_k_m.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
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 christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
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 christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
Use Docker
docker model run hf.co/christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
- Ollama
How to use christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf with Ollama:
ollama run hf.co/christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
- Unsloth Studio
How to use christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-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 christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-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 christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf to start chatting
- Docker Model Runner
How to use christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf with Docker Model Runner:
docker model run hf.co/christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
- Lemonade
How to use christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf:Q4_K_M
Run and chat with the model
lemonade run user.phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf-Q4_K_M
List all available models
lemonade list
β‘ Phi-3 Mini Instruct Redactor - GGUF (Q4_K_M)
This is a GGUF-format, Q4_K_M quantized version of phi3-mini-4k-instruct-pii-redactor, optimized for local inference with llama.cpp and other GGUF-compatible tools.
The model was LoRA-finetuned for redaction/instruction tasks and fully merged before conversion and quantization.
π Format & Details
- Model Base:
microsoft/Phi-3-mini-4k-instruct - LoRA Merged: β
- GGUF Format: β
- Quantization: Q4_K_M (4-bit grouped, high quality)
- File:
phi3-mini-instruct-redactor-q4km.gguf - Model Size: ~2β3 GB
π» Usage with llama.cpp
./llama-cli.exe -m phi3-mini-instruct-redactor-q4km.gguf --prompt "John Doe, born in 1985, lives in Berlin." -n 128 -ngl 100
β Works with:
- llama.cpp (CUDA build)
- text-generation-webui
- KoboldCpp
- llamacpp-python
- LM Studio
π Dataset Attribution
This model was fine-tuned using a modified version of the NinjaMasker-PII-Redaction Dataset by King-Harry, which is licensed under the Apache 2.0 License. The dataset was reformatted to suit the training requirements of this model.
β οΈ Disclaimer:
This model is provided "as-is" without any warranties or guarantees regarding its performance, accuracy, or reliability in detecting and redacting personally identifiable information (PII) or other sensitive data.
The model may fail to identify or fully redact all forms of PII, depending on input format, context, or model limitations.
Use of this model is at your own risk.
The authors and maintainers of this model accept no responsibility or liability for any data leakage, compliance violations, or security breaches that may occur as a result of using this model.
π License
MIT License
- Downloads last month
- 37
4-bit
Model tree for christopherheuer/phi3-mini-4k-instruct-pii-redactor-q4_k_m-gguf
Base model
microsoft/Phi-3-mini-4k-instruct