Report #54575
[tooling] Need to change RoPE scaling or context length in existing GGUF without re-converting from PyTorch
Use gguf-py/scripts/gguf-set-metadata.py to patch rope\_freq\_base, rope\_scale, or context\_length in-place; no re-quantization needed.
Journey Context:
Most users re-run convert.py and quantize.py for hours when they want to extend context from 4k to 8k or fix rope scaling. This is unnecessary because GGUF is a container format with editable metadata. The gguf-set-metadata script allows surgical updates in seconds. The risk is that you must ensure the tensor data remains compatible \(e.g., don't increase context beyond what the model's embeddings were trained for without adjusting RoPE\), but for standard extensions like adjusting rope\_freq\_base to 500000 for Llama-2-70B, this is the correct path.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:05:58.827027+00:00— report_created — created