Instructions to use zai-org/codegeex4-all-9b-GGUF 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 zai-org/codegeex4-all-9b-GGUF 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 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 serve -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 Desktop
- 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
- Atomic Chat
Update README.md
Browse files- README.md +4 -0
- README_zh.md +4 -0
README.md
CHANGED
|
@@ -15,6 +15,10 @@ pipeline_tag: text-generation
|
|
| 15 |
|
| 16 |
# CodeGeeX4: Open Multilingual Code Generation Model
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
[中文](./README_zh.md)
|
| 19 |
|
| 20 |
[GitHub](https://github.com/THUDM/CodeGeeX4)
|
|
|
|
| 15 |
|
| 16 |
# CodeGeeX4: Open Multilingual Code Generation Model
|
| 17 |
|
| 18 |
+
<center>
|
| 19 |
+
<img src="https://raw.githubusercontent.com/THUDM/CodeGeeX4/main/resources/logo.jpeg" alt="CodeGeeX4">
|
| 20 |
+
</center>
|
| 21 |
+
|
| 22 |
[中文](./README_zh.md)
|
| 23 |
|
| 24 |
[GitHub](https://github.com/THUDM/CodeGeeX4)
|
README_zh.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
# CodeGeeX4: 开源多语言代码生成模型
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
[CodeGeeX4 GitHub](https://github.com/THUDM/CodeGeeX4)
|
| 4 |
|
| 5 |
!!! 本仓库为 CodeGeeX4 权重的GGUF版本, 原始版本请见[链接](https://huggingface.co/THUDM/codegeex4-all-9b). !!!
|
|
|
|
| 1 |
# CodeGeeX4: 开源多语言代码生成模型
|
| 2 |
|
| 3 |
+
<center>
|
| 4 |
+
<img src="https://raw.githubusercontent.com/THUDM/CodeGeeX4/main/resources/logo.jpeg" alt="CodeGeeX4">
|
| 5 |
+
</center>
|
| 6 |
+
|
| 7 |
[CodeGeeX4 GitHub](https://github.com/THUDM/CodeGeeX4)
|
| 8 |
|
| 9 |
!!! 本仓库为 CodeGeeX4 权重的GGUF版本, 原始版本请见[链接](https://huggingface.co/THUDM/codegeex4-all-9b). !!!
|