This repository contains an FPGA-friendly reimplementation of the
HuggingFaceTB/nanowhale-100m-base model, designed for deployment on Xilinx FPGAs.
Based on literature research for FPGA deployment (QFX arxiv:2401.17544, BitNet b1.58 Reloaded arxiv:2407.09527):
Knowledge distillation from the original NanoWhale teacher model with QAT on FineWeb-Edu dataset.
1python train.py \
2 --teacher_model HuggingFaceTB/nanowhale-100m-base \
3 --hub_model_id hakatu/fpga-whale-100m \
4 --distill_alpha 0.7 \
5 --temperature 2.0 \
6 --num_train_samples 50000 \
7 --max_seq_length 512 \
8 --bf16