CoolFace
Modelpublic

m-i/HY-MT1.5-7B-mlx-5Bit

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes5downloads
Model Card

m-i/HY-MT1.5-7B-mlx-5Bit

The Model m-i/HY-MT1.5-7B-mlx-5Bit was converted to MLX format from tencent/HY-MT1.5-7B using mlx-lm version 0.28.3.

Use with mlx

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

model, tokenizer = load("m-i/HY-MT1.5-7B-mlx-5Bit")

prompt="hello"

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

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