Skip to content
zykRichardPublic

About

Self-implemented Llama Transformer

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyLlama

I implemented my own Llama model to learn the LLM architecture, referring to this helpful tutorial 🤩.

⚠️ MyLlama has not been fully tested, its correctness is not guaranteed

⚠️ I'm still completing some functions.

TBD

  • Sampling Module
  • Simple Trainer & LoRA Trainer

Module

Module File Reference
RMS norm norm.py tutorial
Llama RMSnorm
Vocabulary Embedding vocab_emb.py tutorial
ChatGLM
NTK-aware RoPE pos_emb.py tutorial
Llama RotaryEmb
Offline/Online Sliding Window Attention attention.py tutorial
LlamaAttention
GQA
MoE MLP mlp.py tutorial
LlamaMLP
Mixtral MoE
KV Cache Manager TransformerDecoderKVCache tutorial
HF Cache
vLLM PageAttention

About

Self-implemented Llama Transformer

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages