Instructions to use zai-org/codegeex4-all-9b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use zai-org/codegeex4-all-9b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="zai-org/codegeex4-all-9b-GGUF", filename="codegeex4-all-9b-IQ2_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use zai-org/codegeex4-all-9b-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf zai-org/codegeex4-all-9b-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf zai-org/codegeex4-all-9b-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf zai-org/codegeex4-all-9b-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf zai-org/codegeex4-all-9b-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf zai-org/codegeex4-all-9b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf zai-org/codegeex4-all-9b-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf zai-org/codegeex4-all-9b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf zai-org/codegeex4-all-9b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/zai-org/codegeex4-all-9b-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use zai-org/codegeex4-all-9b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zai-org/codegeex4-all-9b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zai-org/codegeex4-all-9b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/zai-org/codegeex4-all-9b-GGUF:Q4_K_M
- Ollama
How to use zai-org/codegeex4-all-9b-GGUF with Ollama:
ollama run hf.co/zai-org/codegeex4-all-9b-GGUF:Q4_K_M
- Unsloth Studio
How to use zai-org/codegeex4-all-9b-GGUF with Unsloth Studio:
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 zai-org/codegeex4-all-9b-GGUF 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 zai-org/codegeex4-all-9b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for zai-org/codegeex4-all-9b-GGUF to start chatting
- Docker Model Runner
How to use zai-org/codegeex4-all-9b-GGUF with Docker Model Runner:
docker model run hf.co/zai-org/codegeex4-all-9b-GGUF:Q4_K_M
- Lemonade
How to use zai-org/codegeex4-all-9b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull zai-org/codegeex4-all-9b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.codegeex4-all-9b-GGUF-Q4_K_M
List all available models
lemonade list
initial commit
Browse files- codegeex4-all-9b-IQ2_M.gguf +3 -0
- codegeex4-all-9b-IQ3_M.gguf +3 -0
- codegeex4-all-9b-Q4_K_M.gguf +3 -0
- codegeex4-all-9b-Q5_K_M.gguf +3 -0
- codegeex4-all-9b-Q6_K_L.gguf +3 -0
- codegeex4-all-9b-Q8_0.gguf +3 -0
- codegeex4-all-9b.imatrix +3 -0
codegeex4-all-9b-IQ2_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d41e4753c5bc45a45ec336982d0bb4e7d9e1f0a526821da3c4d69cc4df16034
|
| 3 |
+
size 3931538848
|
codegeex4-all-9b-IQ3_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7705050d2f9baf0971e87ef02395d9aefdea7bcb2bf36fadd70345294c0e9a17
|
| 3 |
+
size 4811883936
|
codegeex4-all-9b-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f69e8222c715f44a26c68e035437060743f5616a6b9eef16416830797fd7d2e
|
| 3 |
+
size 6250923424
|
codegeex4-all-9b-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f75cb5e1d4aaa9e4a51213a51e5dcde8dee05a520e07d7fc180b05ad325491b
|
| 3 |
+
size 7143785888
|
codegeex4-all-9b-Q6_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ff13074e83156317b501bfc99d1af30d12e7718f145516851290f2b08f48516
|
| 3 |
+
size 8562705824
|
codegeex4-all-9b-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bdf9498c46abf593bd3bd21f176ef21c791d74faad4ebac3a3658e987ad44de
|
| 3 |
+
size 9994995104
|
codegeex4-all-9b.imatrix
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c3be4d5735e362dbf65f6d4c3b265758785ce82320b65747987922fe68ab712
|
| 3 |
+
size 4162929
|