Skip to content

Commit 81ec53e

Browse files
committed
rename shiftnet to fp1.3.0
1 parent e730e59 commit 81ec53e

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

mcu/BitNetMCUdemo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void processfclayer(int8_t *, const uint32_t *, int32_t, uint32_t, uint32_t, in
88
#include "../BitNetMCU_inference.c"
99
// #include "BitNetMCU_model_1k.h"
1010
#include "BitNetMCU_model_12k.h"
11-
// #include "BitNetMCU_model_12k_shift.h"
11+
// #include "BitNetMCU_model_12k_FP130.h"
1212
#include <stdio.h>
1313

1414
const int8_t input_data_0[256] = {-22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, 11.0, 64.0, 30.0, 6.0, -14.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, 28.0, 124.0, 127.0, 115.0, 66.0, -3.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -12.0, 18.0, 58.0, 97.0, 124.0, 70.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -16.0, 47.0, 100.0, -11.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -21.0, 44.0, 104.0, -11.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -16.0, 68.0, 106.0, -12.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -13.0, 77.0, 99.0, -18.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -13.0, 77.0, 96.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -13.0, 77.0, 96.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -13.0, 77.0, 96.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -17.0, 62.0, 97.0, -20.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, 18.0, 71.0, -14.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -22.0, -20.0, -16.0, -21.0, -22.0, -22.0, -22.0, -22.0, -22.0};

mcu/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This folder contains a demo that implements the BitNetMCU inference engine on an
1111

1212
- [`BitNetMCU_model_12k.h`](BitNetMCU_model_12k.h): A model optimized for high accuracy, achieving 94.02% test accuracy on MNIST. 4 Bit weights, 64/64/64 hidden layer width. 13.66 ms inference time.
1313

14-
- [`BitNetMCU_model_12k_shift.h`](BitNetMCU_model_12k_shift.h): A model optimizing for both accuracy and inference speed by using FP1.3.0 encoding. Achieving 98.86% test accuracy on MNIST. 4 Bit weights, 64/64/64 hidden layer width. 10.17 ms inference time.
14+
- [`BitNetMCU_model_12k_FP130.h`](BitNetMCU_model_12k_FP130.h): A model optimizing for both accuracy and inference speed by using FP1.3.0 encoding. Achieving 98.86% test accuracy on MNIST. 4 Bit weights, 64/64/64 hidden layer width. 10.17 ms inference time.
1515

1616
- [`BitNetMCU_model_1k.h`](BitNetMCU_model_1k.h): A size optimized model with a memory footprint of only 1 kbyte, achieving 94.22% accuracy on MNIST. 2 Bit weights, 16/16/16 hidden layer width. Activate it by modifying `BitNetMCUdemo.c` 1.88 ms inference time.
1717

modeldata/opt_sc16_Cosine_lr0.001_Aug_BitMnist_PerTensor_4bitshift_RMS_width64_64_64_bs128_epochs60.pth renamed to modeldata/opt_Cosine_lr0.001_Aug_BitMnist_PerTensor_FP130_RMS_width64_64_64_bs128_epochs60.pth

File renamed without changes.

0 commit comments

Comments
 (0)