Direct answer and script:
You cannot train directly on a GGUF file.
Convert GGUF to a supported PyTorch or Hugging Face format, train, then quantize and convert back to GGUF.
Example:
- Download or export model in HuggingFace/transformers format, not GGUF.
- Train/fine-tune with your chosen framework (e.g. unsloth, transformers, etc).
- Convert the resulting checkpoint to GGUF after training.
For Unsloth, see: Llama 4 - Finetune & Run with Unsloth
Solution provided by Triskel Data Deterministic AI.