Views
No views yet
| Parameter | Value | Description |
|---|---|---|
d_model | 512 | Model dimension |
hidden_dim | 2048 | FFN hidden dimension |
memory_dim | 512 | Memory dimension |
num_layers | 12 | ECN layers |
memory_slots | 64 | Memory slots |
num_associations | 8 | DMN association heads |
vocab_size | 128,000 | 128K multilingual BPE tokenizer |
max_seq_len | 512 | Maximum sequence length |
causal_window_size | 64 | Causal attention window |
lm_num_attn_layers | 2 | Causal LM attention layers |
params | ~120M | Total parameters |
| File | Size | Description |
|---|---|---|
output/checkpoint_step1000/model.nfv1 | 431 MB | Checkpoint at 1000 steps |
output/checkpoint_step2000/model.nfv1 | 431 MB | Checkpoint at 2000 steps |
output/lm_head_lmh1.nfv1 | 255 MB | LM head weights (native format v1) |
configs/config.json | — | Model architecture configuration |
configs/tokenizer_128k.json | — | 128K BPE tokenizer |
configs/huggingface/ | — | HuggingFace-compatible tokenizer files (vocab.json, merges.txt) |
src/ and include/ directories:tensor.hpp/cpp, model.hpp/cpp, tokenizer.hpp/cppcausal_lm.hpp/cpp, generative_model.hpp/cpp, networks.hpptrain_lm.hpp/cpp, train_v2.cpp, sft_train.cpp, dpo_train.cppcuda_context.hpp/cpp, cuda_kernels.hpp, tensor_ops.cppadamw.hpp/cpp, scheduler.hpp/cpp, grad_scaler.hpp/cpp1# CPU only
2mkdir build && cd build
3cmake .. -DCMAKE_BUILD_TYPE=Release
4make -j$(nproc)
5
6# With CUDA
7mkdir build_cuda && cd build_cuda
8cmake .. -DNEUROFLOW_USE_CUDA=ON -DCMAKE_BUILD_TYPE=Release
9make -j$(nproc)1./build_cuda/neuroflow_train_v2 \
2 --config configs/config_distill.json \
3 --data data/distill_train.txt \
4 --output output \
5 --epochs 20 \
6 --batch-size 64 \
7 --lr 0.0003 \
8 --use-cuda --adamscripts/:train_distill.py — Knowledge distillation training pipelinepreprocess_distill.py — Data preprocessing for distillationdeploy_dsw.sh — One-click deployment for Alibaba Cloud DSW (A10 GPU)train_optimized.sh — Optimized multi-stage training