1from olaverse.llm import LegalPeace
2
3model = LegalPeace() # defaults to "olaverse/legal-peace-v1.0"
4model.load() # requires GPU + unsloth
5
6prompt = "Analyze this clause: 'All disputes shall be resolved through binding arbitration in Delaware.' What are the key implications?"
7response = model.generate(prompt, max_new_tokens=300, temperature=0.7)
8print(response)
1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="olaverse/legal-peace-v1.0",
5 max_seq_length=2048,
6 dtype=None,
7 load_in_4bit=True,
8)
9
10FastLanguageModel.for_inference(model)
11
12prompt = "Analyze this clause: 'All disputes shall be resolved through binding arbitration in Delaware.'"
13
14inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
15outputs = model.generate(**inputs, max_new_tokens=300, temperature=0.7)
16print(tokenizer.decode(outputs[0], skip_special_tokens=True))
✅ Contract clause analysis and review
✅ Legal research assistance
✅ Evidence evaluation
✅ Case outcome prediction
✅ Legal Q&A