Discussion
Collection
11 items • Updated
How to use TakalaWang/Discussion-Phi-4-multimodal-instruct-audio with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="TakalaWang/Discussion-Phi-4-multimodal-instruct-audio", trust_remote_code=True)
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("TakalaWang/Discussion-Phi-4-multimodal-instruct-audio", trust_remote_code=True, device_map="auto")How to use TakalaWang/Discussion-Phi-4-multimodal-instruct-audio with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "TakalaWang/Discussion-Phi-4-multimodal-instruct-audio"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "TakalaWang/Discussion-Phi-4-multimodal-instruct-audio",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/TakalaWang/Discussion-Phi-4-multimodal-instruct-audio
How to use TakalaWang/Discussion-Phi-4-multimodal-instruct-audio with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "TakalaWang/Discussion-Phi-4-multimodal-instruct-audio" \
--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": "TakalaWang/Discussion-Phi-4-multimodal-instruct-audio",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "TakalaWang/Discussion-Phi-4-multimodal-instruct-audio" \
--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": "TakalaWang/Discussion-Phi-4-multimodal-instruct-audio",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use TakalaWang/Discussion-Phi-4-multimodal-instruct-audio with Docker Model Runner:
docker model run hf.co/TakalaWang/Discussion-Phi-4-multimodal-instruct-audio
This model is a fine-tuned version of microsoft/Phi-4-multimodal-instruct on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 3.2573 | 0.2235 | 10 | 14.4554 |
| 0.3506 | 0.4469 | 20 | 14.1744 |
| 0.2464 | 0.6704 | 30 | 14.0838 |
| 0.3058 | 0.8939 | 40 | 14.0603 |
| 0.1855 | 1.1117 | 50 | 14.0604 |
| 0.1807 | 1.3352 | 60 | 14.0120 |
| 0.2227 | 1.5587 | 70 | 14.0404 |
| 0.2353 | 1.7821 | 80 | 14.0772 |
| 0.1167 | 2.0 | 90 | 14.1155 |
| 0.2013 | 2.2235 | 100 | 14.0047 |
| 0.1677 | 2.4469 | 110 | 13.9101 |
| 0.172 | 2.6704 | 120 | 13.9451 |
| 0.1325 | 2.8939 | 130 | 14.0220 |
Base model
microsoft/Phi-4-multimodal-instruct