File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -1544,7 +1544,11 @@ void llama_model::load_hparams(llama_model_loader & ml) {
1544
1544
ml.get_key(LLM_KV_TOKEN_SHIFT_COUNT, hparams.token_shift_count, false);
1545
1545
1546
1546
switch (hparams.n_layer) {
1547
- case 12: type = LLM_TYPE_190M; break;
1547
+ case 12:
1548
+ switch (hparams.n_embd) {
1549
+ case 768: type = LLM_TYPE_190M; break;
1550
+ default: type = LLM_TYPE_UNKNOWN;
1551
+ } break;
1548
1552
case 24:
1549
1553
switch (hparams.n_embd) {
1550
1554
case 1024: type = LLM_TYPE_450M; break;
@@ -1557,7 +1561,17 @@ void llama_model::load_hparams(llama_model_loader & ml) {
1557
1561
case 3584: type = LLM_TYPE_7B; break;
1558
1562
default: type = LLM_TYPE_UNKNOWN;
1559
1563
} break;
1560
- case 32: type = LLM_TYPE_2_9B; break; // RWKV-7-World
1564
+ case 32:
1565
+ switch (hparams.n_embd) {
1566
+ case 2560: type = LLM_TYPE_2_9B; break;
1567
+ case 4096: type = LLM_TYPE_7B; break;
1568
+ default: type = LLM_TYPE_UNKNOWN;
1569
+ } break;
1570
+ case 61:
1571
+ switch (hparams.n_embd) {
1572
+ case 4096: type = LLM_TYPE_14B; break;
1573
+ default: type = LLM_TYPE_UNKNOWN;
1574
+ } break;
1561
1575
default: type = LLM_TYPE_UNKNOWN;
1562
1576
}
1563
1577
} break;
You can’t perform that action at this time.
0 commit comments