Mistral 7B Patent Claim Drafting
Published by @claim_drafter · Community adapter
Independent and dependent patent claim drafting for utility patents. Trained on USPTO granted patents across software, hardware, and chemistry domains. Always review with a registered patent attorney.
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-patent-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