Downloads · 30 days
44
17% of all-time downloads
clxudfast/huihui4-8b-a4b-v2-Q4_K_M
huihui4-8b-a4b-v2-Q4_K_M is a machine learning model from clxudfast. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for llama-cpp. The card lists the license as apache-2.0.
This is a 4-bit quantized version of Huihui4-8B-A4B-v2 converted to GGUF format for use with llama.cpp.
Downloads · 30 days
44
17% of all-time downloads
All-time downloads
264
Public
Repo size
5.4 GB
Likes
1
Public
Click a slice to open those files.
.gguf5.4 GB · 100%
From the Hugging Face model README
This is a 4-bit quantized version of Huihui4-8B-A4B-v2 converted to GGUF format for use with llama.cpp.
The model was quantized using llama.cpp's q4_k_m quantization method:
# Download the model
huggingface-cli download clxudfast/huihui4-8b-a4b-v2-Q4_K_M huihui4-8b-a4b-v2-Q4_K_M.gguf --local-dir ./models
# Run inference
./llama-cli -m ./models/huihui4-8b-a4b-v2-Q4_K_M.gguf -p "Hello, how are you?" -n 100
# Start the server
./llama-server -m ./models/huihui4-8b-a4b-v2-Q4_K_M.gguf --port 8080 --host 0.0.0.0
# Query via HTTP
curl -X POST http://localhost:8080/completion -H "Content-Type: application/json" -d '{"prompt": "The meaning of life is", "n_predict": 50}'
from llama_cpp import Llama
llm = Llama(
model_path="./models/huihui4-8b-a4b-v2-Q4_K_M.gguf",
n_ctx=4096,
n_gpu_layers=31, # Offload all layers to GPU
verbose=False
)
output = llm.create_completion(
"The meaning of life is",
max_tokens=50,
temperature=0.7
)
print(output["choices"][0]["text"])
convert_hf_to_gguf.pyquantize toolApache 2.0 (same as base model)
Issues and pull requests welcome at the original model repository.