Repository navigation
Commit 57028f3
fix: Qwen3.8-27B on EXL3 checkpoints stops at the end of the chat turn
The 27B's CUDA Config took its stop ids from config.json only, as Flash Next's did.
turboderp's 27B EXL3 packs (3.00 and 4.00 bpw) have no top-level eos_token_id and
text_config names <|endoftext|> (248044) only, so Config.read returned (248044,) and
<|im_end|> (248046), which these packs list in generation_config.json alone, did not end a
reply. The MLX 4-bit checkpoint lists both at the top level and reads (248046, 248044), as
before.
Config.read now adds generation_config.json's eos_token_id after config.json's, in order and
without duplicates, and a checkpoint that names no stop id anywhere fails with a clear error.
GLM-5.3-Flash is not affected: its EXL3 checkpoint lists its three stop ids in text_config,
which its loader reads first.1 parent e5d3a2a commit 57028f3
2 files changed
Lines changed: 63 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
0 commit comments