jpacifico/Chocolatine-2-4B-Instruct-DPO-v2.1-mlx-8Bit

来源:🤗text-generationapache-2.04B 参数8.0 GBsafetensors✓ 2 个校验和209 天前更新
或提交种子

jpacifico/Chocolatine-2-4B-Instruct-DPO-v2.1-mlx-8Bit

The Model jpacifico/Chocolatine-2-4B-Instruct-DPO-v2.1-mlx-8Bit was converted to MLX format from jpacifico/Chocolatine-2-4B-Instruct-DPO-v2.1 using mlx-lm version 0.29.1.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("jpacifico/Chocolatine-2-4B-Instruct-DPO-v2.1-mlx-8Bit")

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)