Instructions to use lmbelo/Phi-3-mini-4k-Function-Calling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use lmbelo/Phi-3-mini-4k-Function-Calling 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("lmbelo/Phi-3-mini-4k-Function-Calling") 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 lmbelo/Phi-3-mini-4k-Function-Calling with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "lmbelo/Phi-3-mini-4k-Function-Calling"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "lmbelo/Phi-3-mini-4k-Function-Calling" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmbelo/Phi-3-mini-4k-Function-Calling", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- fffbd6f6631b1cdb3fa40c475c109c98f809eceb9375b020b6c27a23cf057899 (40c0e3e9a8baeaef5f586c8a86139ccf11e58fec) - 8ab69ab6e4337d1ad75425a1d7af947d6a68f97890f45e051ffad95cbba9cf7f (7b224c0fd25627a959bc136808cbcdbc98a046f9) - 40b179af0d115fdf6e9e4d7abb3cce2525116ea96b2324a7973e0b713a82508e (33c4cbf05dd37c25b1d99a0e96360c0a61c7f292)f86dd8b