Gemma-2-9B-it (GGUF, FP16) for the Renesas R-Car X5H
The FP16 GGUF of google/gemma-2-9b-it that was validated with npx-llm (llama.cpp with the backend for the NPX6 NPU of the Renesas R-Car X5H). It is hosted here because no public FP16 GGUF of this model was available.
| File | Size | SHA-256 |
|---|---|---|
fp16/Gemma-2-9B-it-F16.gguf | 18.5 GB | da128ec8a5a5ce791f5d5b7d8ceec10e995bd16e59db586e9b965d3c39a834b5 |
The FP16 weights of this model do not fit in the NPU's memory on the R-Car X5H: npx-llm runs it as W8A8 from a Q8_0 file with one scale per row, made once from this file with the SDK's llama-quantize (first command below).
Use it with npx-llm
The npx-llm SDK (the llama.cpp package for the board and the NPU driver) is distributed on the Renesas customer portal. On the board, in the unpacked SDK:
hf download Renesas/Gemma-2-9B-it-GGUF fp16/Gemma-2-9B-it-F16.gguf --local-dir models
sha256sum models/fp16/Gemma-2-9B-it-F16.gguf
LD_LIBRARY_PATH=host ./host/llama-quantize --q8-0-row-scale --tensor-type ffn_down=f16 \
models/fp16/Gemma-2-9B-it-F16.gguf models/Gemma-2-9B-it-Q8_0-rowscale.gguf Q8_0
NPX_MEMORY_MB=18432 NPX_W8A8=1 ./start-llama-cli.sh -m models/Gemma-2-9B-it-Q8_0-rowscale.gguf -at f16 -fa on -t 4
Provenance and licence
- Upstream model: google/gemma-2-9b-it. Its licence applies to this file: gemma.
- This file: converted from the upstream weights to F16 with llama.cpp's convert_hf_to_gguf.py. It is not changed otherwise.
- Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms.