22 lines
502 B
C++
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;
|
|
}
|