Skip to content

Can't run Bonsai-2-27B-PQ2_0-MTP.gguf #2586

Open

Description

Loading Text Model: D:\Bonsai-2-27B-PQ2_0-MTP.gguf
gguf_init_from_reader: tensor 'output.weight' has invalid ggml type 142. should be in [0, 44)
gguf_init_from_reader: failed to read tensor info
check_file_format: error: failed to read GGUF file 'D:\Bonsai-2-27B-PQ2_0-MTP.gguf'
load_model: error: invalid or unsupported model file 'D:\Bonsai-2-27B-PQ2_0-MTP.gguf'
Load Text Model OK: False

Error: Could not load text model: D:\Bonsai-2-27B-PQ2_0-MTP.gguf

Activity

  1. LostRuins commented on Nov 5, 2026

    @LostRuins
    Owner

    Hello, that is because you used an unsupported quant. PQ2_0 is not supported, only regular Q2_0

    Please try this model instead: https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/resolve/main/Ternary-Bonsai-2-27B-Q2_0.gguf

  2. ProfessionalMisunderstanding commented on Nov 5, 2026

    @ProfessionalMisunderstanding
    Author

    Hello, that is because you used an unsupported quant. PQ2_0 is not supported, only regular Q2_0

    Please try this model instead: https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/resolve/main/Ternary-Bonsai-2-27B-Q2_0.gguf

    I launched the lccp interface, asked her a question, saw the reasoning and the answer, but noticed that the generation continued and I get a completely different message in the console, is this how it should be?

    Image Image
  3. LostRuins commented on Nov 6, 2026

    @LostRuins
    Owner

    sounds like you copied 2 different turns? are you sure that's the latest console message?

    maybe reopen everything and try again

  4. LostRuins commented on Nov 6, 2026

    @LostRuins
    Owner

    ah wait i know why - its generating the title of the message

  5. LostRuins commented on Nov 6, 2026

    @LostRuins
    Owner

    see the title in the left side bar

  6. ProfessionalMisunderstanding commented on Nov 6, 2026

    @ProfessionalMisunderstanding
    Author

    see the title in the left side bar

    Well, thank you. I have another problem, I noticed that the graphics card only stores the layers of the model, but the processor takes over all the token generation (the GPU is practically not loaded, the processor is heavily loaded and I get a speed of 3.5 tokens/s. There are 33 out of 65 layers on the graphics card), how can I fix this?

  7. LostRuins commented on Nov 7, 2026

    @LostRuins
    Owner

    You can adjust the number of layers on the GPU with --gpulayers. Make sure the correct card is selected

  8. TimmyHeart commented on Nov 11, 2026

    @TimmyHeart
    image image

    Got the PTQ1_0 compatibility path and my custom FlashAttention-TuringV2 implementation integrated into my KoboldCpp fork.
    PTQ1_0 model loading is now progressing on my Turing GPU. Will try PQ2_0 later

    PTQ1_0 kinda good, no more yapping and broken like others low quantization
    [08:51:30] CtxLimit:608/6144, Init:1.50s, Processed:93 in 2.25s (41.43T/s), Generated:515/2048 in 90.07s (5.72T/s), Total:93.81s.
    Not blazing fast, but honestly acceptable for a 27B model running on this CMP 40hx hardware. There's still plenty to optimize, but getting this far is already a big milestone

  9. LostRuins commented on Nov 11, 2026

    @LostRuins
    Owner

    Thats great. If the P quants work well, consider getting them upstreamed into llama.cpp so koboldcpp gets automatic support

  10. TimmyHeart commented on Nov 12, 2026

    @TimmyHeart

    Will do! I'm currently optimizing it and squashing as many bugs as possible. The current version is already showing great results, with a 2x improvement compared to the last version. This release includes a native PTQ1_0 kernel along with a fallback for broader compatibility. This also provides fallback support for PQ2_0 until it gets its own native kernel, which should only take 1–2 days of work, so it will be ready soon

    With FlashAttention[12:31:18] CtxLimit:209/6144, Init:0.10s, Processed:75 in 0.54s (139.41T/s), Generated:134/2048 in 9.19s (14.58T/s), Total:9.82s
    Even without FlashAttention, it took much longer for longer context, but still so good so far [12:53:46] CtxLimit:4867/6144, Init:0.92s, Processed:4096 in 55.45s (73.87T/s), Generated:771/2048 in 56.61s (13.62T/s), Total:112.98s

    image image

    PQ2 now is working but seems bit too slow if offload 65 layers since the PQ2 model has 66.
    [17:43:04] CtxLimit:120/1024, Init:0.07s, Processed:53 in 2.46s (21.52T/s), Generated:67/820 in 64.73s (1.04T/s), Total:67.26s
    And with 66 layers, it still just around 7T/s
    [17:57:22] CtxLimit:88/1024, Init:0.07s, Processed:53 in 1.82s (29.12T/s), Generated:35/820 in 4.62s (7.58T/s), Total:6.51s
    Gonna need more optimize
    image

  11. ProfessionalMisunderstanding commented on Nov 13, 2026

    @ProfessionalMisunderstanding
    Author

    Will do! I'm currently optimizing it and squashing as many bugs as possible. The current version is already showing great results, with a 2x improvement compared to the last version. This release includes a native PTQ1_0 kernel along with a fallback for broader compatibility. This also provides fallback support for PQ2_0 until it gets its own native kernel, which should only take 1–2 days of work, so it will be ready soon

    With FlashAttention[12:31:18] CtxLimit:209/6144, Init:0.10s, Processed:75 in 0.54s (139.41T/s), Generated:134/2048 in 9.19s (14.58T/s), Total:9.82s Even without FlashAttention, it took much longer for longer context, but still so good so far [12:53:46] CtxLimit:4867/6144, Init:0.92s, Processed:4096 in 55.45s (73.87T/s), Generated:771/2048 in 56.61s (13.62T/s), Total:112.98s

    image image
    PQ2 now is working but seems bit too slow if offload 65 layers since the PQ2 model has 66. [17:43:04] CtxLimit:120/1024, Init:0.07s, Processed:53 in 2.46s (21.52T/s), Generated:67/820 in 64.73s (1.04T/s), Total:67.26s And with 66 layers, it still just around 7T/s [17:57:22] CtxLimit:88/1024, Init:0.07s, Processed:53 in 1.82s (29.12T/s), Generated:35/820 in 4.62s (7.58T/s), Total:6.51s Gonna need more optimize image

    "Generated:134/2048 in 9.19s (14.58T/s)" Cool!

  12. TimmyHeart commented on Nov 14, 2026

    @TimmyHeart

    Will do! I'm currently optimizing it and squashing as many bugs as possible. The current version is already showing great results, with a 2x improvement compared to the last version. This release includes a native PTQ1_0 kernel along with a fallback for broader compatibility. This also provides fallback support for PQ2_0 until it gets its own native kernel, which should only take 1–2 days of work, so it will be ready soon
    With FlashAttention[12:31:18] CtxLimit:209/6144, Init:0.10s, Processed:75 in 0.54s (139.41T/s), Generated:134/2048 in 9.19s (14.58T/s), Total:9.82s Even without FlashAttention, it took much longer for longer context, but still so good so far [12:53:46] CtxLimit:4867/6144, Init:0.92s, Processed:4096 in 55.45s (73.87T/s), Generated:771/2048 in 56.61s (13.62T/s), Total:112.98s
    image image
    PQ2 now is working but seems bit too slow if offload 65 layers since the PQ2 model has 66. [17:43:04] CtxLimit:120/1024, Init:0.07s, Processed:53 in 2.46s (21.52T/s), Generated:67/820 in 64.73s (1.04T/s), Total:67.26s And with 66 layers, it still just around 7T/s [17:57:22] CtxLimit:88/1024, Init:0.07s, Processed:53 in 1.82s (29.12T/s), Generated:35/820 in 4.62s (7.58T/s), Total:6.51s Gonna need more optimize image

    "Generated:134/2048 in 9.19s (14.58T/s)" Cool!

    These are just preliminary tests to observe how the kernel behaves. Specifically, I want to verify if the DP4A mapping is correct, compare the performance between VDR=8 and VDR=4, and see how MMVQ and the profiler react. This is also intended to help implement the SASS DLL. If you have a better GPU that supports DGX Spark, the results would likely be much better. However, for now, I would rather optimize it from the ground up on Turing first, so that way, higher tier architectures can also benefit from these improvements

  13. ProfessionalMisunderstanding commented on Nov 14, 2026

    @ProfessionalMisunderstanding
    Author

    Will do! I'm currently optimizing it and squashing as many bugs as possible. The current version is already showing great results, with a 2x improvement compared to the last version. This release includes a native PTQ1_0 kernel along with a fallback for broader compatibility. This also provides fallback support for PQ2_0 until it gets its own native kernel, which should only take 1–2 days of work, so it will be ready soon
    With FlashAttention[12:31:18] CtxLimit:209/6144, Init:0.10s, Processed:75 in 0.54s (139.41T/s), Generated:134/2048 in 9.19s (14.58T/s), Total:9.82s Even without FlashAttention, it took much longer for longer context, but still so good so far [12:53:46] CtxLimit:4867/6144, Init:0.92s, Processed:4096 in 55.45s (73.87T/s), Generated:771/2048 in 56.61s (13.62T/s), Total:112.98s
    image image
    PQ2 now is working but seems bit too slow if offload 65 layers since the PQ2 model has 66. [17:43:04] CtxLimit:120/1024, Init:0.07s, Processed:53 in 2.46s (21.52T/s), Generated:67/820 in 64.73s (1.04T/s), Total:67.26s And with 66 layers, it still just around 7T/s [17:57:22] CtxLimit:88/1024, Init:0.07s, Processed:53 in 1.82s (29.12T/s), Generated:35/820 in 4.62s (7.58T/s), Total:6.51s Gonna need more optimize image

    "Generated:134/2048 in 9.19s (14.58T/s)" Cool!

    These are just preliminary tests to observe how the kernel behaves. Specifically, I want to verify if the DP4A mapping is correct, compare the performance between VDR=8 and VDR=4, and see how MMVQ and the profiler react. This is also intended to help implement the SASS DLL. If you have a better GPU that supports DGX Spark, the results would likely be much better. However, for now, I would rather optimize it from the ground up on Turing first, so that way, higher tier architectures can also benefit from these improvements

    I have no idea what you're talking about

  14. TimmyHeart commented on Nov 14, 2026

    @TimmyHeart

    A new breakthrough:
    PTQ1_0: Without MTP
    Long chat [21:07:05] CtxLimit:3433/22528, Init:0.13s, Processed:1675 in 5.53s (302.84T/s), Generated:1758/4096 in 106.38s (16.53T/s), Total:112.04s
    Short chat [21:04:36] CtxLimit:99/22528, Init:0.15s, Processed:56 in 0.10s (571.43T/s), Generated:43/4096 in 3.04s (14.17T/s), Total:3.28s

    PQ2_0: Without MTP
    Long chat [21:18:32] CtxLimit:2631/22528, Init:0.13s, Processed:1662 in 14.40s (115.38T/s), Generated:969/4096 in 81.69s (11.86T/s), Total:96.23s
    Short chat [21:16:43] CtxLimit:97/22528, Init:0.07s, Processed:58 in 0.14s (414.29T/s), Generated:39/4096 in 3.53s (11.05T/s), Total:3.73s

    Late night optimize : PTQ1_0: Without MTP
    Long chat [03:15:42] CtxLimit:3196/22528, Init:0.13s, Processed:1665 in 5.52s (301.79T/s), Generated:1531/4096 in 80.98s (18.90T/s), Total:86.63s
    Short chat [03:13:56] CtxLimit:107/22528, Init:0.06s, Processed:58 in 0.04s (1288.89T/s), Generated:49/4096 in 2.95s (16.61T/s), Total:3.05s

    Late night optimize : PQ2_0: Without MTP
    Long chat [03:07:47] CtxLimit:2303/22528, Init:0.13s, Processed:1678 in 4.59s (365.90T/s), Generated:625/4096 in 54.15s (11.54T/s), Total:58.87s
    Short chat [03:06:21] CtxLimit:144/22528, Init:0.42s, Processed:58 in 0.14s (417.27T/s), Generated:86/4096 in 7.88s (10.92T/s), Total:8.44s

    New optimize for PTQ1_0: without MTP
    short chat [07:06:39] CtxLimit:93/22528, Init:0.07s, Processed:58 in 0.05s (1115.38T/s), Generated:35/4096 in 1.50s (23.29T/s), Total:1.62s
    long chat [07:09:25] CtxLimit:3145/22528, Init:0.15s, Processed:1650 in 5.07s (325.64T/s), Generated:1495/4096 in 41.35s (36.16T/s), Total:46.56s
    PQ2_0: not much improvement : [07:21:21] CtxLimit:2431/22528, Init:0.12s, Processed:1668 in 4.03s (413.59T/s), Generated:763/4096 in 65.12s (11.72T/s), Total:69.27s [07:19:46] CtxLimit:323/22528, Init:0.13s, Processed:109 in 0.57s (190.56T/s), Generated:214/4096 in 21.65s (9.88T/s), Total:22.35s

    image image image image image image
  15. TimmyHeart commented on Nov 26, 2026

    @TimmyHeart

    Have you guys checked out Bonsai 2.5? It's still PTQ1_0, but they say it's much more reliable

  16. ProfessionalMisunderstanding commented on Nov 26, 2026

    @ProfessionalMisunderstanding
    Author

    @LostRuins I can't use the new version of bonsai. In the lccp interface, it generates only 1 token, and in the usual 6

  17. LostRuins commented on Nov 26, 2026

    @LostRuins
    Owner
  18. ProfessionalMisunderstanding commented on Nov 26, 2026

    @ProfessionalMisunderstanding
    Author

    I just gave Ternary-Bonsai-2.5-27B-Q2_0.gguf a try and it worked. Can you try https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF/resolve/main/Ternary-Bonsai-2.5-27B-Q2_0.gguf

    But it's literally the same model that I downloaded

  19. LostRuins commented on Nov 26, 2026

    @LostRuins
    Owner

    But it's literally the same model that I downloaded

    I think you were using PQ2_0. You should use Q2_0 instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions