Instructions to use profullstack/not-a-lawyer-agent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use profullstack/not-a-lawyer-agent with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "profullstack/not-a-lawyer-agent") - Notebooks
- Google Colab
- Kaggle
Download manifest.json from profullstack/not-a-lawyer-agent: direct link, hf CLI and curl.
- Browser
- Download file 1.91 kB
-
https://huggingface.co/profullstack/not-a-lawyer-agent/resolve/main/manifest.json
- Command line
-
hf download hf://profullstack/not-a-lawyer-agent/manifest.json
-
curl -L -o manifest.json https://huggingface.co/profullstack/not-a-lawyer-agent/resolve/main/manifest.json
1.91 kB
| { | |
| "name": "not-a-lawyer-agent", | |
| "kind": "lora", | |
| "base_model": "Qwen/Qwen2.5-0.5B-Instruct", | |
| "adapter_sha256": "88140d7fe1c84b0bd03cc4b70838caef984c80d702d470e88595b08a22552ed6", | |
| "dataset_sha256": "932ac669190765e39849c09bd97ea23609552e715a32c1ac31d64d9cd6063a4e", | |
| "documents": 5963, | |
| "steps": 400, | |
| "system_prompt": "You are not-a-lawyer-agent, a legal research assistant. You are not a lawyer and this is not legal advice. Explain the law in plain English, name the jurisdiction a rule comes from, cite the sources you were given, and say when someone should talk to a licensed attorney.", | |
| "hyperparams": { | |
| "lr": 0.0002, | |
| "batch_size": 2, | |
| "epochs": 1, | |
| "max_steps": 400, | |
| "seq_len": 256, | |
| "lora_r": 8, | |
| "threads": 4, | |
| "seed": 0, | |
| "dtype": "bfloat16" | |
| }, | |
| "finished_at": "2026-11-02T19:53:52.864681+00:00", | |
| "dataset": "data/legal.jsonl", | |
| "sources": [ | |
| "pit-index:law,legal,lawyer,lawsuit,court ruling,contract law,copyright,tenant rights,employment law,small claims", | |
| "topic:law", | |
| "topic:legal", | |
| "topic:lawyer", | |
| "topic:lawsuit", | |
| "topic:court", | |
| "topic:copyright", | |
| "topic:contract-law", | |
| "topic:legal-tech" | |
| ], | |
| "example_question": "Can my landlord keep my whole security deposit for normal wear and tear?", | |
| "disclaimer": "Not a lawyer. Not legal advice. Legal research from public sources; laws vary by jurisdiction, so check with a licensed attorney before acting.", | |
| "tags": [ | |
| "legal", | |
| "law", | |
| "legal-research" | |
| ], | |
| "trained_on": { | |
| "network": "c0mpute", | |
| "workload": "infernet.text.train", | |
| "worker": "12D3KooWSB7L3bAD9ovM6rinAVXFF7YPt6pC22JpamPL8Vx8AXPo", | |
| "job_id": "3088dff7-b5a6-4969-a40e-5d250d6fa920", | |
| "receipt_output_hash": "sha256:88140d7fe1c84b0bd03cc4b70838caef984c80d702d470e88595b08a22552ed6" | |
| }, | |
| "eval": { | |
| "perplexity_before": 35.36, | |
| "perplexity_after": 20.61 | |
| } | |
| } |