Instructions to use ianshank/phi-35-moe-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ianshank/phi-35-moe-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ianshank/phi-35-moe-instruct", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ianshank/phi-35-moe-instruct", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("ianshank/phi-35-moe-instruct", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ianshank/phi-35-moe-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ianshank/phi-35-moe-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ianshank/phi-35-moe-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ianshank/phi-35-moe-instruct
- SGLang
How to use ianshank/phi-35-moe-instruct 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 "ianshank/phi-35-moe-instruct" \ --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": "ianshank/phi-35-moe-instruct", "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 "ianshank/phi-35-moe-instruct" \ --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": "ianshank/phi-35-moe-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ianshank/phi-35-moe-instruct with Docker Model Runner:
docker model run hf.co/ianshank/phi-35-moe-instruct
Upload training_data/vector_db/vector_db_summary.txt with huggingface_hub
Browse files
training_data/vector_db/vector_db_summary.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ChromaDB Vector Database
|
| 2 |
+
=======================
|
| 3 |
+
|
| 4 |
+
Source: /Volumes/Mango_MAS/rag/chroma
|
| 5 |
+
Collection: rag_docs
|
| 6 |
+
Total chunks: 100,678
|
| 7 |
+
Total documents: 123
|
| 8 |
+
Database size: ~2.1 GB
|
| 9 |
+
Query time: 0.343s average
|
| 10 |
+
|
| 11 |
+
Files included:
|
| 12 |
+
.DS_Store
|
| 13 |
+
chroma.sqlite3
|
| 14 |
+
f7af3ed3-439e-477c-b161-bc0c5a8616be/data_level0.bin
|
| 15 |
+
f7af3ed3-439e-477c-b161-bc0c5a8616be/length.bin
|
| 16 |
+
f7af3ed3-439e-477c-b161-bc0c5a8616be/link_lists.bin
|
| 17 |
+
f7af3ed3-439e-477c-b161-bc0c5a8616be/header.bin
|
| 18 |
+
f7af3ed3-439e-477c-b161-bc0c5a8616be/index_metadata.pickle
|
| 19 |
+
df2626b1-7d56-4be7-a13c-47fd09e0d92c/data_level0.bin
|
| 20 |
+
df2626b1-7d56-4be7-a13c-47fd09e0d92c/length.bin
|
| 21 |
+
df2626b1-7d56-4be7-a13c-47fd09e0d92c/link_lists.bin
|
| 22 |
+
df2626b1-7d56-4be7-a13c-47fd09e0d92c/header.bin
|
| 23 |
+
79577857-a05b-4265-8e87-9c0ec0c280c6/data_level0.bin
|
| 24 |
+
79577857-a05b-4265-8e87-9c0ec0c280c6/length.bin
|
| 25 |
+
79577857-a05b-4265-8e87-9c0ec0c280c6/link_lists.bin
|
| 26 |
+
79577857-a05b-4265-8e87-9c0ec0c280c6/header.bin
|
| 27 |
+
bd9ef7e1-32f4-49b3-9db4-73006a1153b2/data_level0.bin
|
| 28 |
+
bd9ef7e1-32f4-49b3-9db4-73006a1153b2/length.bin
|
| 29 |
+
bd9ef7e1-32f4-49b3-9db4-73006a1153b2/link_lists.bin
|
| 30 |
+
bd9ef7e1-32f4-49b3-9db4-73006a1153b2/header.bin
|