Instructions to use mlx-community/zephyr-7b-beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/zephyr-7b-beta with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("mlx-community/zephyr-7b-beta") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use mlx-community/zephyr-7b-beta with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "mlx-community/zephyr-7b-beta" --prompt "Once upon a time"
fixing type for model-path
#6
by mohanchinnappan - opened
README.md
CHANGED
|
@@ -29,7 +29,7 @@ export HF_HUB_ENABLE_HF_TRANSFER=1
|
|
| 29 |
huggingface-cli download --local-dir-use-symlinks False --local-dir zephyr-7b-beta mlx-community/zephyr-7b-beta
|
| 30 |
|
| 31 |
# Run example
|
| 32 |
-
python llms/mistral/mistral.py --
|
| 33 |
```
|
| 34 |
|
| 35 |
Please, refer to the [original model card](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) for more details on Zephyr 7B β.
|
|
|
|
| 29 |
huggingface-cli download --local-dir-use-symlinks False --local-dir zephyr-7b-beta mlx-community/zephyr-7b-beta
|
| 30 |
|
| 31 |
# Run example
|
| 32 |
+
python llms/mistral/mistral.py --model-path zephyr-7b-beta --prompt "My name is"
|
| 33 |
```
|
| 34 |
|
| 35 |
Please, refer to the [original model card](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) for more details on Zephyr 7B β.
|