Text Generation
PEFT
Safetensors
Transformers
English
lora

Model Card for Model ID

Model Details

Model Description

<The RAFT-based QLoRA fine-tuned Llama-2-7B model accepts legal contract documents as input and extracts the textual content for further processing. The extracted text is divided into meaningful chunks, converted into embeddings, and stored in a FAISS vector database. When a user submits a legal question, the system retrieves the most relevant contract chunks through semantic similarity search. These retrieved chunks are provided as contextual input to the quantized Llama-2-7B model with LoRA adapters, enabling the model to generate accurate, context-aware responses. Finally, the system produces a structured summary of the legal contract in the form of question–answer pairs, making contract analysis faster and easier to understand.>

  • Developed by: Harsha Deep Joga
  • Funded by [optional]: Self Project
  • Shared by [optional]: HarshaDeep2006
    • Model type: Llama-2-7B QLoRa with RAFT
  • Language(s) (NLP): English
  • License: MIT
  • Finetuned from model [optional]: meta-llama/Llama-2-7b-hf

Model Sources [optional]

  • Repository: [More Information Needed]
  • Paper [optional]: [More Information Needed]
  • Demo [optional]: [More Information Needed]

Uses

Direct Use

[More Information Needed]

Downstream Use [optional]

[More Information Needed]

Out-of-Scope Use

[More Information Needed]

Bias, Risks, and Limitations

[More Information Needed]

Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.

How to Get Started with the Model

Use the code below to get started with the model.

[More Information Needed]

Training Details

Training Data

[More Information Needed]

Training Procedure

Preprocessing [optional]

[More Information Needed]

Training Hyperparameters

  • Training regime: [More Information Needed]

Speeds, Sizes, Times [optional]

[More Information Needed]

Evaluation

Testing Data, Factors & Metrics

Testing Data

[More Information Needed]

Factors

[More Information Needed]

Metrics

[More Information Needed]

Results

[More Information Needed]

Summary

Model Examination [optional]

[More Information Needed]

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: [More Information Needed]
  • Hours used: [More Information Needed]
  • Cloud Provider: [More Information Needed]
  • Compute Region: [More Information Needed]
  • Carbon Emitted: [More Information Needed]

Technical Specifications [optional]

Model Architecture and Objective

[More Information Needed]

Compute Infrastructure

[More Information Needed]

Hardware

[More Information Needed]

Software

[More Information Needed]

Citation [optional]

BibTeX:

[More Information Needed]

APA:

[More Information Needed]

Glossary [optional]

[More Information Needed]

More Information [optional]

[More Information Needed]

Model Card Authors [optional]

[More Information Needed]

Model Card Contact

[More Information Needed]

Framework versions

  • PEFT 0.19.1
Downloads last month
36
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for CodeGamers/legal-document-analysis-llama2-qlora

Adapter
(2455)
this model

Dataset used to train CodeGamers/legal-document-analysis-llama2-qlora

Paper for CodeGamers/legal-document-analysis-llama2-qlora