Instructions to use mlx-community/phi-1_5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/phi-1_5 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/phi-1_5") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
- MLX LM
How to use mlx-community/phi-1_5 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/phi-1_5" --prompt "Once upon a time"
[WIP] Upload folder using huggingface_hub (multi-commit 5425a1ca37c03532eb2ec34729cc89ef3ad05d72a64d59418e7bc188e212a224)
#2
by 99DHL - opened
Upload folder using huggingface_hub
Multi commit ID: 5425a1ca37c03532eb2ec34729cc89ef3ad05d72a64d59418e7bc188e212a224
Scheduled commits:
- Upload 1 file(s) totalling 2.8G (2d13dc0e33326ac37a1489f243cfbfc6e56cae476c17c68c43baa9fe30361507)
- Upload 9 file(s) totalling 3.4M (f41a8a014cd2af552d83e608a99e5d4bcc91d47737f482dea4dadcddb9588e2d)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.