How to use from
Unsloth Studio
# Gated model: Login with a HF token with gated access permission
hf auth login
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for dev-willbird1936/gguf-rwkv-trie-oob-poc to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for dev-willbird1936/gguf-rwkv-trie-oob-poc to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required
# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for dev-willbird1936/gguf-rwkv-trie-oob-poc to start chatting
Quick Links

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

llamacpp-05 PoC: RWKV tokenizer trie-walk heap out-of-bounds read

llamacpp05_rwkv_trie_oob.gguf is a minimal GGUF file (640 bytes) that selects the RWKV tokenizer (tokenizer.ggml.model = "rwkv") and defines a 3-token vocabulary where one token's escaped text decodes to bytes containing an embedded NUL (0x00). Building the tokenizer's naive_trie from that token plants a NUL edge inside the trie.

llama_tokenize's RWKV session tokenize loop advances the scan position with a pre-increment, text[++position], with no bounds check against text.size(). When the walk reaches the input's real end, the C-string terminator at text[size()] matches the trie's NUL edge and the loop does not stop: the next pre-increment reads text[size()+1], one byte past the heap-allocated std::string buffer.

Confirmed with AddressSanitizer: heap-buffer-overflow READ of size 1 at llama-vocab.cpp:1323, reached through the real, public llama_tokenize API, no internal-only code path involved.

Load this file with any llama.cpp build (or any consumer that calls llama_tokenize on text long enough to exceed the small-string optimization threshold) to trigger the read.

Downloads last month
-
GGUF
Model size
0 params
Architecture
t5
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support