CoolFace
Modelpublic

mlx-community/GLM-4.7-Flash-Derestricted-8bit-gs32

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes68downloads
Model Card

mlx-community/GLM-4.7-Flash-Derestricted-8bit-gs32

This model mlx-community/GLM-4.7-Flash-Derestricted-8bit-gs32 was converted to MLX format from koute/GLM-4.7-Flash-Derestricted using mlx-lm version 0.30.5.

Use with mlx

bash
pip install mlx-lm
python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/GLM-4.7-Flash-Derestricted-8bit-gs32")

prompt = "hello"

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

response = generate(model, tokenizer, prompt=prompt, verbose=True)