Chinese legal LLM for professional legal consultation
Top 41.1% on sourcepulse
LexiLaw is a fine-tuned Chinese legal large language model based on ChatGLM-6B, designed to provide professional legal consultation and share expertise in domain-specific LLM fine-tuning. It aims to assist legal professionals, students, and the general public with accurate and reliable legal advice, while fostering community development of similar specialized models.
How It Works
LexiLaw is fine-tuned on a diverse dataset combining general domain data (BELLE 1.5M), legal Q&A, legal statutes, reference books, and legal documents (like judgments). This multi-faceted approach, including the use of LawGPT_zh and Lawyer LLaMA datasets, prevents overfitting and enhances the model's ability to understand natural language and provide comprehensive legal interpretations. The project also offers a demo integrating knowledge base augmentation via Chinese-LangChain.
Quick Start & Requirements
pip install -r requirements.txt
./model
directory.python inference_method.py
for command-line interaction.demo/
, install dependencies, download text2vec model to demo/text2vec/
, and encoded knowledge bases to demo/cache/
. Run python main.py
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
4 months ago
1 day