JusticeAI-LawLLM 🇮🇳

JusticeAI is a fine-tuned Indian legal language model built on Llama 3.2 3B and optimized for answering questions related to Indian law, constitutional provisions, legal terminology, case summaries, and statutory interpretation.

Model Overview

  • Base Model: Llama 3.2 3B
  • Fine-Tuning Method: QLoRA (8-bit)
  • Domain: Indian Legal Knowledge
  • Language: English
  • Training Samples: 100,000
  • Max Sequence Length: 512 tokens
  • Effective Batch Size: 32
  • Epochs: 1
  • Trainable Parameters: 12.1M
  • Hardware: NVIDIA RTX 3080 12GB

Training Datasets

This model was trained using a mixture of publicly available Indian legal datasets:

  • bharatgenai/BhashaBench-Legal
  • NyayaAnumana 100K
  • nisaar/Lawyer_GPT_India
  • ninadn/indian-legal
  • viber1/indian-law-dataset

Intended Use

JusticeAI is designed for:

  • Legal education
  • Law student assistance
  • Understanding Indian statutes
  • Legal terminology explanations
  • Constitutional law learning
  • Legal research assistance

Not Intended For

This model should NOT be used for:

  • Legal advice
  • Court submissions
  • Professional legal opinions
  • Compliance decisions
  • High-risk legal situations

Always consult a qualified lawyer before acting on legal information.

Training Configuration

max_tokens: 512
batch_size: 4
gradient_accumulation: 8
effective_batch_size: 32
epochs: 1
quantization: 8-bit
finetuning: QLoRA

Training Summary

The model was fine-tuned on approximately 100,000 Indian legal samples using parameter-efficient QLoRA training.

Training loss decreased substantially during training, indicating successful adaptation to the legal domain.

Example

Question

What is Section 302 IPC?

Answer

Section 302 of the Indian Penal Code (IPC) deals with punishment for murder. It prescribes different punishments depending on whether death occurs immediately or after an interval and also provides a provision to reduce sentence in case of certain mitigating circumstances, but it does not explicitly allow commutation from capital punishment by life imprisonment without any discretion left under the law. However, there are provisions like section 376(2)(c), which allows commutation if no aggravating factors mentioned, though this requires judicial decision making.

Question

Who are you?

Answer

I am JusticeAI, an AI legal assistant trained on Indian law. I assist with questions related to IPC sections, BNS provisions, constitutional amendments, case summaries, and more. Remember, always consult a lawyer for official advice. What do you need help with today? - JusticeAI 2023.1 | Developed by Seven Healer. 7Healer.com All rights reserved. Please report any copyright issues to support@sevenhealer.com or DMCA Takedown Notice. Always verify the accuracy of information through official sources before using it in professional matters. No commercial use without explicit permission from Seven Healers.

Question

Explain Public Interest Litigation (PIL).

Answer

Provided a simplified explanation understandable to non-lawyers.

Question

What is BNS Section 103?

Answer

BNS Section (b) of the Bharatiya Nyaya Sanhita, 2023 deals with 'Exemptions' and grants exemptions to certain sections from its application. It specifically exempts those who were employed as air hostesses before the commencement of this Act in India or under any other law for the time being in force in that capacity on 1st January, 1995 from the provisions relating to sexual harassment at work. This exemption aims to protect individuals working in professions where they are subject to scrutiny by passengers but may not be easily identifiable as victims of sexual harassment. The provision ensures their rights and dignity while acknowledging their professional duties during flights. However, it does require them to report incidents of misconduct within a reasonable period after retirement. Thus, the section provides safeguards against misusing these exemptions and encourages reporting even if there's no immediate action required.

Question

Explain the Hindu Succession Act

Answer

The Hindu Successions Act, 1956 replaced the previous rules and provided for equal rights to all individuals in inheritance. It clarified that property is inherited by a deceased person's heirs jointly with their spouse if there are no children or grandchildren from any source; separately as a separate estate of the deceased husband wife where applicable; or solely by their legal representatives in case of death without issue or joint heirship with their surviving spouse. The Act also made provisions regarding intestacy cases, such as determining the status of joint property when one party dies before another. Overall, it aimed at providing more flexibility and clarity on inheritance laws among Hindus. However, its validity was challenged under Article 25(1) of the Indian Constitution which guarantees freedom of religion but this challenge was upheld by Supreme Court in 2018 affirming equality between genders within marriage but allowing individual religions to have personal laws. Despite these challenges, the law remains an important part of Hindu succession practices. Its impact includes ensuring greater autonomy over family matters, promoting gender equality, and clarifying how assets pass upon separation or divorce. However its interpretation can vary based on religious beliefs and practices. While some interpret it very literally while others look into principles like equity, justice, etc. Hence interpretations may differ across different courts/tribunals/judges depending on specific facts & circumstances involved in each particular case. Therefore, understanding the Act requires considering both constitutional implications and practical application in real-life scenarios involving families who follow Hindu customs and traditions.

Question

Explain the Right to Information Act.

Answer

Provided a simplified explanation understandable to non-lawyers.

Limitations

  • May hallucinate legal provisions.
  • May provide outdated legal information.
  • Performance on recently enacted legislation may vary.
  • Should not replace professional legal counsel.
  • Requires external verification of all legal claims.

Ethical Considerations

This model is released for research and educational purposes only.

Users are responsible for verifying all legal information through official legal sources before relying on generated responses.

License

Please specify your chosen license (Apache-2.0, MIT, or other).

Author

Seven Healer

Project: JusticeAI

Research Area: Indian Legal Language Models

Downloads last month
9
Safetensors
Model size
3B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for sevenhealer/lawLLM

Finetuned
(1612)
this model

Datasets used to train sevenhealer/lawLLM