Commit dbceec8
llama : add StableLM2 12B (ggml-org#6635)
* StableLM2 12B support for huggingface -> GGUF
* StableLM12 tensormapping and constants
* StableLM-2-12b model support
* fix
* Added 12B support
* Removed autoformatting; resolved bug where model_arch was not selecting StableLM2
* Formatting
* Do QK norm stacking in model conversion step
* Converge StableLM and StableLM2 code to simplify graph construction
* Fix accidental removal
* Removed warnings
* Revert formatter
* Move QK norm stack to private function so it's easier to read
* refactor stablelm graph builder to support 1.6, 3b and 12b more efficiently
* Proper check for None type for new_name to avoid crash; formatting; revert change to base class `write_tensors()`
* Format
* Formatting
* format
Co-authored-by: compilade <[email protected]>
* Fix incorrect check for K norm
* space after commas; Keep indentation multiple of 4 spaces
* Flake8 format
* Removed unnecessary conditional branches
* Removed unused comment
* Fixed incorrect tensor passing
* Format
---------
Co-authored-by: compilade <[email protected]>1 parent f4dea7d commit dbceec8
3 files changed
+134
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1207 | 1207 | | |
1208 | 1208 | | |
1209 | 1209 | | |
| 1210 | + | |
1210 | 1211 | | |
1211 | 1212 | | |
1212 | 1213 | | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
1213 | 1295 | | |
1214 | 1296 | | |
1215 | 1297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
458 | 460 | | |
459 | 461 | | |
460 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| 719 | + | |
| 720 | + | |
719 | 721 | | |
720 | 722 | | |
721 | 723 | | |
| |||
1744 | 1746 | | |
1745 | 1747 | | |
1746 | 1748 | | |
| 1749 | + | |
1747 | 1750 | | |
1748 | 1751 | | |
1749 | 1752 | | |
| |||
3607 | 3610 | | |
3608 | 3611 | | |
3609 | 3612 | | |
| 3613 | + | |
3610 | 3614 | | |
3611 | 3615 | | |
3612 | 3616 | | |
| |||
3898 | 3902 | | |
3899 | 3903 | | |
3900 | 3904 | | |
| 3905 | + | |
3901 | 3906 | | |
3902 | 3907 | | |
3903 | 3908 | | |
| |||
5128 | 5133 | | |
5129 | 5134 | | |
5130 | 5135 | | |
5131 | | - | |
5132 | | - | |
| 5136 | + | |
| 5137 | + | |
| 5138 | + | |
| 5139 | + | |
| 5140 | + | |
| 5141 | + | |
| 5142 | + | |
5133 | 5143 | | |
5134 | 5144 | | |
5135 | 5145 | | |
| |||
8197 | 8207 | | |
8198 | 8208 | | |
8199 | 8209 | | |
8200 | | - | |
| 8210 | + | |
8201 | 8211 | | |
8202 | 8212 | | |
8203 | 8213 | | |
| |||
8206 | 8216 | | |
8207 | 8217 | | |
8208 | 8218 | | |
| 8219 | + | |
| 8220 | + | |
8209 | 8221 | | |
8210 | 8222 | | |
8211 | 8223 | | |
| |||
8230 | 8242 | | |
8231 | 8243 | | |
8232 | 8244 | | |
| 8245 | + | |
| 8246 | + | |
| 8247 | + | |
| 8248 | + | |
| 8249 | + | |
| 8250 | + | |
| 8251 | + | |
| 8252 | + | |
| 8253 | + | |
| 8254 | + | |
| 8255 | + | |
| 8256 | + | |
| 8257 | + | |
| 8258 | + | |
| 8259 | + | |
| 8260 | + | |
| 8261 | + | |
| 8262 | + | |
| 8263 | + | |
| 8264 | + | |
| 8265 | + | |
8233 | 8266 | | |
8234 | | - | |
| 8267 | + | |
8235 | 8268 | | |
8236 | 8269 | | |
8237 | 8270 | | |
8238 | 8271 | | |
8239 | 8272 | | |
8240 | 8273 | | |
8241 | | - | |
| 8274 | + | |
8242 | 8275 | | |
8243 | 8276 | | |
8244 | 8277 | | |
| |||
8253 | 8286 | | |
8254 | 8287 | | |
8255 | 8288 | | |
| 8289 | + | |
8256 | 8290 | | |
8257 | 8291 | | |
8258 | 8292 | | |
8259 | | - | |
| 8293 | + | |
8260 | 8294 | | |
8261 | 8295 | | |
8262 | 8296 | | |
8263 | 8297 | | |
8264 | | - | |
8265 | | - | |
8266 | | - | |
8267 | | - | |
8268 | | - | |
8269 | | - | |
| 8298 | + | |
| 8299 | + | |
| 8300 | + | |
| 8301 | + | |
| 8302 | + | |
| 8303 | + | |
| 8304 | + | |
| 8305 | + | |
| 8306 | + | |
| 8307 | + | |
8270 | 8308 | | |
8271 | 8309 | | |
8272 | 8310 | | |
| |||
0 commit comments