Instructions to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ilintar/THUDM_GLM-Z1-9B-0414_iGGUF", filename="THUDM-GLM-Z1-9B-0414-iq4-nl.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ilintar/THUDM_GLM-Z1-9B-0414_iGGUF # Run inference directly in the terminal: llama-cli -hf ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ilintar/THUDM_GLM-Z1-9B-0414_iGGUF # Run inference directly in the terminal: llama-cli -hf ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
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 ilintar/THUDM_GLM-Z1-9B-0414_iGGUF # Run inference directly in the terminal: ./llama-cli -hf ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
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 ilintar/THUDM_GLM-Z1-9B-0414_iGGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
Use Docker
docker model run hf.co/ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
- LM Studio
- Jan
- Ollama
How to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF with Ollama:
ollama run hf.co/ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
- Unsloth Studio
How to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF 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 ilintar/THUDM_GLM-Z1-9B-0414_iGGUF 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 ilintar/THUDM_GLM-Z1-9B-0414_iGGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ilintar/THUDM_GLM-Z1-9B-0414_iGGUF to start chatting
- Pi
How to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ilintar/THUDM_GLM-Z1-9B-0414_iGGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
Run Hermes
hermes
- Docker Model Runner
How to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF with Docker Model Runner:
docker model run hf.co/ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
- Lemonade
How to use ilintar/THUDM_GLM-Z1-9B-0414_iGGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
Run and chat with the model
lemonade run user.THUDM_GLM-Z1-9B-0414_iGGUF-{{QUANT_TAG}}List all available models
lemonade list
IMatrix quants.
FIXED with pull request https://github.com/ggml-org/llama.cpp/pull/12957, tested and working
EDIT 22-04-2025: deleted old GGUFs and uploaded one with new PR from https://github.com/ggml-org/llama.cpp/pull/13021, this allows you to test with the mainline (non-patched) version of llama.cpp, also with LMStudio. This version is NOT an imatrix quant since I wanted it up fast, might reupload later with imatrix quants.
If you are testing with LM Studio, replace the Jinja template with this one:
[gMASK]<sop>
{%- if tools -%}
<|system|>
你是一个名为 ChatGLM 的人工智能助手。你是基于智谱 AI 公司训练的语言模型 GLM-4 模型开发的,你的任务是针对用户的问题和要求提供适当的答复和支持。
# 可用工具
{%- for tool in tools %}
{%- set function = tool.function if tool.get("function") else tool %}
## {{ function.name }}
{{ function | tojson(indent=4, ensure_ascii=False) }}
在调用上述函数时,请使用 Json 格式表示调用的参数。
{%- endfor %}
{%- endif -%}
{%- for msg in messages %}
{%- if msg.role == 'system' %}
<|system|>
{{ msg.content }}
{%- endif %}
{%- endfor %}
{%- for message in messages if message.role != 'system' %}
{%- set role = message['role'] %}
{%- set content = message['content'] %}
{%- set thinkcontent = content.split('</think>') %}
{%- set visible = thinkcontent[-1].strip() %}
{%- set meta = message.get("metadata", "") %}
{%- if role == 'user' %}
<|user|>
{{ visible }}
{%- elif role == 'assistant' and not meta %}
<|assistant|>
{{ visible }}
{%- elif role == 'assistant' and meta %}
<|assistant|>{{ meta }}
{{ visible }}
{%- elif role == 'observation' %}
<|observation|>
{{ visible }}
{%- endif %}
{%- endfor %}
{% if add_generation_prompt %}<|assistant|>\n<think>{% endif %}
- Downloads last month
- 9
We're not able to determine the quantization variants.
Model tree for ilintar/THUDM_GLM-Z1-9B-0414_iGGUF
Base model
zai-org/GLM-Z1-9B-0414