Instructions to use VGreatVig07/phi3-mini-Docuanalyzer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use VGreatVig07/phi3-mini-Docuanalyzer with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="VGreatVig07/phi3-mini-Docuanalyzer", filename="phi3-finetuned.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 VGreatVig07/phi3-mini-Docuanalyzer with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf VGreatVig07/phi3-mini-Docuanalyzer # Run inference directly in the terminal: llama-cli -hf VGreatVig07/phi3-mini-Docuanalyzer
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf VGreatVig07/phi3-mini-Docuanalyzer # Run inference directly in the terminal: llama-cli -hf VGreatVig07/phi3-mini-Docuanalyzer
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 VGreatVig07/phi3-mini-Docuanalyzer # Run inference directly in the terminal: ./llama-cli -hf VGreatVig07/phi3-mini-Docuanalyzer
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 VGreatVig07/phi3-mini-Docuanalyzer # Run inference directly in the terminal: ./build/bin/llama-cli -hf VGreatVig07/phi3-mini-Docuanalyzer
Use Docker
docker model run hf.co/VGreatVig07/phi3-mini-Docuanalyzer
- LM Studio
- Jan
- Ollama
How to use VGreatVig07/phi3-mini-Docuanalyzer with Ollama:
ollama run hf.co/VGreatVig07/phi3-mini-Docuanalyzer
- Unsloth Studio new
How to use VGreatVig07/phi3-mini-Docuanalyzer 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 VGreatVig07/phi3-mini-Docuanalyzer 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 VGreatVig07/phi3-mini-Docuanalyzer to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for VGreatVig07/phi3-mini-Docuanalyzer to start chatting
- Docker Model Runner
How to use VGreatVig07/phi3-mini-Docuanalyzer with Docker Model Runner:
docker model run hf.co/VGreatVig07/phi3-mini-Docuanalyzer
- Lemonade
How to use VGreatVig07/phi3-mini-Docuanalyzer with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull VGreatVig07/phi3-mini-Docuanalyzer
Run and chat with the model
lemonade run user.phi3-mini-Docuanalyzer-{{QUANT_TAG}}List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf VGreatVig07/phi3-mini-Docuanalyzer# Run inference directly in the terminal:
llama-cli -hf VGreatVig07/phi3-mini-DocuanalyzerUse 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 VGreatVig07/phi3-mini-Docuanalyzer# Run inference directly in the terminal:
./llama-cli -hf VGreatVig07/phi3-mini-DocuanalyzerBuild 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 VGreatVig07/phi3-mini-Docuanalyzer# Run inference directly in the terminal:
./build/bin/llama-cli -hf VGreatVig07/phi3-mini-DocuanalyzerUse Docker
docker model run hf.co/VGreatVig07/phi3-mini-Docuanalyzerπ§ Phi-3 Mini Fine-Tuned (GGUF) β Legal Assistant
This is a LoRA fine-tuned version of microsoft/phi-3-mini-4k-instruct converted to GGUF format for use with llama.cpp, Ollama, or compatible runtimes.
It was trained on legal documents to act as a context-aware legal assistant that can answer questions from uploaded contracts and policies.
π§ Model Details
- Base model:
microsoft/phi-3-mini-4k-instruct - Fine-tuned with: LoRA (PEFT) + TRLL SFTTrainer
- Converted to GGUF using:
convert_hf_to_gguf.pyfromllama.cpp
π How to Use
π With llama.cpp
./main -m phi3-finetuned.gguf -p "What rights does this contract give me?"
π With π With Python + llama-cpp-python
from llama_cpp import Llama
llm = Llama(model_path="phi3-finetuned.gguf")
output = llm("Summarize the terms of this agreement.")
print(output)
π With π€ With Ollama (if merged)
ollama create phi3-legal -f Modelfile
ollama run phi3-legal
π§Ύ Use Cases
This fine-tuned model is intended for legal document analysis and Q&A applications.
Example questions it can answer:
- "Can this agreement be terminated without prior notice?"
- "Do I have refund rights under this policy?"
- "What are the obligations mentioned in clause 3?"
- "Is there an arbitration clause in this contract?"
It is designed to provide helpful, non-legal-advice explanations by summarizing and interpreting clauses based on the uploaded text context.
π Files
| File | Description |
|---|---|
phi3-finetuned.gguf |
The GGUF format model file for inference |
README.md |
Description and usage guide (this file) |
Modelfile (optional) |
Ollama model recipe (if you use Ollama) |
π§ Credits
- Project: DocuAnalyzer AI
- Author: Vighnesh M S (@VGreatVig07)
- Fine-tuning: Performed using Hugging Face
transformers,trl, andPEFT(LoRA) - Conversion: Model converted to
.ggufformat usingllama.cpp'sconvert_hf_to_gguf.py
Thanks to open-source contributions from:
- Microsoft (Phi-3 base model)
- Hugging Face ecosystem
- llama.cpp team
- Downloads last month
- 3
We're not able to determine the quantization variants.
Model tree for VGreatVig07/phi3-mini-Docuanalyzer
Base model
microsoft/Phi-3-mini-4k-instruct
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf VGreatVig07/phi3-mini-Docuanalyzer# Run inference directly in the terminal: llama-cli -hf VGreatVig07/phi3-mini-Docuanalyzer