tlama-124M / README.md
MaxGalindo150's picture
Update README.md
ac5f886 verified
|
Raw History Blame Contribute Delete
2.46 kB
metadata
license: apache-2.0

Tlama (124M) - Compact & Efficient Language Model

Hugging Face

Tlama (124M) is a language model based on GPT-2 (127M) optimized by EigenCore. It is designed for computational efficiency and scalability, allowing its use on resource-limited hardware without compromising performance.

πŸš€ Key Features

  • Architecture based on GPT-2 (124M) with efficiency improvements.
  • Trained on the edu_fineweb10B dataset, a subset of FineWeb with 10 billion tokens.
  • Compatible with Hugging Face transformers.
  • Advanced optimizations: Flash Attention, Mixed Precision Training, Gradient Clipping, Torch.compile.
  • Trainable on consumer hardware, such as NVIDIA RTX 4060 GPUs.

πŸ“Œ Using the Model on Hugging Face

You can easily load Tlama (124M) with transformers:

from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("eigencore/tlama-124M", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("eigencore/tlama-124M", trust_remote_code=True)

prompt = "Once upon a time in a distant kingdom..."
input_ids = tokenizer.encode(prompt, return_tensors="pt")

output = model.generate(input_ids, max_length=50, num_return_sequences=1)
print(tokenizer.decode(output[0], skip_special_tokens=True))

πŸ“– Architecture and Training Data

  • Model: Based on GPT-2 with 124M parameters.
  • Dataset: edu_fineweb10B, a web-crawled dataset with 10B tokens.
  • Infrastructure: Trained on 8 NVIDIA A100 GPUs, optimized for training on consumer hardware.
  • Optimization Techniques:
    • Weight Tying to reduce parameters.
    • Flash Attention for faster inference.
    • Gradient Accumulation to train with lower VRAM requirements.
    • Learning Rate Scheduling with warmup and cosine decay.

πŸ“Š Benchmark and Performance

Compared to GPT-2 (124M), Tlama (124M): βœ… Reduces inference time thanks to computational optimizations. βœ… Shows competitive performance on language modeling tasks. βœ… Enables efficient training on accessible hardware.

πŸ“© Contact & Contributions

This model is developed by EigenCore.


Explore Tlama (124M) and help us build more efficient AI models! πŸš€