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)# pip install -U transformers accelerate # 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, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Add comprehensive training infrastructure for Phi-3.5-MoE model
Verified signature420a4f2 -
Upload training_data/processed/terraform_expert_realistic_train.jsonl with huggingface_hub
Verified signature2fd69f8 -
Upload training_data/processed/javascript_developer_gd_gradient_descent_train.jsonl with huggingface_hub
Verified signature303f5b8 -
Upload training_data/processed/ext_infrastructure_agent_synthetic_prompts.jsonl with huggingface_hub
Verified signatureea39863 -
Upload training_data/processed/principal_architect_train.jsonl with huggingface_hub
Verified signatureacf3fb5 -
Upload training_data/processed/performance_predictor_enhanced_train.jsonl with huggingface_hub
Verified signature80f4563 -
Upload training_data/processed/knowledge_curator_realistic_train.jsonl with huggingface_hub
Verified signaturee1e7c72 -
Upload training_data/processed/devops_engineer_realistic_train.jsonl with huggingface_hub
Verified signature6876970 -
Upload training_data/processed/security_specialist_realistic_train.jsonl with huggingface_hub
Verified signature62fbb82 -
Upload training_data/processed/ui_ux_designer_enhanced_train.jsonl with huggingface_hub
Verified signaturef286b60 -
Upload training_data/processed/site_reliability_engineer_gd_gradient_descent_train.jsonl with huggingface_hub
Verified signaturec5606f0 -
Upload training_data/processed/javascript_developer_expanded_train.jsonl with huggingface_hub
Verified signature45f4b61 -
Upload training_data/processed/style_train.jsonl with huggingface_hub
Verified signaturee98858d -
Upload training_data/processed/memory_train.jsonl with huggingface_hub
Verified signatured8c45f8 -
Upload training_data/processed/ai_research_scientist_gd_gradient_descent_train.jsonl with huggingface_hub
Verified signature933b97f -
Upload training_data/processed/knowledge_curator_enhanced_train.jsonl with huggingface_hub
Verified signaturebaad162 -
Upload training_data/processed/infrastructure_expert_realistic_train.jsonl with huggingface_hub
Verified signatureb78b785 -
Upload training_data/processed/game_developer_expanded_train.jsonl with huggingface_hub
Verified signature2201b49 -
Upload training_data/processed/infrastructure_train.jsonl with huggingface_hub
Verified signature19b6010 -
Upload training_data/processed/quality_assurance_enhanced_train.jsonl with huggingface_hub
Verified signature1a75aa2 -
Upload training_data/processed/risk_manager_enhanced_train.jsonl with huggingface_hub
Verified signature3f6bb6a -
Upload training_data/processed/iot_engineer_expanded_train.jsonl with huggingface_hub
Verified signaturee700811 -
Upload training_data/processed/architecture_analyzer_train.jsonl with huggingface_hub
Verified signatureff7ee9e -
Upload training_data/processed/business_analyst_expanded_train.jsonl with huggingface_hub
Verified signature4bb39d6 -
Upload training_data/processed/blockchain_developer_expanded_train.jsonl with huggingface_hub
Verified signature79b7856 -
Upload training_data/processed/risk_manager_realistic_train.jsonl with huggingface_hub
Verified signatureb6d5f49 -
Upload training_data/processed/blockchain_developer_gd_gradient_descent_train.jsonl with huggingface_hub
Verified signature6fcd9d1 -
Upload training_data/processed/ml_ops_engineer_gd_gradient_descent_train.jsonl with huggingface_hub
Verified signature1eac306 -
Upload training_data/processed/infrastructure_expert_enhanced_train.jsonl with huggingface_hub
Verified signaturee6de1c7 -
Upload training_data/processed/network_engineer_expanded_train.jsonl with huggingface_hub
Verified signature7b16d3f -
Upload training_data/processed/backend_developer_expanded_train.jsonl with huggingface_hub
Verified signature8c71dc7 -
Upload training_data/processed/unified_infrastructure_dataset.jsonl with huggingface_hub
Verified signature6344a7f -
Upload training_data/processed/empathy_advisor_enhanced_train.jsonl with huggingface_hub
Verified signature0c3b66c -
Upload training_data/processed/master_orchestrator_enhanced_train.jsonl with huggingface_hub
Verified signature7257373 -
Upload training_data/processed/optimization_agent_train.jsonl with huggingface_hub
Verified signature81711da -
Upload training_data/processed/planner_train.jsonl with huggingface_hub
Verified signature416545b -
Upload training_data/processed/site_reliability_engineer_expanded_train.jsonl with huggingface_hub
Verified signature7e38931 -
Upload training_data/processed/terraform_expert_enhanced_train.jsonl with huggingface_hub
Verified signature69d3856 -
Upload training_data/processed/unified_devsecops_dataset.jsonl with huggingface_hub
Verified signature93cfa20 -
Upload training_data/processed/ml_ops_engineer_expanded_train.jsonl with huggingface_hub
Verified signaturea5d5cda -
Upload training_data/processed/multi_agent_synthesizer_train.jsonl with huggingface_hub
Verified signaturefa24200 -
Upload training_data/processed/ai_research_scientist_expanded_train.jsonl with huggingface_hub
Verified signaturecbb29aa -
Upload training_data/processed/product_strategist_realistic_train.jsonl with huggingface_hub
Verified signature746c9e0 -
Upload training_data/processed/security_specialist_enhanced_train.jsonl with huggingface_hub
Verified signaturec091fb9 -
Upload training_data/processed/processed_infrastructure_prompts.jsonl with huggingface_hub
Verified signature112aacd -
Upload training_data/processed/reasoning_engine_realistic_train.jsonl with huggingface_hub
Verified signature95120be -
Upload training_data/processed/php_developer_expanded_train.jsonl with huggingface_hub
Verified signature6cc5b93 -
Upload training_data/processed/rag_train.jsonl with huggingface_hub
Verified signature5df2f06 -
Upload training_data/processed/pattern_recognizer_enhanced_train.jsonl with huggingface_hub
Verified signaturee9be963 -
Upload training_data/processed/comprehensive_infrastructure_dataset.jsonl with huggingface_hub
Verified signature77862fb