•
phi
The latest in the Phi model series: suitable for chats with a context of up to 16K tokens
Model info
Model
phi-4
Author
Microsoft Research
Repository
Arch
phi
Parameters
14B
Format
gguf
Size on disk
about 9.05 GB
Download the model using lms
— LM Studio's developer CLI.
lms get phi-4
curl http://localhost:1234/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "phi-4",
"messages": [
{ "role": "system", "content": "Always answer in rhymes." },
{ "role": "user", "content": "Introduce yourself." }
],
"temperature": 0.7,
"max_tokens": -1,
"stream": true
}'
lms log stream
to see your prompts as they are sent to the LLM.lmstudio.js
- LM Studio SDK documentation (TypeScript)lms log stream
- Stream server logslms
- LM Studio's CLI documentation