Views
No views yet
npz format suitable for use in Apple's MLX framework.float16 from the original bfloat16 type, because numpy is not compatible with bfloat16 out of the box.1# Install mlx, mlx-examples, huggingface-cli
2pip install mlx
3pip install huggingface_hub hf_transfer
4git clone https://github.com/ml-explore/mlx-examples.git
5
6# Download model
7export HF_HUB_ENABLE_HF_TRANSFER=1
8huggingface-cli download --local-dir Llama-2-7b-chat-mlx/ mlx-community/Llama-2-7b-chat-4-bit
9
10# Run example
11python mlx-examples/llms/llama/llama.py --prompt "My name is " --model-path Llama-2-7b-chat-mlx/