Instructions to use aloizidis/phi3-mini-4k-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use aloizidis/phi3-mini-4k-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("aloizidis/phi3-mini-4k-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use aloizidis/phi3-mini-4k-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "aloizidis/phi3-mini-4k-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "aloizidis/phi3-mini-4k-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aloizidis/phi3-mini-4k-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- 0513b21536722053de29e14d15f012ac5a55ce9af8ab551060a17d7d620aa4c9 (e879104ee2c801a8ecf9a74820cf213b13e0780b) - 5baf753a00e9ec54ff38c7c30d39da7204c5c003fda5270d7d73b83d52306be4 (1b75e5a90ed4c849bd68d4202592301d8e33789d) - ef4a56fd4bb61946d5b41be05c2d2f8a0e52df3d8d3f3b880d2b2d2102fbd145 (903fb1e32f245cd0e23f187fa4cd80c0db347fcd)913c2f2