Nixon/Phi-4-mini-instruct-WearableQA-GGUF
0563
Phi-4-mini-instruct
This repository contains importance matrix (`imatrix`) quantized GGUF binaries of `microsoft/Phi-4-mini-instruct`.
To prevent loss of reasoning accuracy in domain-specific tasks, these models were quantized using an `imatrix` profile generated directly from domain tokens in the `facebook/WearableQA` dataset. This calibration optimizes weight retention across low-bit quants (IQ4_XS, IQ3_M, IQ2_XXS) specifically for health, physiological data, and wearable device reasoning.
๐ฆ Model Files & Quantization
The following GGUF variants are available in this repository:
๐ Calibration File: domain.imatrix is included in this repository for reproducibility or generating additional quantization levels.โ๏ธ Calibration & Build Details
- Base Model:
microsoft/Phi-4-mini-instruct(3.8B parameters, 128k context window) - Calibration Corpus:
facebook/WearableQA(~60k domain-specific tokens) - Prompt Formatting: Formatted via native
tokenizer.apply_chat_template()matching Phi-4 Chat syntax. - Compilation Tooling: Compiled natively via
llama.cppusing-DGGML_CUDA=ON. - Quantization Tool:
llama-quantizewith--imatrix domain.imatrix.
๐ Quickstart & Usage
1. Run with llama.cpp CLI
# Build or download llama.cpp binaries
./llama-cli \
-m phi4-mini-IQ4_XS.gguf \
-p "<|user|>\nPatient reports a sudden drop in HRV (22ms) and elevated skin temperature (+1.2ยฐC). What metrics should be reviewed next?<|end|>\n<|assistant|>\n" \
-n 256 \
-c 2048 \
-ngl 99 \
--flash-attn on