doraking/nihongo-legal-finance-autoscientist-data
Viewer • Updated • 6 • 28
How to use doraking/adaption-nihongo-legal-finance-qa with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mixtral-8x7B-Instruct-v0.1")
model = PeftModel.from_pretrained(base_model, "doraking/adaption-nihongo-legal-finance-qa")This repository contains LoRA adapter weights trained with Adaption AutoScientist for Japanese legal and finance expert QA.
The adapter is intended for Japanese instruction following where the assistant explains legal and financial concepts, preserves uncertainty, avoids fabricated authority, and separates general explanation from professional advice.
mistralai/Mixtral-8x7B-Instruct-v0.1from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "mistralai/Mixtral-8x7B-Instruct-v0.1"
adapter = "doraking/adaption-nihongo-legal-finance-qa"
tokenizer = AutoTokenizer.from_pretrained(adapter)
model = AutoModelForCausalLM.from_pretrained(base, device_map="auto")
model = PeftModel.from_pretrained(model, adapter)
This adapter is for educational and benchmark use. Legal and financial outputs should not be treated as professional legal, financial, tax, or investment advice. Users should verify high-stakes answers with qualified professionals.
Base model
mistralai/Mixtral-8x7B-v0.1