Instructions to use jordandamhof/gguf-glm4-nextn-assert-poc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jordandamhof/gguf-glm4-nextn-assert-poc with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf jordandamhof/gguf-glm4-nextn-assert-poc # Run inference directly in the terminal: llama cli -hf jordandamhof/gguf-glm4-nextn-assert-poc
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jordandamhof/gguf-glm4-nextn-assert-poc # Run inference directly in the terminal: llama cli -hf jordandamhof/gguf-glm4-nextn-assert-poc
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf jordandamhof/gguf-glm4-nextn-assert-poc # Run inference directly in the terminal: ./build/bin/llama cli -hf jordandamhof/gguf-glm4-nextn-assert-poc
Use Docker
docker model run hf.co/jordandamhof/gguf-glm4-nextn-assert-poc
- Llama new
- LM Studio
- Jan
- Ollama
How to use jordandamhof/gguf-glm4-nextn-assert-poc with Ollama:
ollama run hf.co/jordandamhof/gguf-glm4-nextn-assert-poc
- Unsloth Desktop
- Docker Model Runner
How to use jordandamhof/gguf-glm4-nextn-assert-poc with Docker Model Runner:
docker model run hf.co/jordandamhof/gguf-glm4-nextn-assert-poc
- Lemonade
How to use jordandamhof/gguf-glm4-nextn-assert-poc with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jordandamhof/gguf-glm4-nextn-assert-poc
Run and chat with the model
lemonade run user.gguf-glm4-nextn-assert-poc-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
GGUF GLM4 nextn_predict_layers Load-Time Abort PoC
This repository contains a minimal private-report proof of concept for a llama.cpp GGUF model-file validation issue.
The malformed sample is a 288-byte structurally valid GGUF file. It is accepted by the low-level llama-gguf reader, but llama-simple aborts during GLM4 hparameter loading because glm4.nextn_predict_layers is equal to glm4.block_count.
Files
files/make_minimal_glm4_nextn.py: Generates the control and abort GGUF samples.files/glm4_nextn_valid_metadata.gguf: Control sample withnextn_predict_layers=1.files/glm4_nextn_assert_metadata.gguf: Abort sample withnextn_predict_layers=4andblock_count=4.files/glm4_nextn_gguf_read_output.txt: Low-level GGUF reader output.files/glm4_nextn_valid_llama_simple_output.txt: Control loader output.files/glm4_nextn_assert_llama_simple_output.txt: Abort loader output.files/glm4_nextn_valid_rc.txt: Control exit code.files/glm4_nextn_assert_rc.txt: Abort exit code.
Reproduction
Build llama.cpp at commit a9883db8ee021cf16783016a60996d41820b5195:
cmake -S . -B build -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=ON -DLLAMA_BUILD_SERVER=OFF -DGGML_METAL=OFF -DGGML_ACCELERATE=OFF
cmake --build build --target llama llama-gguf llama-simple --parallel 4
Run:
python3 files/make_minimal_glm4_nextn.py
./build/bin/llama-gguf files/glm4_nextn_assert_metadata.gguf r
./build/bin/llama-simple -m files/glm4_nextn_assert_metadata.gguf
Expected vulnerable behavior:
src/models/glm4.cpp:9: GGML_ASSERT(hparams.nextn_predict_layers < hparams.n_layer && "nextn_predict_layers must be < n_layer") failed
This repository is intended only for private vulnerability review.
- Downloads last month
- 4
We're not able to determine the quantization variants.