Instructions to use flockgo/task-17-microsoft-Phi-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use flockgo/task-17-microsoft-Phi-4 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-4-mini-instruct") model = PeftModel.from_pretrained(base_model, "flockgo/task-17-microsoft-Phi-4") - Transformers
How to use flockgo/task-17-microsoft-Phi-4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flockgo/task-17-microsoft-Phi-4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("flockgo/task-17-microsoft-Phi-4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flockgo/task-17-microsoft-Phi-4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flockgo/task-17-microsoft-Phi-4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flockgo/task-17-microsoft-Phi-4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flockgo/task-17-microsoft-Phi-4
- SGLang
How to use flockgo/task-17-microsoft-Phi-4 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 "flockgo/task-17-microsoft-Phi-4" \ --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": "flockgo/task-17-microsoft-Phi-4", "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 "flockgo/task-17-microsoft-Phi-4" \ --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": "flockgo/task-17-microsoft-Phi-4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flockgo/task-17-microsoft-Phi-4 with Docker Model Runner:
docker model run hf.co/flockgo/task-17-microsoft-Phi-4
Commit History
-
Upload folder using huggingface_hub
Verified signaturebc317f8 -
Upload folder using huggingface_hub
Verified signature464be4c -
Upload folder using huggingface_hub
Verified signatureb7cd15e -
Upload folder using huggingface_hub
Verified signature2fb1192
-
Upload folder using huggingface_hub
Verified signature650a139 -
Upload folder using huggingface_hub
Verified signatureee55a68 -
Upload folder using huggingface_hub
Verified signature13c2000 -
Upload folder using huggingface_hub
Verified signature68179b8
-
Upload folder using huggingface_hub
Verified signaturefbb5dd5 -
Upload folder using huggingface_hub
Verified signatureec68969 -
Upload folder using huggingface_hub
Verified signature841622d -
Upload folder using huggingface_hub
Verified signaturec6ec5e4
-
Upload folder using huggingface_hub
Verified signaturea0881c3
-
Upload folder using huggingface_hub
Verified signature81dc305 -
Upload folder using huggingface_hub
Verified signaturedc3e744 -
Upload folder using huggingface_hub
Verified signature9e5802e
-
Upload folder using huggingface_hub
Verified signaturef813ec5 -
Upload folder using huggingface_hub
Verified signatureb493356 -
Upload folder using huggingface_hub
Verified signature76d208e -
Upload folder using huggingface_hub
Verified signaturefde3fcc
-
Upload folder using huggingface_hub
Verified signature05fc324
-
Upload folder using huggingface_hub
Verified signature0113632 -
Upload folder using huggingface_hub
Verified signature9542e49 -
Upload folder using huggingface_hub
Verified signature624efbd -
Upload folder using huggingface_hub
Verified signature6ce11e1
-
Upload folder using huggingface_hub
Verified signature5352f60 -
Upload folder using huggingface_hub
Verified signature99d428c -
Upload folder using huggingface_hub
Verified signaturec2a7f85 -
Upload folder using huggingface_hub
Verified signature545d64a -
Upload folder using huggingface_hub
Verified signature31ce089
-
Upload folder using huggingface_hub
Verified signature37b13d6 -
Upload folder using huggingface_hub
Verified signature5fc2064 -
Upload folder using huggingface_hub
Verified signaturec16002e -
Upload folder using huggingface_hub
Verified signature8995d37
-
Upload folder using huggingface_hub
Verified signature549f68f -
Upload folder using huggingface_hub
Verified signature943ad24 -
Upload folder using huggingface_hub
Verified signatureba28b31 -
Upload folder using huggingface_hub
Verified signaturede647e6
-
Upload folder using huggingface_hub
Verified signature71ec55c -
Upload folder using huggingface_hub
Verified signature88d7e9f -
Upload folder using huggingface_hub
Verified signaturec237429 -
Upload folder using huggingface_hub
Verified signaturee5b85c4
-
Upload folder using huggingface_hub
Verified signatureb99e81d -
Upload folder using huggingface_hub
Verified signatureecf5c5e -
Upload folder using huggingface_hub
Verified signature8ff1a80 -
Upload folder using huggingface_hub
Verified signaturef5d1115 -
Upload folder using huggingface_hub
Verified signatured5d93c9 -
Upload folder using huggingface_hub
Verified signaturec385684 -
Upload folder using huggingface_hub
Verified signaturef318dc7 -
Upload folder using huggingface_hub
Verified signature7822544