Skip to content

zykRichard/MyLlama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors