Run this model with HF Jobs

Run Zesearch/Zevo-Legal-L1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Zesearch/Zevo-Legal-L1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Zesearch/Zevo-Legal-L1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Zesearch/Zevo-Legal-L1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Zesearch/Zevo-Legal-L1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Zevo-Legal-L1

Zevo-Legal-L1 is a legal model produced by Zevo through autonomous model evolution at autonomy level L1. Execution details are chosen by Zevo; the training-data, method, and base-model choices are user-specified.

Explore the public run ยท Zevo collection ยท Legal collection

Model information

Field Value
Base model meta-llama/Llama-3.1-8B-Instruct
Release format LoRA adapter
Selected iteration 3
Selected-stage training method SFT
Run ID 95bff91d-5d65-4b04-8e60-fa79bae5c5fc

This is the run's retained, validation-selected checkpoint, which need not be its last trained iteration. Test results were evaluated independently and were not used for checkpoint selection.

Results

Scores below are percentages; suite averages give equal weight to each benchmark within a split. Validation and Test use different evaluation sets and should not be compared as interchangeable scores.

Metric Score (%)
Validation suite average 50.80
Test suite average 52.41
Initial baseline Test (paper comparison) 51.27
Human Ref. Test (paper comparison) 48.63

The baseline and Human Ref. comparison follows the paper tables. Shared initial-model baselines are averaged across their reference evaluations; the flagged Medicine L2 baseline is excluded. L4 uses its selected base model's baseline. Human Ref. denotes a human-designed training reference checkpoint, not human accuracy; comparisons may involve different base models.

Validation benchmarks

Benchmark Score (%)
CaseHOLD 60.96
MMLU-Law 56.47
MMLU-Pro-Law 34.97

Test benchmarks

Benchmark Score (%)
MMLU-Law 60.74
MMLU-Pro-Law 36.24
CaseHOLD 60.24

Loading example

Install recent versions of transformers, torch, accelerate and peft. This example illustrates loading and generation; benchmark scores require the run's evaluation protocol.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

repo_id = "Zesearch/Zevo-Legal-L1"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
base = AutoModelForCausalLM.from_pretrained(
    "meta-llama/Llama-3.1-8B-Instruct", revision="0e9e39f249a16976918f6564b8830bc894c89659", torch_dtype="auto", device_map="auto"
)
model = PeftModel.from_pretrained(base, repo_id)
model.eval()
messages = [
    {"role": "system", "content": "You are a legal expert assistant. You answer multiple-choice legal questions.\n\nFor each question, reason in IRAC form, briefly and in this order:\nIssue: the legal question presented.\nRule: the governing legal principle, doctrine, or standard.\nApplication: how the rule applies to the facts, and why the competing options are weaker.\nConclusion: the option that is correct.\n\nKeep the whole analysis concise and finish it. Then end your reply with a final line in exactly this form, and write nothing after it:\nFinal Answer: <letter>\n\n<letter> is the single letter label of the one best option."},
    {"role": "user", "content": "Please explain your answer to the following question."},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt", add_special_tokens=False).to(model.device)
with torch.inference_mode():
    outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Use the tokenizer and chat template included in this repository. The generation length above is illustrative, not the benchmark-specific output budget.

This repository contains the adapter, not a copy of the base weights. Load the exact base model listed above.

Built with Llama. Access to the base model requires accepting its upstream terms on Hugging Face.

Intended use and limitations

Released for research on autonomous model evolution. Scores describe the reported evaluation suite and do not establish reliability on arbitrary inputs. Outputs may be incorrect or biased. This model is not a substitute for professional legal judgment.

License and provenance

Use is subject to the applicable base-model license and terms linked above. The public run provides the experiment journal and training history. This release contains inference weights, tokenizer/configuration files, and evaluation metadata; it excludes optimizer state and internal execution logs.

The adapter base revision is 0e9e39f249a16976918f6564b8830bc894c89659; its release configuration resolves the original local cache path to this public base-model revision.

Downloads last month
12
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Zesearch/Zevo-Legal-L1

Adapter
(3,133)
this model

Collection including Zesearch/Zevo-Legal-L1