Downloads · 30 days
0
paraluxdotai/compliance-7b-lora
compliance-7b-lora is a machine learning model from paraluxdotai. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuned Mistral-7B-Instruct-v0.3 for financial compliance rule generation.
Downloads · 30 days
0
Access
Public
Updated Jan 26, 2026
Repo size
168 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 97%
From the Hugging Face model README
Fine-tuned Mistral-7B-Instruct-v0.3 for financial compliance rule generation.
This model is trained to:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load base model
model = AutoModelForCausalLM.from_pretrained(
"mistralai/Mistral-7B-Instruct-v0.3",
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(model, "paraluxdotai/compliance-7b-lora")
tokenizer = AutoTokenizer.from_pretrained("paraluxdotai/compliance-7b-lora")
# Generate
prompt = """<s>[INST] You are Paralux Compliance Assistant, a specialized AI for financial regulatory compliance.
Convert this requirement to a compliance rule: All financial documents must be retained for 7 years [/INST]"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Parameter | Value |
|---|---|
| Base model | mistralai/Mistral-7B-Instruct-v0.3 |
| LoRA rank (r) | 16 |
| LoRA alpha | 32 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Training examples | 14,918 |
| Evaluation examples | 1,658 |
| Epochs | 3 |
| Final eval loss | 0.084 |
| Learning rate | 1e-4 |
| Batch size | 16 (4 × 4 gradient accumulation) |
| Precision | bfloat16 |
This model is designed for:
This LoRA adapter is released under the Apache 2.0 license, matching the base Mistral model.
@misc{paralux-compliance-7b-lora,
author = {Paralux},
title = {Paralux-Compliance-7B-LoRA: Fine-tuned Mistral for Financial Compliance},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/paraluxdotai/compliance-7b-lora}
}