Models Minimal implementations of open-weight models: gemma4 - Gemma 4 in 270 lines only depending on JAX and SentencePiece. gemma3 - Gemma 3 in 200 lines only depending on JAX and SentencePiece. gpt2 - GPT-2 in 175 lines only depending on PyTorch.