heartnano/nano_q8_meta.h
| 1 | /* generated by tools/export_e12_nano_q8.py -- do not edit */ |
| 2 | #pragma once |
| 3 | |
| 4 | #define NANO_FORMAT_VERSION 1 |
| 5 | #define NANO_MAGIC_FRONT 1312902726 |
| 6 | #define NANO_MAGIC_DEC 1312902724 |
| 7 | #define NANO_VOCAB 62 |
| 8 | #define NANO_DUR_HIDDEN 26 |
| 9 | #define NANO_DUR_DEPTH 3 |
| 10 | #define NANO_DUR_KERNEL 5 |
| 11 | #define NANO_DUR_MAX_TOKENS 207 |
| 12 | #define NANO_DUR_MAX_DURATION 80 |
| 13 | #define NANO_AC_HIDDEN 31 |
| 14 | #define NANO_AC_TOKEN_DEPTH 3 |
| 15 | #define NANO_AC_DEPTH 3 |
| 16 | #define NANO_AC_KERNEL 5 |
| 17 | #define NANO_MELS 100 |
| 18 | #define NANO_DIM 62 |
| 19 | #define NANO_BLOCKS 4 |
| 20 | #define NANO_PW_HIDDEN 186 |
| 21 | #define NANO_DW_KERNEL 7 |
| 22 | #define NANO_EMBED_KERNEL 7 |
| 23 | #define NANO_NOISE_CH 4 |
| 24 | #define NANO_N_FFT 1024 |
| 25 | #define NANO_HOP 256 |
| 26 | #define NANO_BINS 513 |
| 27 | #define NANO_HEAD_OUT 1026 |
| 28 | #define NANO_NORM_TYPE 0 |
| 29 | #define NANO_ACT_TYPE 0 |
| 30 | |
| 31 | #define NANO_DUR_PROJ_N16 32 |
| 32 | #define NANO_DUR_B0_C0_N16 144 |
| 33 | #define NANO_DUR_B0_C1_N16 144 |
| 34 | #define NANO_DUR_B1_C0_N16 144 |
| 35 | #define NANO_DUR_B1_C1_N16 144 |
| 36 | #define NANO_DUR_B2_C0_N16 144 |
| 37 | #define NANO_DUR_B2_C1_N16 144 |
| 38 | #define NANO_DUR_OUT_N16 32 |
| 39 | #define NANO_AC_TPROJ_N16 48 |
| 40 | #define NANO_AC_TB0_C0_N16 160 |
| 41 | #define NANO_AC_TB0_C1_N16 160 |
| 42 | #define NANO_AC_TB1_C0_N16 160 |
| 43 | #define NANO_AC_TB1_C1_N16 160 |
| 44 | #define NANO_AC_TB2_C0_N16 160 |
| 45 | #define NANO_AC_TB2_C1_N16 160 |
| 46 | #define NANO_AC_FPROJ_N16 48 |
| 47 | #define NANO_AC_FB0_C0_N16 160 |
| 48 | #define NANO_AC_FB0_C1_N16 160 |
| 49 | #define NANO_AC_FB1_C0_N16 160 |
| 50 | #define NANO_AC_FB1_C1_N16 160 |
| 51 | #define NANO_AC_FB2_C0_N16 160 |
| 52 | #define NANO_AC_FB2_C1_N16 160 |
| 53 | #define NANO_AC_OUT_N16 32 |
| 54 | #define NANO_EMBED_N16 704 |
| 55 | #define NANO_NOISE_N16 32 |
| 56 | #define NANO_B0_PW0_N16 64 |
| 57 | #define NANO_B0_PW1_N16 192 |
| 58 | #define NANO_B1_PW0_N16 64 |
| 59 | #define NANO_B1_PW1_N16 192 |
| 60 | #define NANO_B2_PW0_N16 64 |
| 61 | #define NANO_B2_PW1_N16 192 |
| 62 | #define NANO_B3_PW0_N16 64 |
| 63 | #define NANO_B3_PW1_N16 192 |
| 64 | #define NANO_HEAD_N16 64 |
| 65 | |
| 66 | /* byte offsets into front_q8.bin */ |
| 67 | #define NOFF_DUR_EMB_F32 0 |
| 68 | #define NOFF_DUR_PROJ_W8 6448 |
| 69 | #define NOFF_DUR_PROJ_SCALE 7280 |
| 70 | #define NOFF_DUR_PROJ_BIAS 7392 |
| 71 | #define NOFF_DUR_B0_C0_W8 7504 |
| 72 | #define NOFF_DUR_B0_C0_SCALE 11248 |
| 73 | #define NOFF_DUR_B0_C0_BIAS 11360 |
| 74 | #define NOFF_DUR_B0_C1_W8 11472 |
| 75 | #define NOFF_DUR_B0_C1_SCALE 15216 |
| 76 | #define NOFF_DUR_B0_C1_BIAS 15328 |
| 77 | #define NOFF_DUR_B0_SCALE_F32 15440 |
| 78 | #define NOFF_DUR_B1_C0_W8 15456 |
| 79 | #define NOFF_DUR_B1_C0_SCALE 19200 |
| 80 | #define NOFF_DUR_B1_C0_BIAS 19312 |
| 81 | #define NOFF_DUR_B1_C1_W8 19424 |
| 82 | #define NOFF_DUR_B1_C1_SCALE 23168 |
| 83 | #define NOFF_DUR_B1_C1_BIAS 23280 |
| 84 | #define NOFF_DUR_B1_SCALE_F32 23392 |
| 85 | #define NOFF_DUR_B2_C0_W8 23408 |
| 86 | #define NOFF_DUR_B2_C0_SCALE 27152 |
| 87 | #define NOFF_DUR_B2_C0_BIAS 27264 |
| 88 | #define NOFF_DUR_B2_C1_W8 27376 |
| 89 | #define NOFF_DUR_B2_C1_SCALE 31120 |
| 90 | #define NOFF_DUR_B2_C1_BIAS 31232 |
| 91 | #define NOFF_DUR_B2_SCALE_F32 31344 |
| 92 | #define NOFF_DUR_OUT_W8 31360 |
| 93 | #define NOFF_DUR_OUT_SCALE 31392 |
| 94 | #define NOFF_DUR_OUT_BIAS 31408 |
| 95 | #define NOFF_AC_EMB_F32 31424 |
| 96 | #define NOFF_AC_TPROJ_W8 39120 |
| 97 | #define NOFF_AC_TPROJ_SCALE 40608 |
| 98 | #define NOFF_AC_TPROJ_BIAS 40736 |
| 99 | #define NOFF_AC_TB0_C0_W8 40864 |
| 100 | #define NOFF_AC_TB0_C0_SCALE 45824 |
| 101 | #define NOFF_AC_TB0_C0_BIAS 45952 |
| 102 | #define NOFF_AC_TB0_C1_W8 46080 |
| 103 | #define NOFF_AC_TB0_C1_SCALE 51040 |
| 104 | #define NOFF_AC_TB0_C1_BIAS 51168 |
| 105 | #define NOFF_AC_TB0_SCALE_F32 51296 |
| 106 | #define NOFF_AC_TB1_C0_W8 51312 |
| 107 | #define NOFF_AC_TB1_C0_SCALE 56272 |
| 108 | #define NOFF_AC_TB1_C0_BIAS 56400 |
| 109 | #define NOFF_AC_TB1_C1_W8 56528 |
| 110 | #define NOFF_AC_TB1_C1_SCALE 61488 |
| 111 | #define NOFF_AC_TB1_C1_BIAS 61616 |
| 112 | #define NOFF_AC_TB1_SCALE_F32 61744 |
| 113 | #define NOFF_AC_TB2_C0_W8 61760 |
| 114 | #define NOFF_AC_TB2_C0_SCALE 66720 |
| 115 | #define NOFF_AC_TB2_C0_BIAS 66848 |
| 116 | #define NOFF_AC_TB2_C1_W8 66976 |
| 117 | #define NOFF_AC_TB2_C1_SCALE 71936 |
| 118 | #define NOFF_AC_TB2_C1_BIAS 72064 |
| 119 | #define NOFF_AC_TB2_SCALE_F32 72192 |
| 120 | #define NOFF_AC_FPROJ_W8 72208 |
| 121 | #define NOFF_AC_FPROJ_SCALE 73696 |
| 122 | #define NOFF_AC_FPROJ_BIAS 73824 |
| 123 | #define NOFF_AC_FB0_C0_W8 73952 |
| 124 | #define NOFF_AC_FB0_C0_SCALE 78912 |
| 125 | #define NOFF_AC_FB0_C0_BIAS 79040 |
| 126 | #define NOFF_AC_FB0_C1_W8 79168 |
| 127 | #define NOFF_AC_FB0_C1_SCALE 84128 |
| 128 | #define NOFF_AC_FB0_C1_BIAS 84256 |
| 129 | #define NOFF_AC_FB0_SCALE_F32 84384 |
| 130 | #define NOFF_AC_FB1_C0_W8 84400 |
| 131 | #define NOFF_AC_FB1_C0_SCALE 89360 |
| 132 | #define NOFF_AC_FB1_C0_BIAS 89488 |
| 133 | #define NOFF_AC_FB1_C1_W8 89616 |
| 134 | #define NOFF_AC_FB1_C1_SCALE 94576 |
| 135 | #define NOFF_AC_FB1_C1_BIAS 94704 |
| 136 | #define NOFF_AC_FB1_SCALE_F32 94832 |
| 137 | #define NOFF_AC_FB2_C0_W8 94848 |
| 138 | #define NOFF_AC_FB2_C0_SCALE 99808 |
| 139 | #define NOFF_AC_FB2_C0_BIAS 99936 |
| 140 | #define NOFF_AC_FB2_C1_W8 100064 |
| 141 | #define NOFF_AC_FB2_C1_SCALE 105024 |
| 142 | #define NOFF_AC_FB2_C1_BIAS 105152 |
| 143 | #define NOFF_AC_FB2_SCALE_F32 105280 |
| 144 | #define NOFF_AC_OUT_W8 105296 |
| 145 | #define NOFF_AC_OUT_SCALE 108496 |
| 146 | #define NOFF_AC_OUT_BIAS 108896 |
| 147 | #define NANO_FRONT_BYTES 109296 |
| 148 | |
| 149 | /* byte offsets into model_q8.bin */ |
| 150 | #define DOFF_EMBED_W8 0 |
| 151 | #define DOFF_EMBED_SCALE 43648 |
| 152 | #define DOFF_EMBED_BIAS 43904 |
| 153 | #define DOFF_NOISE_W8 44160 |
| 154 | #define DOFF_NOISE_SCALE 46144 |
| 155 | #define DOFF_NOISE_BIAS 46400 |
| 156 | #define DOFF_NORM_W_F32 46656 |
| 157 | #define DOFF_NORM_B_F32 46912 |
| 158 | #define DOFF_B0_DW_W_F32 47168 |
| 159 | #define DOFF_B0_DW_B_F32 48912 |
| 160 | #define DOFF_B0_NORM_W_F32 49168 |
| 161 | #define DOFF_B0_NORM_B_F32 49424 |
| 162 | #define DOFF_B0_PW0_W8 49680 |
| 163 | #define DOFF_B0_PW0_SCALE 61584 |
| 164 | #define DOFF_B0_PW0_BIAS 62336 |
| 165 | #define DOFF_B0_PW1_W8 63088 |
| 166 | #define DOFF_B0_PW1_SCALE 74992 |
| 167 | #define DOFF_B0_PW1_BIAS 75248 |
| 168 | #define DOFF_B0_GAMMA_F32 75504 |
| 169 | #define DOFF_B1_DW_W_F32 75760 |
| 170 | #define DOFF_B1_DW_B_F32 77504 |
| 171 | #define DOFF_B1_NORM_W_F32 77760 |
| 172 | #define DOFF_B1_NORM_B_F32 78016 |
| 173 | #define DOFF_B1_PW0_W8 78272 |
| 174 | #define DOFF_B1_PW0_SCALE 90176 |
| 175 | #define DOFF_B1_PW0_BIAS 90928 |
| 176 | #define DOFF_B1_PW1_W8 91680 |
| 177 | #define DOFF_B1_PW1_SCALE 103584 |
| 178 | #define DOFF_B1_PW1_BIAS 103840 |
| 179 | #define DOFF_B1_GAMMA_F32 104096 |
| 180 | #define DOFF_B2_DW_W_F32 104352 |
| 181 | #define DOFF_B2_DW_B_F32 106096 |
| 182 | #define DOFF_B2_NORM_W_F32 106352 |
| 183 | #define DOFF_B2_NORM_B_F32 106608 |
| 184 | #define DOFF_B2_PW0_W8 106864 |
| 185 | #define DOFF_B2_PW0_SCALE 118768 |
| 186 | #define DOFF_B2_PW0_BIAS 119520 |
| 187 | #define DOFF_B2_PW1_W8 120272 |
| 188 | #define DOFF_B2_PW1_SCALE 132176 |
| 189 | #define DOFF_B2_PW1_BIAS 132432 |
| 190 | #define DOFF_B2_GAMMA_F32 132688 |
| 191 | #define DOFF_B3_DW_W_F32 132944 |
| 192 | #define DOFF_B3_DW_B_F32 134688 |
| 193 | #define DOFF_B3_NORM_W_F32 134944 |
| 194 | #define DOFF_B3_NORM_B_F32 135200 |
| 195 | #define DOFF_B3_PW0_W8 135456 |
| 196 | #define DOFF_B3_PW0_SCALE 147360 |
| 197 | #define DOFF_B3_PW0_BIAS 148112 |
| 198 | #define DOFF_B3_PW1_W8 148864 |
| 199 | #define DOFF_B3_PW1_SCALE 160768 |
| 200 | #define DOFF_B3_PW1_BIAS 161024 |
| 201 | #define DOFF_B3_GAMMA_F32 161280 |
| 202 | #define DOFF_FNORM_W_F32 161536 |
| 203 | #define DOFF_FNORM_B_F32 161792 |
| 204 | #define DOFF_HEAD_W8 162048 |
| 205 | #define DOFF_HEAD_SCALE 227712 |
| 206 | #define DOFF_HEAD_BIAS 231824 |
| 207 | #define NANO_DEC_BYTES 235936 |
| 208 | |