Instructions to use shitshow123/moe_scratch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shitshow123/moe_scratch with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shitshow123/moe_scratch")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("shitshow123/moe_scratch") model = AutoModelForCausalLM.from_pretrained("shitshow123/moe_scratch") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use shitshow123/moe_scratch with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shitshow123/moe_scratch" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shitshow123/moe_scratch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/shitshow123/moe_scratch
- SGLang
How to use shitshow123/moe_scratch 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 "shitshow123/moe_scratch" \ --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": "shitshow123/moe_scratch", "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 "shitshow123/moe_scratch" \ --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": "shitshow123/moe_scratch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use shitshow123/moe_scratch with Docker Model Runner:
docker model run hf.co/shitshow123/moe_scratch
Create README.md
#1
by shitshow123 - opened
README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
license
|
| 6 |
+
|
| 7 |
+
+ Add License
|
| 8 |
+
datasets
|
| 9 |
+
|
| 10 |
+
+ Add Datasets
|
| 11 |
+
language
|
| 12 |
+
|
| 13 |
+
+ Add Languages
|
| 14 |
+
metrics
|
| 15 |
+
|
| 16 |
+
+ Add Metrics
|
| 17 |
+
library_name
|
| 18 |
+
|
| 19 |
+
+ Add Library
|
| 20 |
+
pipeline_tag
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
Auto-detected
|
| 24 |
+
tags
|
| 25 |
+
|
| 26 |
+
+ Add Tags
|
| 27 |
+
Eval Resultslicense
|
| 28 |
+
|
| 29 |
+
+ Add License
|
| 30 |
+
datasets
|
| 31 |
+
|
| 32 |
+
+ Add Datasets
|
| 33 |
+
language
|
| 34 |
+
|
| 35 |
+
+ Add Languages
|
| 36 |
+
metrics
|
| 37 |
+
|
| 38 |
+
+ Add Metrics
|
| 39 |
+
library_name
|
| 40 |
+
|
| 41 |
+
+ Add Library
|
| 42 |
+
pipeline_tag
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
Auto-detected
|
| 46 |
+
tags
|
| 47 |
+
|
| 48 |
+
+ Add Tags
|
| 49 |
+
Eval Resultslicense
|
| 50 |
+
|
| 51 |
+
+ Add License
|
| 52 |
+
datasets
|
| 53 |
+
|
| 54 |
+
+ Add Datasets
|
| 55 |
+
language
|
| 56 |
+
|
| 57 |
+
+ Add Languages
|
| 58 |
+
metrics
|
| 59 |
+
|
| 60 |
+
+ Add Metrics
|
| 61 |
+
library_name
|
| 62 |
+
|
| 63 |
+
+ Add Library
|
| 64 |
+
pipeline_tag
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
Auto-detected
|
| 68 |
+
tags
|
| 69 |
+
|
| 70 |
+
+ Add Tags
|
| 71 |
+
Eval Resultslicense
|
| 72 |
+
|
| 73 |
+
+ Add License
|
| 74 |
+
datasets
|
| 75 |
+
|
| 76 |
+
+ Add Datasets
|
| 77 |
+
language
|
| 78 |
+
|
| 79 |
+
+ Add Languages
|
| 80 |
+
metrics
|
| 81 |
+
|
| 82 |
+
+ Add Metrics
|
| 83 |
+
library_name
|
| 84 |
+
|
| 85 |
+
+ Add Library
|
| 86 |
+
pipeline_tag
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
Auto-detected
|
| 90 |
+
tags
|
| 91 |
+
|
| 92 |
+
+ Add Tags
|
| 93 |
+
Eval Results
|