Downloads · 30 days
57
0% of all-time downloads
yhavinga/GLM-4.7-REAP-40p-GGUF
GLM-4.7-REAP-40p-GGUF is a machine learning model from yhavinga. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as other.
Quantized GGUF versions of 0xSero/GLM-4.7-REAP-40, a REAP-pruned parameter Mixture-of-Experts model.
Downloads · 30 days
57
0% of all-time downloads
All-time downloads
27.7K
Public
Repo size
524 GB
Likes
2
Public
Click a slice to open those files.
.gguf524 GB · 100%
From the Hugging Face model README
Quantized GGUF versions of 0xSero/GLM-4.7-REAP-40, a REAP-pruned parameter Mixture-of-Experts model.
# Install llama.cpp (requires b7618 or later)
# Download from https://github.com/ggml-org/llama.cpp/releases
# Run inference
llama-cli -m GLM-4.7-REAP-40p-Q5_K_M.gguf \
-p "Your prompt here" \
-n 512 \
-c 4096 \
-t 8
from llama_cpp import Llama
llm = Llama(
model_path="GLM-4.7-REAP-40p-Q5_K_M.gguf",
n_ctx=32768,
n_gpu_layers=-1, # offload all to GPU
verbose=True
)
output = llm(
"Q: What is the capital of France? A:",
max_tokens=128,
stop=["Q:", "\n"],
echo=True
)
print(output['choices'][0]['text'])
The original REAP model config has num_nextn_predict_layers=1 but the actual weights don't contain a NextN layer (it was pruned away). These GGUF files have been converted with the corrected config (num_nextn_predict_layers=0), so they will load without errors.
For the original FP16 HuggingFace format, see:
This model inherits the license from the base model. See GLM-4 License for details.
All quantizations use --output-tensor-type Q8_0 for the output layer to preserve generation quality. Quantization was performed using llama.cpp b7618.