Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Extend LLM Context

ANN Final Project

1. PEI(Positional Embedding Interpolation)

  1. Download gpt2 from hugging-face.

  2. Extend and finetune gpt2:

cd PEI
python extend_gpt2_ctx.py
python finetuned_gpt2.py
  1. Up to now, you have extended and finetuned gpt2, let's chat with it!
python test_gpt2_finetuned.py
  1. You also can use long context to test it like this:
python test_long_context.py

2. LongRoPE

See README in LongRoPE/

3. FoPE

See README in FoPE/Fourier-Position-Embedding-main/

About

ANN Final Project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages