mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-30 02:53:41 +08:00
up
This commit is contained in:
parent
b6e62caf2e
commit
ec15108bbe
@ -20,10 +20,8 @@ weights you will need to request access from Meta:
|
||||
- [Request Llama v1](https://docs.google.com/forms/d/e/1FAIpQLSfqNECQnMkycAp2jP4Z9TFX0cGR4uf7b_fBxjY_OjhJILlKGA/viewform)
|
||||
- [Request Llama v2](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)
|
||||
|
||||
|
||||
Alternatively, you can also download a select converted checkpoints from the
|
||||
[mlx-llama](https://huggingface.co/mlx-llama) community organisation on Hugging
|
||||
Face and skip the conversion step.
|
||||
> [!TIP]
|
||||
> Alternatively, you can also download a select converted checkpoints from the [mlx-community](https://huggingface.co/mlx-community) community organisation on Hugging Face and skip the conversion step.
|
||||
|
||||
You can download the TinyLlama models directly from [Hugging
|
||||
Face](https://huggingface.co/TinyLlama).
|
||||
|
@ -28,6 +28,9 @@ python convert.py
|
||||
|
||||
The conversion script will save the converted weights in the same location.
|
||||
|
||||
> [!TIP]
|
||||
> Alternatively, you can also download a select converted checkpoints from the [mlx-community](https://huggingface.co/mlx-community) community organisation on Hugging Face and skip the conversion step.
|
||||
|
||||
### Run
|
||||
|
||||
Once you've converted the weights to MLX format, you can generate text with
|
||||
|
@ -17,6 +17,9 @@ python convert.py
|
||||
|
||||
This will make the `weights.npz` file which MLX can read.
|
||||
|
||||
> [!TIP]
|
||||
> Alternatively, you can also download a select converted checkpoints from the [mlx-community](https://huggingface.co/mlx-community) community organisation on Hugging Face and skip the conversion step.
|
||||
|
||||
## Generate
|
||||
|
||||
To generate text with the default prompt:
|
||||
|
Loading…
Reference in New Issue
Block a user