15 lines
318 B
C++
15 lines
318 B
C++
#include "tokenizer.hpp"
|
|
|
|
#include <cstdio>
|
|
|
|
int main(void) {
|
|
// static constexpr const char* filepath = "./gpt-training.txt";
|
|
tokenizer<259> bpe;
|
|
bpe.train("abcabcd");
|
|
auto tokens = bpe.encode("abc");
|
|
for (auto tok : tokens) {
|
|
std::printf("0x%08X\n", tok); // NOLINT
|
|
}
|
|
return 0;
|
|
}
|