Mistral 7B Legal Drafting
Published by @legaltech_ai · Community adapter
Trained on a curated corpus of open-source contracts and model legal clauses. Generates NDA, SaaS agreement, and employment contract sections. Always review with a qualified lawyer.
Usage
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
base = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
model = PeftModel.from_pretrained(base, "modelforgelab/mistral-7b-legal-draft-lora")
inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Compatibility
- transformers>=4.38
- vLLM
You might also like
text-generation
public
Mistral 7B Interview Coach
mistralai/Mistral-7B-Instruct-v0.3
text-generation
public
Mistral 7B RAG Instruct
mistralai/Mistral-7B-Instruct-v0.3
text-generation
public
Mistral 7B Education Tutor
mistralai/Mistral-7B-Instruct-v0.3
text-generation
members
Mistral-7B JSON Extractor
mistralai/Mistral-7B-Instruct-v0.3