Text Generation
Transformers
Safetensors
GGUF
English
mistral
nlp
code
unsloth
trl
sft
conversational
text-generation-inference
Instructions to use VatsalPatel18/phi3-mini-WeatherBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VatsalPatel18/phi3-mini-WeatherBot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VatsalPatel18/phi3-mini-WeatherBot") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("VatsalPatel18/phi3-mini-WeatherBot") model = AutoModelForCausalLM.from_pretrained("VatsalPatel18/phi3-mini-WeatherBot", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use VatsalPatel18/phi3-mini-WeatherBot with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf VatsalPatel18/phi3-mini-WeatherBot # Run inference directly in the terminal: llama cli -hf VatsalPatel18/phi3-mini-WeatherBot
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf VatsalPatel18/phi3-mini-WeatherBot # Run inference directly in the terminal: llama cli -hf VatsalPatel18/phi3-mini-WeatherBot
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf VatsalPatel18/phi3-mini-WeatherBot # Run inference directly in the terminal: ./build/bin/llama cli -hf VatsalPatel18/phi3-mini-WeatherBot
Use Docker
docker model run hf.co/VatsalPatel18/phi3-mini-WeatherBot
- Llama new
- LM Studio
- Jan
- vLLM
How to use VatsalPatel18/phi3-mini-WeatherBot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VatsalPatel18/phi3-mini-WeatherBot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VatsalPatel18/phi3-mini-WeatherBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/VatsalPatel18/phi3-mini-WeatherBot
- SGLang
How to use VatsalPatel18/phi3-mini-WeatherBot with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "VatsalPatel18/phi3-mini-WeatherBot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VatsalPatel18/phi3-mini-WeatherBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "VatsalPatel18/phi3-mini-WeatherBot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VatsalPatel18/phi3-mini-WeatherBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use VatsalPatel18/phi3-mini-WeatherBot with Ollama:
ollama run hf.co/VatsalPatel18/phi3-mini-WeatherBot
- Unsloth Desktop
- Docker Model Runner
How to use VatsalPatel18/phi3-mini-WeatherBot with Docker Model Runner:
docker model run hf.co/VatsalPatel18/phi3-mini-WeatherBot
- Lemonade
How to use VatsalPatel18/phi3-mini-WeatherBot with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull VatsalPatel18/phi3-mini-WeatherBot
Run and chat with the model
lemonade run user.phi3-mini-WeatherBot-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Commit History
-
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster565055a -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x fastere65b1b2
-
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x fasterd1d12f1
-
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster6a8db3f -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster97596ff -
Trained with Unsloth
Verified signature23f4558 -
Upload tokenizer
Verified signature2bf64c7
-
Upload tokenizer
Verified signature93a2447
-
Upload SECURITY.md with huggingface_hub
Verified signature0c9d693 -
Upload NOTICE.md with huggingface_hub
Verified signature7ff4587 -
Upload README.md with huggingface_hub
Verified signaturef65a1a4 -
Upload LICENSE with huggingface_hub
Verified signature2246f5d -
Upload Modelfile_fp16 with huggingface_hub
Verified signature3f23d34 -
Upload CODE_OF_CONDUCT.md with huggingface_hub
Verified signature40f713a -
Upload Modelfile_q4 with huggingface_hub
Verified signature6a90001 -
Upload Phi-3-mini-4k-instruct-q4.gguf with huggingface_hub
Verified signature5b1a56c -
Upload SECURITY.md with huggingface_hub
Verified signature454a720 -
Upload NOTICE.md with huggingface_hub
Verified signature9127f2b -
Upload README.md with huggingface_hub
Verified signatureafcf0ea -
Upload LICENSE with huggingface_hub
Verified signature684246a -
Upload Modelfile_fp16 with huggingface_hub
Verified signature8ae50a4 -
Upload CODE_OF_CONDUCT.md with huggingface_hub
Verified signature4e73c00 -
Upload Modelfile_q4 with huggingface_hub
Verified signatureab49137 -
Upload Phi-3-mini-4k-instruct-q4.gguf with huggingface_hub
Verified signaturecb1a926 -
initial commit
Verified signaturef612aa1