Instructions to use deimagjas/Phi-3.5-mini-instruct-4bit-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use deimagjas/Phi-3.5-mini-instruct-4bit-sft with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("deimagjas/Phi-3.5-mini-instruct-4bit-sft") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use deimagjas/Phi-3.5-mini-instruct-4bit-sft with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "deimagjas/Phi-3.5-mini-instruct-4bit-sft"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "deimagjas/Phi-3.5-mini-instruct-4bit-sft" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deimagjas/Phi-3.5-mini-instruct-4bit-sft", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Upload folder using huggingface_hub
Browse files- README.md +1 -1
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -12,6 +12,6 @@ widget:
|
|
| 12 |
- messages:
|
| 13 |
- role: user
|
| 14 |
content: Can you provide ways to eat combinations of bananas and dragonfruits?
|
| 15 |
-
library_name: mlx
|
| 16 |
base_model: microsoft/Phi-3-mini-128k-instruct
|
|
|
|
| 17 |
---
|
|
|
|
| 12 |
- messages:
|
| 13 |
- role: user
|
| 14 |
content: Can you provide ways to eat combinations of bananas and dragonfruits?
|
|
|
|
| 15 |
base_model: microsoft/Phi-3-mini-128k-instruct
|
| 16 |
+
library_name: mlx
|
| 17 |
---
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2149696492
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e590602c97567ab8cabe5f4a99b4196cc7e8689fb2b9193de06cdf4739b683d
|
| 3 |
size 2149696492
|