Instructions to use NLP-RISE/gpt2moe_dom_het3-T_1000mb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NLP-RISE/gpt2moe_dom_het3-T_1000mb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NLP-RISE/gpt2moe_dom_het3-T_1000mb")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("NLP-RISE/gpt2moe_dom_het3-T_1000mb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NLP-RISE/gpt2moe_dom_het3-T_1000mb with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NLP-RISE/gpt2moe_dom_het3-T_1000mb" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NLP-RISE/gpt2moe_dom_het3-T_1000mb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NLP-RISE/gpt2moe_dom_het3-T_1000mb
- SGLang
How to use NLP-RISE/gpt2moe_dom_het3-T_1000mb 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 "NLP-RISE/gpt2moe_dom_het3-T_1000mb" \ --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": "NLP-RISE/gpt2moe_dom_het3-T_1000mb", "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 "NLP-RISE/gpt2moe_dom_het3-T_1000mb" \ --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": "NLP-RISE/gpt2moe_dom_het3-T_1000mb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NLP-RISE/gpt2moe_dom_het3-T_1000mb with Docker Model Runner:
docker model run hf.co/NLP-RISE/gpt2moe_dom_het3-T_1000mb
|
Download README.md from NLP-RISE/gpt2moe_dom_het3-T_1000mb: direct link, hf CLI and curl.
- Browser
- Download file 12.7 kB
-
https://huggingface.co/NLP-RISE/gpt2moe_dom_het3-T_1000mb/resolve/main/README.md
- Command line
-
hf download hf://NLP-RISE/gpt2moe_dom_het3-T_1000mb/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/NLP-RISE/gpt2moe_dom_het3-T_1000mb/resolve/main/README.md
12.7 kB
| library_name: transformers | |
| tags: | |
| - generated_from_trainer | |
| datasets: | |
| - arrow | |
| model-index: | |
| - name: gpt2moe_dom_het3-T_1000mb | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # gpt2moe_dom_het3-T_1000mb | |
| This model is a fine-tuned version of [](https://huggingface.co/) on the arrow dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 3.6640 | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 0.0001 | |
| - train_batch_size: 8 | |
| - eval_batch_size: 4 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 8 | |
| - total_train_batch_size: 64 | |
| - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-06 and optimizer_args=No additional optimizer arguments | |
| - lr_scheduler_type: linear | |
| - lr_scheduler_warmup_steps: 41373 | |
| - training_steps: 413730 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | | |
| |:-------------:|:------:|:------:|:---------------:| | |
| | No log | 0 | 0 | 11.0730 | | |
| | 7.9049 | 0.0483 | 2000 | 7.9657 | | |
| | 6.8967 | 0.0967 | 4000 | 6.9972 | | |
| | 6.3565 | 0.1450 | 6000 | 6.4422 | | |
| | 5.968 | 0.1934 | 8000 | 6.0479 | | |
| | 5.699 | 0.2417 | 10000 | 5.7468 | | |
| | 5.4838 | 0.2900 | 12000 | 5.5057 | | |
| | 5.3207 | 0.3384 | 14000 | 5.3135 | | |
| | 5.1871 | 0.3867 | 16000 | 5.1569 | | |
| | 5.0688 | 0.4351 | 18000 | 5.0064 | | |
| | 4.9783 | 0.4834 | 20000 | 4.8905 | | |
| | 4.8996 | 0.5317 | 22000 | 4.7851 | | |
| | 4.8395 | 0.5801 | 24000 | 4.7067 | | |
| | 4.7729 | 0.6284 | 26000 | 4.6475 | | |
| | 4.7294 | 0.6768 | 28000 | 4.5823 | | |
| | 4.6964 | 0.7251 | 30000 | 4.5361 | | |
| | 4.6523 | 0.7735 | 32000 | 4.4918 | | |
| | 4.6303 | 0.8218 | 34000 | 4.4538 | | |
| | 4.5831 | 0.8701 | 36000 | 4.4143 | | |
| | 4.5664 | 0.9185 | 38000 | 4.3882 | | |
| | 4.5417 | 0.9668 | 40000 | 4.3590 | | |
| | 4.4976 | 1.0152 | 42000 | 4.3305 | | |
| | 4.488 | 1.0635 | 44000 | 4.3000 | | |
| | 4.4621 | 1.1118 | 46000 | 4.2737 | | |
| | 4.4449 | 1.1602 | 48000 | 4.2459 | | |
| | 4.417 | 1.2085 | 50000 | 4.2223 | | |
| | 4.4086 | 1.2569 | 52000 | 4.2061 | | |
| | 4.3847 | 1.3052 | 54000 | 4.1843 | | |
| | 4.3719 | 1.3535 | 56000 | 4.1663 | | |
| | 4.3573 | 1.4019 | 58000 | 4.1496 | | |
| | 4.3397 | 1.4502 | 60000 | 4.1333 | | |
| | 4.3246 | 1.4986 | 62000 | 4.1200 | | |
| | 4.3089 | 1.5469 | 64000 | 4.1042 | | |
| | 4.3121 | 1.5952 | 66000 | 4.0919 | | |
| | 4.3023 | 1.6436 | 68000 | 4.0804 | | |
| | 4.2881 | 1.6919 | 70000 | 4.0673 | | |
| | 4.2788 | 1.7403 | 72000 | 4.0563 | | |
| | 4.2763 | 1.7886 | 74000 | 4.0463 | | |
| | 4.2625 | 1.8369 | 76000 | 4.0355 | | |
| | 4.2481 | 1.8853 | 78000 | 4.0287 | | |
| | 4.2505 | 1.9336 | 80000 | 4.0176 | | |
| | 4.2351 | 1.9820 | 82000 | 4.0087 | | |
| | 4.2161 | 2.0303 | 84000 | 4.0028 | | |
| | 4.2024 | 2.0787 | 86000 | 3.9948 | | |
| | 4.2005 | 2.1270 | 88000 | 3.9896 | | |
| | 4.2027 | 2.1753 | 90000 | 3.9804 | | |
| | 4.201 | 2.2237 | 92000 | 3.9729 | | |
| | 4.1853 | 2.2720 | 94000 | 3.9688 | | |
| | 4.1902 | 2.3204 | 96000 | 3.9599 | | |
| | 4.1739 | 2.3687 | 98000 | 3.9539 | | |
| | 4.1753 | 2.4170 | 100000 | 3.9505 | | |
| | 4.1753 | 2.4654 | 102000 | 3.9435 | | |
| | 4.1754 | 2.5137 | 104000 | 3.9387 | | |
| | 4.1669 | 2.5621 | 106000 | 3.9312 | | |
| | 4.1652 | 2.6104 | 108000 | 3.9258 | | |
| | 4.1533 | 2.6587 | 110000 | 3.9206 | | |
| | 4.1599 | 2.7071 | 112000 | 3.9150 | | |
| | 4.1431 | 2.7554 | 114000 | 3.9115 | | |
| | 4.148 | 2.8038 | 116000 | 3.9070 | | |
| | 4.1304 | 2.8521 | 118000 | 3.9012 | | |
| | 4.1465 | 2.9004 | 120000 | 3.8978 | | |
| | 4.1353 | 2.9488 | 122000 | 3.8925 | | |
| | 4.1389 | 2.9971 | 124000 | 3.8881 | | |
| | 4.1148 | 3.0455 | 126000 | 3.8846 | | |
| | 4.1086 | 3.0938 | 128000 | 3.8829 | | |
| | 4.1081 | 3.1421 | 130000 | 3.8796 | | |
| | 4.1093 | 3.1905 | 132000 | 3.8757 | | |
| | 4.1097 | 3.2388 | 134000 | 3.8718 | | |
| | 4.1035 | 3.2872 | 136000 | 3.8683 | | |
| | 4.1033 | 3.3355 | 138000 | 3.8645 | | |
| | 4.0917 | 3.3838 | 140000 | 3.8616 | | |
| | 4.0979 | 3.4322 | 142000 | 3.8582 | | |
| | 4.0882 | 3.4805 | 144000 | 3.8542 | | |
| | 4.0962 | 3.5289 | 146000 | 3.8506 | | |
| | 4.0893 | 3.5772 | 148000 | 3.8476 | | |
| | 4.0875 | 3.6256 | 150000 | 3.8446 | | |
| | 4.0802 | 3.6739 | 152000 | 3.8412 | | |
| | 4.0895 | 3.7222 | 154000 | 3.8397 | | |
| | 4.0838 | 3.7706 | 156000 | 3.8346 | | |
| | 4.0803 | 3.8189 | 158000 | 3.8330 | | |
| | 4.0792 | 3.8673 | 160000 | 3.8288 | | |
| | 4.0699 | 3.9156 | 162000 | 3.8265 | | |
| | 4.0761 | 3.9639 | 164000 | 3.8241 | | |
| | 4.0434 | 4.0123 | 166000 | 3.8231 | | |
| | 4.0487 | 4.0606 | 168000 | 3.8208 | | |
| | 4.0457 | 4.1090 | 170000 | 3.8194 | | |
| | 4.0539 | 4.1573 | 172000 | 3.8173 | | |
| | 4.0417 | 4.2056 | 174000 | 3.8144 | | |
| | 4.0488 | 4.2540 | 176000 | 3.8121 | | |
| | 4.0514 | 4.3023 | 178000 | 3.8088 | | |
| | 4.0464 | 4.3507 | 180000 | 3.8065 | | |
| | 4.0441 | 4.3990 | 182000 | 3.8034 | | |
| | 4.0406 | 4.4473 | 184000 | 3.8031 | | |
| | 4.044 | 4.4957 | 186000 | 3.8005 | | |
| | 4.0342 | 4.5440 | 188000 | 3.7969 | | |
| | 4.0409 | 4.5924 | 190000 | 3.7947 | | |
| | 4.0436 | 4.6407 | 192000 | 3.7933 | | |
| | 4.042 | 4.6890 | 194000 | 3.7902 | | |
| | 4.0404 | 4.7374 | 196000 | 3.7888 | | |
| | 4.0321 | 4.7857 | 198000 | 3.7851 | | |
| | 4.0363 | 4.8341 | 200000 | 3.7824 | | |
| | 4.0386 | 4.8824 | 202000 | 3.7804 | | |
| | 4.0283 | 4.9308 | 204000 | 3.7784 | | |
| | 4.0298 | 4.9791 | 206000 | 3.7782 | | |
| | 4.0002 | 5.0274 | 208000 | 3.7777 | | |
| | 4.0016 | 5.0758 | 210000 | 3.7761 | | |
| | 4.0064 | 5.1241 | 212000 | 3.7752 | | |
| | 3.999 | 5.1725 | 214000 | 3.7733 | | |
| | 4.0079 | 5.2208 | 216000 | 3.7717 | | |
| | 4.006 | 5.2691 | 218000 | 3.7678 | | |
| | 4.01 | 5.3175 | 220000 | 3.7676 | | |
| | 3.9997 | 5.3658 | 222000 | 3.7655 | | |
| | 4.0041 | 5.4142 | 224000 | 3.7643 | | |
| | 4.0031 | 5.4625 | 226000 | 3.7616 | | |
| | 4.0016 | 5.5108 | 228000 | 3.7602 | | |
| | 4.003 | 5.5592 | 230000 | 3.7584 | | |
| | 3.9959 | 5.6075 | 232000 | 3.7570 | | |
| | 4.0033 | 5.6559 | 234000 | 3.7544 | | |
| | 4.0039 | 5.7042 | 236000 | 3.7524 | | |
| | 3.9962 | 5.7525 | 238000 | 3.7516 | | |
| | 4.0036 | 5.8009 | 240000 | 3.7488 | | |
| | 3.9968 | 5.8492 | 242000 | 3.7470 | | |
| | 3.9951 | 5.8976 | 244000 | 3.7449 | | |
| | 3.9972 | 5.9459 | 246000 | 3.7436 | | |
| | 3.9922 | 5.9942 | 248000 | 3.7414 | | |
| | 3.9711 | 6.0426 | 250000 | 3.7429 | | |
| | 3.967 | 6.0909 | 252000 | 3.7422 | | |
| | 3.9665 | 6.1393 | 254000 | 3.7420 | | |
| | 3.9723 | 6.1876 | 256000 | 3.7399 | | |
| | 3.9701 | 6.2360 | 258000 | 3.7383 | | |
| | 3.9762 | 6.2843 | 260000 | 3.7377 | | |
| | 3.9778 | 6.3326 | 262000 | 3.7348 | | |
| | 3.9834 | 6.3810 | 264000 | 3.7339 | | |
| | 3.9781 | 6.4293 | 266000 | 3.7332 | | |
| | 3.9722 | 6.4777 | 268000 | 3.7316 | | |
| | 3.9722 | 6.5260 | 270000 | 3.7307 | | |
| | 3.9735 | 6.5743 | 272000 | 3.7281 | | |
| | 3.9768 | 6.6227 | 274000 | 3.7259 | | |
| | 3.9716 | 6.6710 | 276000 | 3.7247 | | |
| | 3.9634 | 6.7194 | 278000 | 3.7229 | | |
| | 3.9667 | 6.7677 | 280000 | 3.7222 | | |
| | 3.9717 | 6.8160 | 282000 | 3.7206 | | |
| | 3.9705 | 6.8644 | 284000 | 3.7200 | | |
| | 3.9667 | 6.9127 | 286000 | 3.7167 | | |
| | 3.9667 | 6.9611 | 288000 | 3.7160 | | |
| | 3.9367 | 7.0094 | 290000 | 3.7163 | | |
| | 3.9465 | 7.0577 | 292000 | 3.7162 | | |
| | 3.9436 | 7.1061 | 294000 | 3.7147 | | |
| | 3.9534 | 7.1544 | 296000 | 3.7147 | | |
| | 3.9405 | 7.2028 | 298000 | 3.7137 | | |
| | 3.9489 | 7.2511 | 300000 | 3.7121 | | |
| | 3.9526 | 7.2994 | 302000 | 3.7092 | | |
| | 3.9463 | 7.3478 | 304000 | 3.7093 | | |
| | 3.9484 | 7.3961 | 306000 | 3.7081 | | |
| | 3.9462 | 7.4445 | 308000 | 3.7088 | | |
| | 3.9417 | 7.4928 | 310000 | 3.7061 | | |
| | 3.9521 | 7.5412 | 312000 | 3.7050 | | |
| | 3.9393 | 7.5895 | 314000 | 3.7023 | | |
| | 3.9499 | 7.6378 | 316000 | 3.7018 | | |
| | 3.9471 | 7.6862 | 318000 | 3.7002 | | |
| | 3.9507 | 7.7345 | 320000 | 3.6991 | | |
| | 3.9481 | 7.7829 | 322000 | 3.6984 | | |
| | 3.942 | 7.8312 | 324000 | 3.6970 | | |
| | 3.9379 | 7.8795 | 326000 | 3.6953 | | |
| | 3.9337 | 7.9279 | 328000 | 3.6950 | | |
| | 3.9415 | 7.9762 | 330000 | 3.6931 | | |
| | 3.9228 | 8.0246 | 332000 | 3.6935 | | |
| | 3.9218 | 8.0729 | 334000 | 3.6940 | | |
| | 3.9235 | 8.1212 | 336000 | 3.6925 | | |
| | 3.9203 | 8.1696 | 338000 | 3.6916 | | |
| | 3.9233 | 8.2179 | 340000 | 3.6910 | | |
| | 3.9159 | 8.2663 | 342000 | 3.6901 | | |
| | 3.9235 | 8.3146 | 344000 | 3.6889 | | |
| | 3.9222 | 8.3629 | 346000 | 3.6873 | | |
| | 3.9283 | 8.4113 | 348000 | 3.6869 | | |
| | 3.9258 | 8.4596 | 350000 | 3.6860 | | |
| | 3.9229 | 8.5080 | 352000 | 3.6847 | | |
| | 3.9245 | 8.5563 | 354000 | 3.6831 | | |
| | 3.9256 | 8.6046 | 356000 | 3.6829 | | |
| | 3.9279 | 8.6530 | 358000 | 3.6819 | | |
| | 3.9169 | 8.7013 | 360000 | 3.6806 | | |
| | 3.9187 | 8.7497 | 362000 | 3.6796 | | |
| | 3.9216 | 8.7980 | 364000 | 3.6793 | | |
| | 3.9283 | 8.8463 | 366000 | 3.6772 | | |
| | 3.9239 | 8.8947 | 368000 | 3.6772 | | |
| | 3.9217 | 8.9430 | 370000 | 3.6759 | | |
| | 3.9174 | 8.9914 | 372000 | 3.6751 | | |
| | 3.924 | 9.0 | 372357 | 3.6748 | | |
| | 3.9005 | 9.0397 | 374000 | 3.6756 | | |
| | 3.9029 | 9.0881 | 376000 | 3.6752 | | |
| | 3.9133 | 9.1364 | 378000 | 3.6741 | | |
| | 3.9034 | 9.1847 | 380000 | 3.6738 | | |
| | 3.9072 | 9.2331 | 382000 | 3.6731 | | |
| | 3.9048 | 9.2814 | 384000 | 3.6726 | | |
| | 3.9038 | 9.3298 | 386000 | 3.6716 | | |
| | 3.905 | 9.3781 | 388000 | 3.6713 | | |
| | 3.8988 | 9.4264 | 390000 | 3.6700 | | |
| | 3.9017 | 9.4748 | 392000 | 3.6695 | | |
| | 3.9022 | 9.5231 | 394000 | 3.6686 | | |
| | 3.9072 | 9.5715 | 396000 | 3.6681 | | |
| | 3.9096 | 9.6198 | 398000 | 3.6676 | | |
| | 3.9019 | 9.6681 | 400000 | 3.6674 | | |
| | 3.8989 | 9.7165 | 402000 | 3.6659 | | |
| | 3.9027 | 9.7648 | 404000 | 3.6656 | | |
| | 3.8992 | 9.8132 | 406000 | 3.6652 | | |
| | 3.903 | 9.8615 | 408000 | 3.6648 | | |
| | 3.9035 | 9.9098 | 410000 | 3.6644 | | |
| | 3.9007 | 9.9582 | 412000 | 3.6641 | | |
| ### Framework versions | |
| - Transformers 4.57.1 | |
| - Pytorch 2.7.1+cu118 | |
| - Datasets 3.6.0 | |
| - Tokenizers 0.22.2 | |