Repository navigation
Replies: 1 comment
|
🤖 Answering on behalf of the maintainers Sorry we missed this! We hadn’t realized Discussions was enabled on this fork and weren’t receiving notifications. Loading an FP16 LoRA alongside the packed base model should theoretically work. We don’t anticipate a fundamental limitation, but we haven’t validated this exact setup, and some adjustments in our fork may be needed to make adapter loading and runtime scaling work seamlessly. One practical consideration is adapter size: a large FP16 LoRA can eat into the memory savings of the packed base model and add inference overhead. We’d also recommend trying the newer Bonsai 2 series, which should offer substantially better capabilities than the older models. If you’re still interested in testing this, your proposed comparison would be very useful, and we’d appreciate hearing what works or needs fixing! |
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
Is loading FP16 LoRA adapters at runtime via
--lora(andPOST /lora-adaptersonllama-server) tested or expected to work with prism'sQ1_0_g128/Q2_0_g128quantization formats? Or is the LoRA path on this fork untested for the prism formats specifically?Context
We're using
Bonsai-1.7Bas a specialist slot in a local-first application (D&D companion AI for a tactical game), running it via this fork to take advantage of prism quantization. We want to LoRA-fine-tune the model on a few narrow tasks (~2-3K examples each, ~1 hour training per task on a 7.6 GB GPU) by distilling from a stronger teacher, and then deploy the adapters on top of the prism-quantized base.For the deployment shape, we're following the QVAC Fabric BitNet b1.58 + LoRA pattern from their March 2026 Hugging Face blog post:
prism-ml/Ternary-Bonsai-1.7B-unpackedconvert_lora_to_gguf.py)--lora adapter.ggufon top of an unmodified prism-quantized baseUpstream llama.cpp has supported this pattern since PR ggml-org#8332 (mid-2024) for standard quantization formats (
Q4_K_M,Q5_K_M, etc.) and QVAC's blog confirms it works for upstream BitNetTQ1_0/TQ2_0. The question is whether it works for prism'sQ1_0_g128/Q2_0_g128specifically, since those formats are unique to this fork.Specific questions
--lorabeen tested againstQ1_0_g128orQ2_0_g128base models in this fork? If yes, are there caveats (precision loss, runtime overhead, format constraints)?POST /lora-adaptersendpoint onllama-serverwork correctly with prism quantized bases at runtime?set_lora_adapter_scale(per-adapter scale at runtime) compose correctly with the prism dequantization path?What we'd test if no published answer exists
We're prepared to run a three-way comparison ourselves and report results (and PR documentation back to this fork if useful):
prism-ml/Ternary-Bonsai-1.7B-unpacked.convert_lora_to_gguf.py.prism-ml/Ternary-Bonsai-1.7B-gguf(Q2_0_g128) +--lora adapter.ggufIf maintainers have already done this, we'd love to skip the work and get a pointer. If not, happy to run it and post results here.
Why we're asking before training
The whole training plan (~four task-specific LoRAs, ~9-14K total synthesized examples, ~1 hour each) is gated on this answer. If
--loradoesn't work cleanly with the prism formats today, we'd rather know before generating training data than after. We've seen Discussion ggml-org#22019 about the prism Q2_0 group-64 transition; happy to test against either group size or againstQ1_0_g128if that's preferred.Thanks for the work on this fork — the prism quantization recipe has been a great fit for our deployment shape.
All reactions