Class TrainSmallDeepSeek
java.lang.Object
io.github.kirstenali.deepj.examples.TrainSmallDeepSeek
Example: tiny DeepSeek training on a small text file using byte-level tokens.
Architecture differences from the Llama example:
- Multi-Head Latent Attention (MLA) compresses Q through a low-rank Q bottleneck
(
qRank) and K/V through a KV bottleneck (kvRank). - All other components (RMSNorm, RoPE, SwiGLU, token embedding) are identical to the Llama architecture.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TrainSmallDeepSeek
public TrainSmallDeepSeek()
-
-
Method Details
-
main
- Throws:
Exception
-