Text Generation
MLX
mistral
mistral-7B-v0.1 / README.md
pcuenq's picture
pcuenq HF staff
Code snippet, yaml
0950c7f
|
raw
history blame
1.1 kB
metadata
pipeline_tag: text-generation
inference: false
tags:
  - mistral
  - 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

# 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 mlx-examples/mistral/mistral.py --prompt "My name is" --model_path mistral-7B-v0.1

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