mlx-community/GLM-4.7-Flash-Derestricted-8bit-gs32
068
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
pip install mlx-lmfrom 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)