mistral-7B-v0.1 / README.md
radames's picture
radames HF staff
fix code snippet
8bc8f3e
metadata
pipeline_tag: text-generation
inference: false
tags:
  - mistral
  - mlx
license: apache-2.0
library_name: mlx

Mistral-7B-v0.1

The Mistral-7B-v0.1 Large Language Model (LLM) is a pretrained generative text model with 7 billion parameters. Mistral-7B-v0.1 outperforms Llama 2 13B on all benchmarks we tested.

For full details of this model please read our paper and release blog post.

This repository contains the mistral-7B-v0.1 weights in npz format suitable for use with Apple's MLX framework.

Use with MLX

pip install mlx
pip install huggingface_hub hf_transfer
git clone https://github.com/ml-explore/mlx-examples.git
cd mlx-examples

# Download model
export HF_HUB_ENABLE_HF_TRANSFER=1
huggingface-cli download --local-dir-use-symlinks False --local-dir mistral-7B-v0.1 mlx-community/mistral-7B-v0.1

# Run example
python llms/mistral/mistral.py --prompt "My name is"

Please, refer to the original model card for more details on Mistral-7B-v0.1.