sairamn/in-abs-judgement-summary-formatted
Viewer • Updated • 7.03k • 19 • 1
How to use sairamn/Phi3-Legal-Finetuned with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="sairamn/Phi3-Legal-Finetuned", filename="Phi-3.1-Legal_Finetuned.gguf", )
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)How to use sairamn/Phi3-Legal-Finetuned with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf sairamn/Phi3-Legal-Finetuned # Run inference directly in the terminal: llama-cli -hf sairamn/Phi3-Legal-Finetuned
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf sairamn/Phi3-Legal-Finetuned # Run inference directly in the terminal: llama-cli -hf sairamn/Phi3-Legal-Finetuned
# 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 sairamn/Phi3-Legal-Finetuned # Run inference directly in the terminal: ./llama-cli -hf sairamn/Phi3-Legal-Finetuned
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 sairamn/Phi3-Legal-Finetuned # Run inference directly in the terminal: ./build/bin/llama-cli -hf sairamn/Phi3-Legal-Finetuned
docker model run hf.co/sairamn/Phi3-Legal-Finetuned
How to use sairamn/Phi3-Legal-Finetuned with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "sairamn/Phi3-Legal-Finetuned"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "sairamn/Phi3-Legal-Finetuned",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/sairamn/Phi3-Legal-Finetuned
How to use sairamn/Phi3-Legal-Finetuned with Ollama:
ollama run hf.co/sairamn/Phi3-Legal-Finetuned
How to use sairamn/Phi3-Legal-Finetuned with Unsloth Studio:
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 sairamn/Phi3-Legal-Finetuned to start chatting
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 sairamn/Phi3-Legal-Finetuned to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for sairamn/Phi3-Legal-Finetuned to start chatting
How to use sairamn/Phi3-Legal-Finetuned with Docker Model Runner:
docker model run hf.co/sairamn/Phi3-Legal-Finetuned
How to use sairamn/Phi3-Legal-Finetuned with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sairamn/Phi3-Legal-Finetuned
lemonade run user.Phi3-Legal-Finetuned-{{QUANT_TAG}}lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)This is a fine-tuned version of the Phi-3 Mini model for legal text generation tasks.
You can load the model using Hugging Face Transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "sairamn/Phi3-Legal-Finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
If you use this model, please cite accordingly.
We're not able to determine the quantization variants.
Base model
microsoft/Phi-3-mini-128k-instruct
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="sairamn/Phi3-Legal-Finetuned", filename="Phi-3.1-Legal_Finetuned.gguf", )