Commit ded67b9
llama : parameter conversion and loading fixes for PLaMo2 variants (ggml-org#16075)
* Fix to use hidden_size_per_head
* Fix num heads
* Fix array
* Fix loading weights
* Support old GGUF converted by the previous version of llama.cpp
* Update src/llama-model.cpp
Co-authored-by: Sigbjørn Skjæret <[email protected]>
* Move shared parameter definitions to the outside of loop
* Not calculating n_embd_head_k,v by n_embd / n_head
---------
Co-authored-by: Sigbjørn Skjæret <[email protected]>1 parent 1fe4e38 commit ded67b9
3 files changed
+27
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4250 | 4250 | | |
4251 | 4251 | | |
4252 | 4252 | | |
4253 | | - | |
| 4253 | + | |
| 4254 | + | |
4254 | 4255 | | |
4255 | 4256 | | |
4256 | 4257 | | |
| |||
4260 | 4261 | | |
4261 | 4262 | | |
4262 | 4263 | | |
4263 | | - | |
| 4264 | + | |
| 4265 | + | |
4264 | 4266 | | |
4265 | | - | |
| 4267 | + | |
| 4268 | + | |
4266 | 4269 | | |
4267 | | - | |
4268 | | - | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
4269 | 4273 | | |
4270 | 4274 | | |
4271 | 4275 | | |
| 4276 | + | |
| 4277 | + | |
4272 | 4278 | | |
4273 | | - | |
4274 | 4279 | | |
4275 | 4280 | | |
4276 | 4281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
1087 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
1088 | 1092 | | |
1089 | 1093 | | |
1090 | 1094 | | |
| |||
3392 | 3396 | | |
3393 | 3397 | | |
3394 | 3398 | | |
| 3399 | + | |
3395 | 3400 | | |
3396 | 3401 | | |
3397 | 3402 | | |
3398 | 3403 | | |
3399 | | - | |
3400 | | - | |
3401 | | - | |
3402 | | - | |
3403 | | - | |
3404 | 3404 | | |
3405 | 3405 | | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
3406 | 3410 | | |
3407 | 3411 | | |
3408 | 3412 | | |
| |||
3436 | 3440 | | |
3437 | 3441 | | |
3438 | 3442 | | |
| 3443 | + | |
| 3444 | + | |
3439 | 3445 | | |
3440 | 3446 | | |
3441 | 3447 | | |
| |||
3444 | 3450 | | |
3445 | 3451 | | |
3446 | 3452 | | |
3447 | | - | |
3448 | | - | |
| 3453 | + | |
| 3454 | + | |
3449 | 3455 | | |
3450 | 3456 | | |
3451 | 3457 | | |
| |||
17611 | 17617 | | |
17612 | 17618 | | |
17613 | 17619 | | |
| 17620 | + | |
17614 | 17621 | | |
17615 | 17622 | | |
17616 | 17623 | | |
| |||
0 commit comments