Downloads · 30 days
17
10% of all-time downloads
Aquiles-ai/Harvey-9B-NVFP4
Harvey-9B-NVFP4 is a image-text-to-text model from Aquiles-ai. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
<div align="center" <h1Harvey-9B-NVFP4</h1 <img src="https://res.cloudinary.com/dmtomxyvm/image/upload/v1774842921/harveyu5lbso.png" alt="Aquiles-Image Logo" width="800"/ <p<strongA legal reasoning model specialized i…
Downloads · 30 days
17
10% of all-time downloads
All-time downloads
172
Public
Parameters
6.6B
18.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors9.4 GB · 100%
How the weights are stored.
U83.5B · 52%
From the Hugging Face model README
Harvey-9B is a fine-tuned language model designed to reason about Salvadoran law and jurisprudence. It was trained on a synthetic dataset derived from 3,311 real judicial resolutions from El Salvador's official jurisprudence portal, covering constitutional, criminal, family, civil, administrative, labor, and environmental law.
The model does not memorize legal articles; it learns judicial reasoning patterns: how Salvadoran courts identify legal issues, articulate applicable norms, reference jurisprudential criteria, and calibrate uncertainty. It is designed to be used alongside a tool that retrieves the actual legal texts, not as a standalone legal encyclopedia.
Note: You can find more details in the technical blog post we published, "Building Harvey: Legal AI Fine-Tuning for El Salvador". And this is a quantized version of the original model Aquiles-ai/Harvey-9B
Harvey-9B is designed for three types of users:
Citizens without legal knowledge — understanding what the law says about their situation, what rights they have, and what the general steps of a legal process look like. No technical jargon assumed.
Law students — reasoning about cases, articulating normative conflicts, citing exact sources with article and law, and explaining why a jurisprudential criterion applies or not to a specific case.
Lawyers — a starting point for fast legal research: "What criterion has the Sala established on X?", "Which laws apply to this case?". Not a replacement for professional judgment — a tool to accelerate it.
Every response follows a structured reasoning pattern extracted from real Salvadoran judicial resolutions:
CLEAR: Explicit law + consolidated jurisprudential criteriaINTERPRETATION: Law exists but requires interpretation, or criteria are not definitiveMANDATORY CONSULTATION: Irreversible consequences, disputed facts, or no consolidated Salvadoran jurisprudenceHarvey-9B is explicitly trained to refuse or flag:
vllm serve "Aquiles-ai/Harvey-9B-NVFP4" \
--served-model-name "Harvey-9B" \
--async-scheduling \
--host "0.0.0.0" \
--port 5500 \
--reasoning-parser "qwen3" \
--enable-auto-tool-choice \
--tool-call-parser "qwen3_coder" \
--api-key "your-api-key" \
--max-model-len 102400 \
--gpu-memory-utilization 0.90 \
--trust-remote-code
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:5500/v1",
api_key="your-api-key"
)
response = client.chat.completions.create(
model="Harvey-9B",
messages=[
{
"role": "user",
"content": "Un fiscal presentó un recurso de apelación contra la resolución que otorgó medidas cautelares sustitutivas, pero solo argumentó de forma vaga que la decisión era incorrecta sin señalar qué norma se violó. ¿Fue correcto que la Cámara declarara inadmisible ese recurso?"
}
],
temperature=0.3,
)
print(response.choices[0].message.content)
CLEAR / INTERPRETATION / MANDATORY CONSULTATION) is designed to flag these cases, but it is not infallible.The training corpus consists of public judicial resolutions. Names of litigants, lawyers, and judges present in source documents were anonymized both in the original portal (redacted with ****) and enforced at the synthetic data generation stage; no personally identifiable information appears in the training examples.
Harvey-9B is not intended to predict case outcomes, evaluate the quality of judicial decisions, or replace human legal judgment. Its purpose is to make Salvadoran jurisprudence more accessible and to accelerate legal research.
This model is released under the Apache 2.0 License.
The training data is derived from public judicial resolutions from El Salvador's official jurisprudence portal. Synthetic examples were generated for research and educational purposes.
Built by Fredy Rivera - Aquiles-ai