Files
CHatingPython a9ba1874f1 refactor: finish refactor
Now it compiles AND generates (with CMake)!
2026-11-19 16:28:05 +01:00

22 lines
502 B
C++

#include "cenet/layers/token.hpp"
#include "cenet/network.hpp"
#include "tokenizer.hpp"
#include <cenet/cenet.hpp>
#include <iostream>
#include <vector>
static constexpr std::size_t VOCAB_SIZE = 2256;
using network_type = cenet::network<std::vector<std::uint32_t>, cenet::layers::tok2vec<2256, 512>>;
int main(void) {
tokenizer<VOCAB_SIZE> bpe;
if (!bpe.load("./gpt/shakespeare.bpe")) return 1;
std::cout << "Vocabulary loaded!\n";
auto* gpt = new network_type();
return 0;
}