Class TrainSmallLlama
java.lang.Object
io.github.kirstenali.deepj.examples.TrainSmallLlama
Example: tiny Llama training on a small text file using byte-level tokens.
Architecture differences from the GPT example:
- No learned positional embedding — RoPE is applied inside each attention block.
- RMSNorm instead of LayerNorm.
- SwiGLU feed-forward instead of GELU-FFN.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TrainSmallLlama
public TrainSmallLlama()
-
-
Method Details
-
main
- Throws:
Exception
-