SaulLM-7B: A pioneering Large Language Model for Law
Paper • 2403.03883 • Published • 93
How to use Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M
# 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 Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M
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 Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M
docker model run hf.co/Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M
How to use Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF with Ollama:
ollama run hf.co/Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M
How to use Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF with Docker Model Runner:
docker model run hf.co/Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M
How to use Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Akshully-InnOcent/Saul-7B-Instruct-v1-GGUF:Q4_K_M
lemonade run user.Saul-7B-Instruct-v1-GGUF-Q4_K_M
lemonade list
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Legal domain language model for case analysis and legal document processing.
| File | Size | Description |
|---|---|---|
Saul-Instruct-v1.Q4_K_M.gguf |
4.37 GB | 4-bit quantized model (recommended) |
.gguf filellama-2./main -ngl 35 -m Saul-Instruct-v1.Q4_K_M.gguf --color -c 32768 --temp 0.7 --repeat_penalty 1.1
from llama_cpp import Llama
llm = Llama(
model_path="./Saul-Instruct-v1.Q4_K_M.gguf",
n_ctx=32768,
n_threads=8,
n_gpu_layers=35
)
@misc{colombo2024saullm7b,
title={SaulLM-7B: A pioneering Large Language Model for Law},
author={Pierre Colombo and Telmo Pessoa Pires and Malik Boudiaf and Dominic Culver and Rui Melo and Caio Corro and Andre F. T. Martins and Fabrizio Esposito and Vera Lúcia Raposo and Sofia Morgado and Michael Desa},
year={2024},
eprint={2403.03883},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
4-bit