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
-
config-json (#5)
- params.json -> config.json, add model_type (cdc1b23591e85e76154da58d625369cee5cafab7) - Add library_name (07742ef9f7135415fc9944a8b585dc7bbb121a56) - Merge remote-tracking branch 'origin/main' into pr/5 (d3eecfe113f5d0ffd091fa62f4dcd2fa72dafd58) - Remove library (932d582d11af5cd3fc69817dd54b6283ffd020f3)fc02430 -
Update README.md (#6)
- Update README.md (302ab8523a12efdaaac7f3618f04e4c5f765af3b)1847aeb -
License field (#4)
- License field (acd58d0e7143eb60741056cc41298193cf4a7f67)ca4827a -
Update code snippet (#3)
- Update code snippet (0ccd90fdb34529eb39f0bc02de2cb115c1350390)42c3c92
-
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