Instructions to use dheeraj1508/phi-2-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use dheeraj1508/phi-2-4bit 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("dheeraj1508/phi-2-4bit") 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 dheeraj1508/phi-2-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "dheeraj1508/phi-2-4bit" --prompt "Once upon a time"
- Atomic Chat
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- b1f643635dbc4542f5af8a13a253b61265a971318fa5d510da579b333ac33e14 (408d87556b5dc8f4afdb57d2652b334142d7678a)0cadd01 -
initial commit
Verified signature6634e68