Instructions to use ChunB1/Phi-3-interact with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChunB1/Phi-3-interact with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ChunB1/Phi-3-interact", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ChunB1/Phi-3-interact", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ChunB1/Phi-3-interact with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ChunB1/Phi-3-interact" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ChunB1/Phi-3-interact", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ChunB1/Phi-3-interact
- SGLang
How to use ChunB1/Phi-3-interact 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 "ChunB1/Phi-3-interact" \ --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": "ChunB1/Phi-3-interact", "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 "ChunB1/Phi-3-interact" \ --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": "ChunB1/Phi-3-interact", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ChunB1/Phi-3-interact with Docker Model Runner:
docker model run hf.co/ChunB1/Phi-3-interact
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,7 +17,6 @@ It achieves 0.735 accuracy on character_interaction dataset (test split), which
|
|
| 17 |
|
| 18 |
<!-- Provide a longer summary of what this model is. -->
|
| 19 |
|
| 20 |
-
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 21 |
|
| 22 |
- **Developed by:** [Michael Xu]
|
| 23 |
- **Funded by:** [Andrew Piper]
|
|
|
|
| 17 |
|
| 18 |
<!-- Provide a longer summary of what this model is. -->
|
| 19 |
|
|
|
|
| 20 |
|
| 21 |
- **Developed by:** [Michael Xu]
|
| 22 |
- **Funded by:** [Andrew Piper]
|