Instructions to use NLP-RISE/gpt2moe_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_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_het3-T_1000mb")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("NLP-RISE/gpt2moe_het3-T_1000mb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NLP-RISE/gpt2moe_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_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_het3-T_1000mb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NLP-RISE/gpt2moe_het3-T_1000mb
- SGLang
How to use NLP-RISE/gpt2moe_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_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_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_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_het3-T_1000mb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NLP-RISE/gpt2moe_het3-T_1000mb with Docker Model Runner:
docker model run hf.co/NLP-RISE/gpt2moe_het3-T_1000mb
|
Download README.md from NLP-RISE/gpt2moe_het3-T_1000mb: direct link, hf CLI and curl.
- Browser
- Download file 11.9 kB
-
https://huggingface.co/NLP-RISE/gpt2moe_het3-T_1000mb/resolve/main/README.md
- Command line
-
hf download hf://NLP-RISE/gpt2moe_het3-T_1000mb/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/NLP-RISE/gpt2moe_het3-T_1000mb/resolve/main/README.md
11.9 kB
| library_name: transformers | |
| tags: | |
| - generated_from_trainer | |
| datasets: | |
| - arrow | |
| model-index: | |
| - name: gpt2moe_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_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.5899 | |
| ## 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: 38546 | |
| - training_steps: 385460 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | | |
| |:-------------:|:------:|:------:|:---------------:| | |
| | No log | 0 | 0 | 11.0294 | | |
| | 8.4002 | 0.0519 | 2000 | 7.7766 | | |
| | 7.3738 | 0.1038 | 4000 | 6.7835 | | |
| | 6.813 | 0.1557 | 6000 | 6.2219 | | |
| | 6.4286 | 0.2075 | 8000 | 5.8227 | | |
| | 6.1206 | 0.2594 | 10000 | 5.5147 | | |
| | 5.8892 | 0.3113 | 12000 | 5.2766 | | |
| | 5.6955 | 0.3632 | 14000 | 5.0834 | | |
| | 5.537 | 0.4151 | 16000 | 4.9220 | | |
| | 5.4068 | 0.4670 | 18000 | 4.7835 | | |
| | 5.2951 | 0.5189 | 20000 | 4.6773 | | |
| | 5.2093 | 0.5707 | 22000 | 4.5966 | | |
| | 5.1409 | 0.6226 | 24000 | 4.5200 | | |
| | 5.0805 | 0.6745 | 26000 | 4.4670 | | |
| | 5.0279 | 0.7264 | 28000 | 4.4116 | | |
| | 4.9836 | 0.7783 | 30000 | 4.3735 | | |
| | 4.948 | 0.8302 | 32000 | 4.3336 | | |
| | 4.9103 | 0.8821 | 34000 | 4.2987 | | |
| | 4.8745 | 0.9339 | 36000 | 4.2677 | | |
| | 4.8511 | 0.9858 | 38000 | 4.2437 | | |
| | 4.8011 | 1.0377 | 40000 | 4.2087 | | |
| | 4.7722 | 1.0896 | 42000 | 4.1801 | | |
| | 4.7548 | 1.1415 | 44000 | 4.1555 | | |
| | 4.7265 | 1.1934 | 46000 | 4.1324 | | |
| | 4.7062 | 1.2452 | 48000 | 4.1083 | | |
| | 4.6882 | 1.2971 | 50000 | 4.0862 | | |
| | 4.6695 | 1.3490 | 52000 | 4.0686 | | |
| | 4.6573 | 1.4009 | 54000 | 4.0520 | | |
| | 4.634 | 1.4528 | 56000 | 4.0338 | | |
| | 4.6215 | 1.5047 | 58000 | 4.0217 | | |
| | 4.6139 | 1.5566 | 60000 | 4.0062 | | |
| | 4.5957 | 1.6084 | 62000 | 3.9931 | | |
| | 4.5804 | 1.6603 | 64000 | 3.9814 | | |
| | 4.5726 | 1.7122 | 66000 | 3.9686 | | |
| | 4.5556 | 1.7641 | 68000 | 3.9570 | | |
| | 4.5476 | 1.8160 | 70000 | 3.9481 | | |
| | 4.5422 | 1.8679 | 72000 | 3.9368 | | |
| | 4.5293 | 1.9198 | 74000 | 3.9270 | | |
| | 4.5221 | 1.9716 | 76000 | 3.9176 | | |
| | 4.4896 | 2.0235 | 78000 | 3.9104 | | |
| | 4.4822 | 2.0754 | 80000 | 3.9038 | | |
| | 4.479 | 2.1273 | 82000 | 3.8959 | | |
| | 4.4797 | 2.1792 | 84000 | 3.8914 | | |
| | 4.469 | 2.2310 | 86000 | 3.8828 | | |
| | 4.4704 | 2.2829 | 88000 | 3.8767 | | |
| | 4.4624 | 2.3348 | 90000 | 3.8703 | | |
| | 4.4536 | 2.3867 | 92000 | 3.8636 | | |
| | 4.4477 | 2.4386 | 94000 | 3.8588 | | |
| | 4.4436 | 2.4905 | 96000 | 3.8535 | | |
| | 4.4436 | 2.5424 | 98000 | 3.8475 | | |
| | 4.4363 | 2.5942 | 100000 | 3.8385 | | |
| | 4.4328 | 2.6461 | 102000 | 3.8371 | | |
| | 4.4238 | 2.6980 | 104000 | 3.8291 | | |
| | 4.4199 | 2.7499 | 106000 | 3.8234 | | |
| | 4.4166 | 2.8018 | 108000 | 3.8208 | | |
| | 4.4145 | 2.8537 | 110000 | 3.8138 | | |
| | 4.4078 | 2.9056 | 112000 | 3.8110 | | |
| | 4.4019 | 2.9575 | 114000 | 3.8055 | | |
| | 4.3654 | 3.0093 | 116000 | 3.8026 | | |
| | 4.3684 | 3.0612 | 118000 | 3.7992 | | |
| | 4.3747 | 3.1131 | 120000 | 3.7957 | | |
| | 4.3699 | 3.1650 | 122000 | 3.7912 | | |
| | 4.3666 | 3.2169 | 124000 | 3.7888 | | |
| | 4.3682 | 3.2687 | 126000 | 3.7844 | | |
| | 4.3668 | 3.3206 | 128000 | 3.7811 | | |
| | 4.3536 | 3.3725 | 130000 | 3.7772 | | |
| | 4.3592 | 3.4244 | 132000 | 3.7736 | | |
| | 4.3603 | 3.4763 | 134000 | 3.7706 | | |
| | 4.3598 | 3.5282 | 136000 | 3.7673 | | |
| | 4.3506 | 3.5801 | 138000 | 3.7638 | | |
| | 4.3513 | 3.6319 | 140000 | 3.7600 | | |
| | 4.343 | 3.6838 | 142000 | 3.7563 | | |
| | 4.3478 | 3.7357 | 144000 | 3.7545 | | |
| | 4.3393 | 3.7876 | 146000 | 3.7503 | | |
| | 4.3434 | 3.8395 | 148000 | 3.7479 | | |
| | 4.3385 | 3.8914 | 150000 | 3.7453 | | |
| | 4.3371 | 3.9433 | 152000 | 3.7412 | | |
| | 4.332 | 3.9951 | 154000 | 3.7401 | | |
| | 4.3051 | 4.0470 | 156000 | 3.7398 | | |
| | 4.3016 | 4.0989 | 158000 | 3.7360 | | |
| | 4.3029 | 4.1508 | 160000 | 3.7351 | | |
| | 4.3012 | 4.2027 | 162000 | 3.7318 | | |
| | 4.3048 | 4.2546 | 164000 | 3.7299 | | |
| | 4.2943 | 4.3064 | 166000 | 3.7268 | | |
| | 4.2973 | 4.3583 | 168000 | 3.7249 | | |
| | 4.3033 | 4.4102 | 170000 | 3.7213 | | |
| | 4.2974 | 4.4621 | 172000 | 3.7195 | | |
| | 4.2993 | 4.5140 | 174000 | 3.7176 | | |
| | 4.3016 | 4.5659 | 176000 | 3.7149 | | |
| | 4.2998 | 4.6178 | 178000 | 3.7119 | | |
| | 4.2886 | 4.6696 | 180000 | 3.7102 | | |
| | 4.2892 | 4.7215 | 182000 | 3.7073 | | |
| | 4.2857 | 4.7734 | 184000 | 3.7051 | | |
| | 4.2857 | 4.8253 | 186000 | 3.7045 | | |
| | 4.2858 | 4.8772 | 188000 | 3.7015 | | |
| | 4.288 | 4.9291 | 190000 | 3.6985 | | |
| | 4.2863 | 4.9810 | 192000 | 3.6974 | | |
| | 4.253 | 5.0328 | 194000 | 3.6964 | | |
| | 4.2561 | 5.0847 | 196000 | 3.6954 | | |
| | 4.2583 | 5.1366 | 198000 | 3.6945 | | |
| | 4.2614 | 5.1885 | 200000 | 3.6918 | | |
| | 4.2576 | 5.2404 | 202000 | 3.6907 | | |
| | 4.2525 | 5.2922 | 204000 | 3.6886 | | |
| | 4.2601 | 5.3441 | 206000 | 3.6854 | | |
| | 4.2547 | 5.3960 | 208000 | 3.6839 | | |
| | 4.2603 | 5.4479 | 210000 | 3.6829 | | |
| | 4.2533 | 5.4998 | 212000 | 3.6815 | | |
| | 4.2541 | 5.5517 | 214000 | 3.6796 | | |
| | 4.2586 | 5.6036 | 216000 | 3.6768 | | |
| | 4.2538 | 5.6554 | 218000 | 3.6748 | | |
| | 4.2511 | 5.7073 | 220000 | 3.6730 | | |
| | 4.2482 | 5.7592 | 222000 | 3.6718 | | |
| | 4.2525 | 5.8111 | 224000 | 3.6698 | | |
| | 4.2534 | 5.8630 | 226000 | 3.6685 | | |
| | 4.2434 | 5.9149 | 228000 | 3.6671 | | |
| | 4.2512 | 5.9668 | 230000 | 3.6656 | | |
| | 4.2186 | 6.0186 | 232000 | 3.6666 | | |
| | 4.2173 | 6.0705 | 234000 | 3.6638 | | |
| | 4.2251 | 6.1224 | 236000 | 3.6627 | | |
| | 4.2253 | 6.1743 | 238000 | 3.6619 | | |
| | 4.223 | 6.2262 | 240000 | 3.6603 | | |
| | 4.2206 | 6.2781 | 242000 | 3.6594 | | |
| | 4.2253 | 6.3299 | 244000 | 3.6575 | | |
| | 4.2229 | 6.3818 | 246000 | 3.6561 | | |
| | 4.2268 | 6.4337 | 248000 | 3.6546 | | |
| | 4.2221 | 6.4856 | 250000 | 3.6526 | | |
| | 4.2215 | 6.5375 | 252000 | 3.6518 | | |
| | 4.2181 | 6.5894 | 254000 | 3.6492 | | |
| | 4.2146 | 6.6413 | 256000 | 3.6486 | | |
| | 4.2218 | 6.6931 | 258000 | 3.6472 | | |
| | 4.2201 | 6.7450 | 260000 | 3.6451 | | |
| | 4.2122 | 6.7969 | 262000 | 3.6437 | | |
| | 4.2173 | 6.8488 | 264000 | 3.6431 | | |
| | 4.2214 | 6.9007 | 266000 | 3.6407 | | |
| | 4.2171 | 6.9526 | 268000 | 3.6399 | | |
| | 4.1895 | 7.0044 | 270000 | 3.6393 | | |
| | 4.1876 | 7.0563 | 272000 | 3.6399 | | |
| | 4.1908 | 7.1082 | 274000 | 3.6375 | | |
| | 4.1908 | 7.1601 | 276000 | 3.6372 | | |
| | 4.1928 | 7.2120 | 278000 | 3.6361 | | |
| | 4.1897 | 7.2639 | 280000 | 3.6347 | | |
| | 4.1961 | 7.3158 | 282000 | 3.6334 | | |
| | 4.1925 | 7.3676 | 284000 | 3.6310 | | |
| | 4.1927 | 7.4195 | 286000 | 3.6307 | | |
| | 4.1931 | 7.4714 | 288000 | 3.6296 | | |
| | 4.19 | 7.5233 | 290000 | 3.6278 | | |
| | 4.1887 | 7.5752 | 292000 | 3.6268 | | |
| | 4.192 | 7.6271 | 294000 | 3.6254 | | |
| | 4.1883 | 7.6790 | 296000 | 3.6253 | | |
| | 4.1893 | 7.7308 | 298000 | 3.6236 | | |
| | 4.1923 | 7.7827 | 300000 | 3.6219 | | |
| | 4.1926 | 7.8346 | 302000 | 3.6214 | | |
| | 4.1892 | 7.8865 | 304000 | 3.6210 | | |
| | 4.189 | 7.9384 | 306000 | 3.6179 | | |
| | 4.187 | 7.9903 | 308000 | 3.6173 | | |
| | 4.1652 | 8.0421 | 310000 | 3.6179 | | |
| | 4.17 | 8.0940 | 312000 | 3.6173 | | |
| | 4.168 | 8.1459 | 314000 | 3.6160 | | |
| | 4.1692 | 8.1978 | 316000 | 3.6159 | | |
| | 4.1654 | 8.2497 | 318000 | 3.6145 | | |
| | 4.1707 | 8.3016 | 320000 | 3.6137 | | |
| | 4.1632 | 8.3534 | 322000 | 3.6130 | | |
| | 4.1611 | 8.4053 | 324000 | 3.6108 | | |
| | 4.1727 | 8.4572 | 326000 | 3.6096 | | |
| | 4.1644 | 8.5091 | 328000 | 3.6099 | | |
| | 4.1629 | 8.5610 | 330000 | 3.6084 | | |
| | 4.1605 | 8.6129 | 332000 | 3.6075 | | |
| | 4.1685 | 8.6648 | 334000 | 3.6065 | | |
| | 4.1716 | 8.7166 | 336000 | 3.6058 | | |
| | 4.1676 | 8.7685 | 338000 | 3.6047 | | |
| | 4.1677 | 8.8204 | 340000 | 3.6038 | | |
| | 4.1669 | 8.8723 | 342000 | 3.6026 | | |
| | 4.1643 | 8.9242 | 344000 | 3.6018 | | |
| | 4.1608 | 8.9761 | 346000 | 3.6003 | | |
| | 4.1637 | 9.0 | 346923 | 3.5997 | | |
| | 4.1382 | 9.0279 | 348000 | 3.6009 | | |
| | 4.1456 | 9.0798 | 350000 | 3.6009 | | |
| | 4.1453 | 9.1317 | 352000 | 3.5994 | | |
| | 4.148 | 9.1836 | 354000 | 3.5988 | | |
| | 4.1424 | 9.2355 | 356000 | 3.5986 | | |
| | 4.143 | 9.2874 | 358000 | 3.5974 | | |
| | 4.1437 | 9.3393 | 360000 | 3.5969 | | |
| | 4.1405 | 9.3911 | 362000 | 3.5964 | | |
| | 4.144 | 9.4430 | 364000 | 3.5955 | | |
| | 4.1388 | 9.4949 | 366000 | 3.5944 | | |
| | 4.1401 | 9.5468 | 368000 | 3.5940 | | |
| | 4.1436 | 9.5987 | 370000 | 3.5931 | | |
| | 4.1448 | 9.6506 | 372000 | 3.5931 | | |
| | 4.1442 | 9.7025 | 374000 | 3.5921 | | |
| | 4.1381 | 9.7543 | 376000 | 3.5915 | | |
| | 4.1399 | 9.8062 | 378000 | 3.5911 | | |
| | 4.1464 | 9.8581 | 380000 | 3.5906 | | |
| | 4.1383 | 9.9100 | 382000 | 3.5902 | | |
| | 4.1402 | 9.9619 | 384000 | 3.5899 | | |
| ### Framework versions | |
| - Transformers 4.57.1 | |
| - Pytorch 2.7.1+cu118 | |
| - Datasets 3.6.0 | |
| - Tokenizers 0.22.2 | |