Skip to content

About

Build architecture for any modern open-source LLM using simple config

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

llm-template

A little project that allows building your own untrained models based on GPT architecture.

Building an architecture with your own sizes is as simple as creating your own config file.

Example

from llm_template.llm.build import build_llm

config_file: str | Path = ...
llm = build_llm(config_file)

Functionality

At the moment the project allows to:

  • Choose between different attention mechanisms (MHA, GQA, MQA)
  • Create a FFN layer with any activation function that PyTorch has
  • Use your own RoPE parameters

Planned work:

  • Add Mixture-of-Experts support
  • Add ability to load waights from Hugging Face for existing models

About

Build architecture for any modern open-source LLM using simple config

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages