#92 · Primary category: Foundation Models

lawyer-llama

alpaca large-language-models legal-ai llama llm nlp plm pretrained-language-model pretrained-models

中文法律LLaMA (LLaMA for Chinese legel domain)

Project last updated:08/28/24

GitHub Stars

1.0K

Forks

132

Contributors

4

License

Apache-2.0

Why we included this project

Chinese-language legal applications rarely have open, domain-tuned models to build on, and this repository provides exactly that: LLaMA weights trained specifically for the legal domain. The training started with continual pretraining over a large corpus of statutes and court judgments, so the model holds a working grasp of China's civil, criminal, administrative, and procedural law, and then moved to instruction tuning on bar exam question explanations and lawyer-style consultation replies generated by GPT-3.5 and GPT-4. The datasets used are released alongside the weights, including per-question analyses of national bar exam problems and statute-grounded consultation dialogues, so you can reuse or adapt the recipe for your own legal assistant. The v2 model adds a marriage-law retrieval module, and the README documents automatic evaluation against a family-law consultation benchmark, giving a concrete sense of how output quality compares with general-purpose models.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category