Views
No views yet
tokenizer.chat_template metadata string. The trigger-bearing tail of that template is past the remote range boundary parsed by @huggingface/gguf@0.4.2.hasTrigger: falsehasMarker: false1276222llama-cpp-python==0.3.23, the full template is available and rendered in the normal chat formatting path:metadataHasTrigger: truemetadataHasMarker: true1450427GGUF_BOUNTY_MARKER_TEMPLATE_TAIL_VISIBLE@huggingface/gguf==0.4.2llama-cpp-python==0.3.23gguf==0.19.0modelscan==0.8.8gguf_hf_truncated_template.gguf: PoC GGUF artifact.verify_hf_parser_mismatch.js: Simulates remote range parsing through @huggingface/gguf.verify_runtime_template.py: Loads the same artifact through llama-cpp-python and renders benign/triggered prompts.hf_parser_output.json: Captured Hugging Face parser result.runtime_output.json: Captured llama-cpp-python runtime result.modelscan_output.json: Captured ModelScan output.package.json: JavaScript dependency pin.requirements.txt: Python dependency pins.1npm install
2python -m venv .venv
3. .venv/bin/activate
4pip install -r requirements.txt
5
6node verify_hf_parser_mismatch.js
7python verify_runtime_template.py
8modelscan -p gguf_hf_truncated_template.gguf -r json --show-skipped1{
2 "parser": "@huggingface/gguf",
3 "packageVersion": "0.4.2",
4 "templateLength": 1276222,
5 "hasTrigger": false,
6 "hasMarker": false
7}1{
2 "runtime": "llama-cpp-python",
3 "templateLength": 1450427,
4 "metadataHasTrigger": true,
5 "metadataHasMarker": true,
6 "benignPromptHasMarker": false,
7 "triggeredPromptHasMarker": true
8}@huggingface/gguf parser mismatch with runtimes that consume full GGUF metadata.GGUF_BOUNTY_TRIGGER_4f7bGGUF_BOUNTY_MARKER_TEMPLATE_TAIL_VISIBLE2b5721e9e10f532bd57a596ebdf71d6719dd1076e3886a5caa923f1e4d30788b gguf_hf_truncated_template.gguf@huggingface/gguf remote parsing can miss security-relevant content in a long metadata string, while a local GGUF runtime consumes the full string. For chat templates, this can hide trigger-conditioned prompt manipulation from parser-based inspection.tokenizer.chat_template.@huggingface/gguf should fail closed or fetch additional ranges when a declared GGUF string extends beyond the currently available buffer. Silent truncation of metadata values should be treated as a parse error.