Skip to content

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Mini-LLaDA

A lightweight implementation of Large Language Diffusion Models (LLDMs) based on Llama2.

🛠 Installation

# Clone the repository
git clone https://github.com/NiklasDob/Mini-LLaDA.git
cd Mini-LLaDA

# Install dependencies
pip install -r requirements.txt

📊 Training

Train the model using Shakespeare dataset:

$ python train.py --dataset shakespeare  # or enwik8

📝 Text Generation

Generate text based on a given prompt:

$ python generate.py
  Enter your prompt:

📂 Structure

Mini-LLaDA/
│── data/                   # Datasets (tokenized text)                      
├── model.py                # Llama 2 model for the diffusion objective  
├── generate.py             # Test trained models to generate based on a prompt  
├── train.py                # Train the model on a given dataset (shakespeare or enwik8)  
│── README.md               # Project documentation  
│── requirements.txt        # Dependencies  

License

MIT

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages