Mistral-7b-Gandalf / README.md
maciejonek's picture
Add files using upload-large-folder tool
e8577d3 verified
|
raw
history blame
1.16 kB
metadata
license: apache-2.0
tags:
  - finetuned
  - mlx
pipeline_tag: text-generation
new_version: mistralai/Mistral-7B-Instruct-v0.3
inference: true
widget:
  - messages:
      - role: user
        content: What is your favorite condiment?
extra_gated_description: >-
  If you want to learn more about how we process your personal data, please read
  our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
base_model: mistralai/Mistral-7B-Instruct-v0.2

maciejonek/Mistral-7b-Gandalf

The Model maciejonek/Mistral-7b-Gandalf was converted to MLX format from mistralai/Mistral-7B-Instruct-v0.2 using mlx-lm version 0.21.0.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("maciejonek/Mistral-7b-Gandalf")

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)