Class ByteTokenizer
java.lang.Object
io.github.kirstenali.deepj.tokenizers.ByteTokenizer
- All Implemented Interfaces:
Tokenizer
Minimal byte-level tokenizers (0-255). This is enough to train a GPT-style model end-to-end
without external dependencies. For real projects you can swap this for BPE/Unigram.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.kirstenali.deepj.tokenizers.Tokenizer
isEndOfSequence
-
Field Details
-
VOCAB_SIZE
public static final int VOCAB_SIZE- See Also:
-
-
Constructor Details
-
ByteTokenizer
public ByteTokenizer()
-
-
Method Details