File size: 997 Bytes
28b84c8
 
 
 
 
 
 
 
 
7ffa448
fa7f8b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28b84c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
license: apache-2.0
language:
- en
pipeline_tag: text-generation
tags:
- pytorch
- gpt2
---


# Nepal Legal GPT-2 (From Scratch Implementation)

This is a custom GPT-2 style transformer model trained from scratch on Nepal's legal documents. The model was implemented entirely in PyTorch without relying on pre-trained weights, specifically designed to understand and generate text related to Nepal's legal domain.

## Model Details

- **Model Architecture**: GPT-2 style Transformer
- **Parameters**: ~1 million
- **Context Length**: 128 tokens
- **Layers**: 6
- **Attention Heads**: 6
- **Embedding Dimension**: 384
- **Vocabulary Size**: 50,257 (GPT-2 tokenizer)
- **Training Data**: Nepal Legal QA English Dataset
- **License**: MIT

## Training Data Experimental

The model was trained on a specialized dataset of Nepal's legal documents in English, containing:
- Legal questions and answers
- Procedural instructions
- Legal definitions and explanations
- Court procedures and regulations