├── LICENSE ├── README.md ├── assets ├── demo │ ├── Prototype_1.png │ └── demo.png └── logo │ └── logo.png ├── requirements.txt ├── resources └── legal_vocab.txt ├── src ├── data │ ├── example_instruction_train.json │ └── example_instruction_tune.json ├── finetune.py ├── generate.py ├── models │ ├── base_models │ │ └── .gitkeep │ └── lora_weights │ │ └── .gitkeep ├── outputs │ └── .gitkeep ├── scripts │ ├── finetune.sh │ ├── generate.sh │ └── train.sh ├── templates │ └── law_template.json ├── train_lora.py └── utils │ ├── __init__.py │ ├── callbacks.py │ ├── evaluate.py │ ├── merge.py │ └── prompter.py └── tools ├── clear_law.py └── merge_vocabulary.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/README.md -------------------------------------------------------------------------------- /assets/demo/Prototype_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/assets/demo/Prototype_1.png -------------------------------------------------------------------------------- /assets/demo/demo.png: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/logo/logo.png: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/requirements.txt -------------------------------------------------------------------------------- /resources/legal_vocab.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/resources/legal_vocab.txt -------------------------------------------------------------------------------- /src/data/example_instruction_train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/data/example_instruction_train.json -------------------------------------------------------------------------------- /src/data/example_instruction_tune.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/data/example_instruction_tune.json -------------------------------------------------------------------------------- /src/finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/finetune.py -------------------------------------------------------------------------------- /src/generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/generate.py -------------------------------------------------------------------------------- /src/models/base_models /.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/models/lora_weights /.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/outputs/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/scripts/finetune.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/scripts/finetune.sh -------------------------------------------------------------------------------- /src/scripts/generate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/scripts/generate.sh -------------------------------------------------------------------------------- /src/scripts/train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/scripts/train.sh -------------------------------------------------------------------------------- /src/templates/law_template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/templates/law_template.json -------------------------------------------------------------------------------- /src/train_lora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/train_lora.py -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/utils/callbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/utils/callbacks.py -------------------------------------------------------------------------------- /src/utils/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/utils/evaluate.py -------------------------------------------------------------------------------- /src/utils/merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/utils/merge.py -------------------------------------------------------------------------------- /src/utils/prompter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/src/utils/prompter.py -------------------------------------------------------------------------------- /tools/clear_law.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/tools/clear_law.py -------------------------------------------------------------------------------- /tools/merge_vocabulary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfontestad/Indian-LegalGPT/HEAD/tools/merge_vocabulary.py --------------------------------------------------------------------------------