Instructions to use jesusoctavioas/phi-2-mlx-4Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use jesusoctavioas/phi-2-mlx-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("jesusoctavioas/phi-2-mlx-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 jesusoctavioas/phi-2-mlx-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 "jesusoctavioas/phi-2-mlx-4Bit" --prompt "Once upon a time"
- Atomic Chat
Commit History
-
Update README.md
Verified signature6fef5f4 -
Upload README.md with huggingface_hub
Verified signature4aa428a -
Upload generation_config.json with huggingface_hub
Verified signature29e4447 -
Upload tokenizer.json with huggingface_hub
Verified signatured5f0f0c -
Upload merges.txt with huggingface_hub
Verified signaturec72bf5c -
Upload vocab.json with huggingface_hub
Verified signatured6e1512 -
Upload added_tokens.json with huggingface_hub
Verified signatured6b9aec -
Upload special_tokens_map.json with huggingface_hub
Verified signature038f5ac -
Upload tokenizer_config.json with huggingface_hub
Verified signature0ae6b60 -
Upload config.json with huggingface_hub
Verified signaturec09eb9e -
Upload model.safetensors.index.json with huggingface_hub
Verified signature785e95a -
Upload model.safetensors with huggingface_hub
Verified signature66c7990 -
initial commit
Verified signaturecfa53e1