license, license_name, license_link, language, base_model, pipeline_tag, library_name, tags, inference
license license_name license_link language base_model pipeline_tag library_name tags inference
other glm-4 https://huggingface.co/THUDM/glm-4-9b-chat-hf/blob/main/LICENSE
en
zh
zai-org/glm-4-9b-chat-1m-hf text-generation mlx
chatglm
mlx
false

mlx-community/glm-4-9b-chat-1m-bf16

This model mlx-community/glm-4-9b-chat-1m-bf16 was converted to MLX format from zai-org/glm-4-9b-chat-1m-hf using mlx-lm version 0.27.1.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/glm-4-9b-chat-1m-bf16")

prompt = "hello"

if tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)
Description
Model synced from source: mlx-community/glm-4-9b-chat-1m-bf16
Readme 30 KiB