Text Generation
Transformers
PyTorch
Safetensors
phi-msft
axolotl
Generated from Trainer
custom_code
Instructions to use satpalsr/phi2-filter2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use satpalsr/phi2-filter2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="satpalsr/phi2-filter2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("satpalsr/phi2-filter2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use satpalsr/phi2-filter2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "satpalsr/phi2-filter2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "satpalsr/phi2-filter2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/satpalsr/phi2-filter2
- SGLang
How to use satpalsr/phi2-filter2 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 "satpalsr/phi2-filter2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "satpalsr/phi2-filter2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "satpalsr/phi2-filter2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "satpalsr/phi2-filter2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use satpalsr/phi2-filter2 with Docker Model Runner:
docker model run hf.co/satpalsr/phi2-filter2
Commit History
-
End of training
Verified signaturebe89f66 -
Training in progress, step 1888
Verified signature0f966d0 -
Training in progress, step 1770
Verified signature74ddb10 -
Training in progress, step 1652
Verified signatured362615 -
Training in progress, step 1534
Verified signaturef02f491 -
Training in progress, step 1416
Verified signatured77ef45 -
Training in progress, step 1298
Verified signature6e8048d -
Training in progress, step 1180
Verified signatureb4c5714 -
Training in progress, step 1062
Verified signature3623e1b -
Training in progress, step 944
Verified signature1dbf50a -
Training in progress, step 826
Verified signatureb4df247 -
Training in progress, step 708
Verified signaturefb02715 -
Training in progress, step 590
Verified signature25a562f -
Training in progress, step 472
Verified signaturec5f8f8a -
Training in progress, step 354
Verified signaturec963fde -
Training in progress, step 236
Verified signature2a9077f -
Training in progress, step 118
Verified signaturec5758cf
-
End of training
Verified signature6e609aa -
Training in progress, step 464
Verified signature1ceda3a -
Training in progress, step 348
Verified signaturef6dbeb1 -
Training in progress, step 232
Verified signature3c5d2ba -
Training in progress, step 116
Verified signatureb7ab57f -
initial commit
Verified signature9538e5f