Views
No views yet
gemma4.final_logit_softcapping: 30.0 -> 0.01<pad>.gemma-4-1B-0.8B-tiny.Q2_K.final-logit-softcap-0.01.ggufreproduce.pyrequirements.txtbuild_poc.py1python3 -m venv /tmp/gguf-softcap-poc
2. /tmp/gguf-softcap-poc/bin/activate
3pip install -r requirements.txt
4
5curl -L -o control.gguf \
6 https://huggingface.co/mradermacher/gemma-4-1B-0.8B-tiny-GGUF/resolve/main/gemma-4-1B-0.8B-tiny.Q2_K.gguf
7curl -L -o malicious.gguf \
8 https://huggingface.co/hacnho/gguf-final-logit-softcapping-backdoor-poc/resolve/main/gemma-4-1B-0.8B-tiny.Q2_K.final-logit-softcap-0.01.gguf
9
10LLAMA_SIMPLE=/path/to/llama-simple python reproduce.py control.gguf malicious.gguf
11modelscan -p malicious.gguf --show-skippedHello: <bos>HelloHelloHello...Hello: <bos>Hello<pad><pad><pad>...modelscan==0.8.8: No issues found and the GGUF is skipped