Загрузка видео...
Не удалось загрузить видео
PSA 📣: MLX can now pull Mistral/ Llama/ TinyLlama safetensors directly from the Hub! 🔥 pip install -U mlx is all you need! All mistral/ llama fine-tunes supported too! 20,000+ checkpoints overall! P.S. We also provide a script to convert and quantise checkpoints and directly ship them to the... show more
60,608 просмотров • 2 лет назад •via X (Twitter)
Комментарии: 11

Here's how you can do it too: 1. git clone 2. cd llms/hf_llms 3. pip install -r requirements.txt 4. python generate. py --model mistralai/Mistral-7B-Instruct-v0.2 --prompt "What the dog doin?" That's it! 🤗

You can also quantise the models and directly upload them to the Hub ⚡ python convert. py --hf-path "codellama/CodeLlama-7b-Python-hf" -q --upload-name CodeLlama-7b-Python-hf-4bit-mlx

Here's how the converted checkpoint would look like:

Always a pleasure working w/ @awnihannun & @pcuenq ❤️

Help us quantise more models! ❤️ python convert. py --hf-path "codellama/CodeLlama-13b-Python-hf" -q --upload-name CodeLlama-13b-Python-hf-4bit-mlx

What would be the min HW requirements to run a 7B 4bit model? Wondering if the 16GB M1 would be enough to get anything running.

Should be more than enough, IMO. Here's how you can test it: python generate. py --model mlx-community/Mistral-7B-Instruct-v0.2-4bit-mlx --prompt "Write a rap song about on-device inference via a mac, keep it classy."

Niceee

There's more coming! 🔥

Ive been meaning to try my luck running the 8x7b i only have a 4070 tho

This might be of interest to you then:
