mlxlaw / README.md
Bdwot's picture
Add files using upload-large-folder tool
92947c6 verified
metadata
tags:
  - mlx
  - mlx
base_model: mlx-community/Mistral-7B-v0.2-4bit

Bdwot/mlxlaw

The Model Bdwot/mlxlaw was converted to MLX format from mlx-community/Mistral-7B-v0.2-4bit using mlx-lm version 0.21.1.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("Bdwot/mlxlaw")

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)