Instructions to use lschaffer/phi4mini-weathertoolsmcp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps
- Unsloth Studio new
How to use lschaffer/phi4mini-weathertoolsmcp with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for lschaffer/phi4mini-weathertoolsmcp to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for lschaffer/phi4mini-weathertoolsmcp to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lschaffer/phi4mini-weathertoolsmcp to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="lschaffer/phi4mini-weathertoolsmcp", max_seq_length=2048, )
WeatherSensors MCP Agent - Phi-4-mini-instruct
This model was fine-tuned for MCP (Model Context Protocol) tool-calling using Unsloth. It has been explicitly trained to avoid "tool-calling bias" by ignoring tools during general conversation and only invoking them when strictly necessary.
Usage with Ollama (Modelfile)
You can quickly run this model locally using Ollama. Save the following as Modelfile:
FROM phi4mini-tealkit-unsloth-Q4_K_M.gguf
TEMPLATE """<|im_start|>system
{{ .System }}<|im_sep|>
<|im_start|>user
{{ .Prompt }}<|im_sep|>
<|im_start|>assistant
"""
SYSTEM """You are a specialized WeatherSensors MCP Agent with access to tools.
CRITICAL INSTRUCTIONS:
1. Do NOT call a tool for general greetings, casual conversation, or questions you can answer using your own knowledge.
2. If a user request requires external data or an action covered by your tools, respond ONLY with the appropriate JSON tool call.
3. If no tool is relevant to the request, answer the user directly in plain text. Do not invent or hallucinate a tool call."""
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for lschaffer/phi4mini-weathertoolsmcp
Base model
microsoft/Phi-4-mini-instruct Finetuned
unsloth/Phi-4-mini-instruct