Instructions to use mlx-community/CodeLlama-7b-Python-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/CodeLlama-7b-Python-mlx 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/CodeLlama-7b-Python-mlx") 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/CodeLlama-7b-Python-mlx 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/CodeLlama-7b-Python-mlx" --prompt "Once upon a time"
- Atomic Chat
Commit History
-
Update code snippet
0ccd90f
-
update to new format
394930b
-
Update usage instructions (#2)
- Update usage instructions (621a33b70e2df8aae2381572a46c9d662b81efcb)490f198 -
Upload folder using huggingface_hub (#1)
- 6c76777a2552427b93a7faa488dad00bf43cf60dec4af3ca69f4e5eee0ca13da (b1b748fc25b94dfda31b0f8e88a61af8eb0bb80d) - 0bb562c90e9c29c581586df53f770fcf3efa277f58120c7686ac1c0e7bd1598f (bbb1ac003d4942a545ddd7d2644c5a9463dffd38)59c68bc -
initial commit
2b8f236