Downloads · 30 days
30
4% of all-time downloads
Abogatic/qwen35-27b-legal-sft-es-v1-merged
qwen35-27b-legal-sft-es-v1-merged is a text generation model from Abogatic. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Merged full model derived from a LoRA fine-tuning on Qwen/Qwen3.5-27B, specialized for conservative Spanish legal assistant behavior over statutes and case law.
Downloads · 30 days
30
4% of all-time downloads
All-time downloads
695
Public
Parameters
27.4B
54.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors54.7 GB · 100%
From the Hugging Face model README
Merged full model derived from a LoRA fine-tuning on Qwen/Qwen3.5-27B, specialized for conservative Spanish legal assistant behavior over statutes and case law.
This repository contains merged weights and can be served directly as a standalone model.
The fine-tuning objective was behavioral, not encyclopedic. The target model should:
The model is meant for RAG-style systems over Spanish legal sources, especially where the retrieved context may include:
The training corpus was built from anonymized Spanish Supreme Court judgments and transformed into chat-format SFT examples focused on:
The dataset was designed to reduce these failure modes:
Qwen/Qwen3.5-27Bgold_plus_reviewed_behavior_27b_v1568429323384.78 seconds3.51160.436r: 32320.0noneq_projk_projv_projo_projgate_projup_projdown_projBest fit:
Recommended guardrails:
no consta when the context is partial;This model is not a substitute for:
It should not be used to assert current legal validity unless the current statutory text is explicitly present in the retrieved context.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "Abogatic/qwen35-27b-legal-sft-es-v1-merged"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model.eval()
vllm serve Abogatic/qwen35-27b-legal-sft-es-v1-merged \
--trust-remote-code \
--generation-config vllm \
--default-chat-template-kwargs '{"enable_thinking": false}'
This merged model was trained from anonymized judicial material transformed into behavioral SFT examples. Review the legal and organizational requirements applicable to the source corpus before redistribution or downstream commercial use.
Use remains subject to the base model license and the legal constraints of the training corpus.