Instructions to use NLP-RISE/gpt2moe_dom_het3-T_tok_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_tok_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_tok_1000mb")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("NLP-RISE/gpt2moe_dom_het3-T_tok_1000mb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NLP-RISE/gpt2moe_dom_het3-T_tok_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_tok_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_tok_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_tok_1000mb
- SGLang
How to use NLP-RISE/gpt2moe_dom_het3-T_tok_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_tok_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_tok_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_tok_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_tok_1000mb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NLP-RISE/gpt2moe_dom_het3-T_tok_1000mb with Docker Model Runner:
docker model run hf.co/NLP-RISE/gpt2moe_dom_het3-T_tok_1000mb
gpt2moe_dom_het3-T_tok_1000mb
This model is a fine-tuned version of on the arrow dataset. It achieves the following results on the evaluation set:
- Loss: 3.5915
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: 40020
- training_steps: 400200
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0 | 0 | 11.0906 |
| 7.9666 | 0.0500 | 2000 | 7.8891 |
| 6.9907 | 0.0999 | 4000 | 6.8713 |
| 6.4742 | 0.1499 | 6000 | 6.3012 |
| 6.1101 | 0.1999 | 8000 | 5.9028 |
| 5.8406 | 0.2499 | 10000 | 5.5974 |
| 5.6248 | 0.2998 | 12000 | 5.3544 |
| 5.4443 | 0.3498 | 14000 | 5.1609 |
| 5.3067 | 0.3998 | 16000 | 4.9971 |
| 5.1853 | 0.4498 | 18000 | 4.8626 |
| 5.0926 | 0.4997 | 20000 | 4.7465 |
| 5.0032 | 0.5497 | 22000 | 4.6616 |
| 4.9448 | 0.5997 | 24000 | 4.5864 |
| 4.8839 | 0.6497 | 26000 | 4.5225 |
| 4.8381 | 0.6996 | 28000 | 4.4687 |
| 4.805 | 0.7496 | 30000 | 4.4220 |
| 4.7607 | 0.7996 | 32000 | 4.3829 |
| 4.7199 | 0.8496 | 34000 | 4.3443 |
| 4.6966 | 0.8995 | 36000 | 4.3079 |
| 4.6742 | 0.9495 | 38000 | 4.2817 |
| 4.6453 | 0.9995 | 40000 | 4.2544 |
| 4.6036 | 1.0495 | 42000 | 4.2266 |
| 4.5852 | 1.0994 | 44000 | 4.2005 |
| 4.5576 | 1.1494 | 46000 | 4.1736 |
| 4.5374 | 1.1994 | 48000 | 4.1496 |
| 4.5214 | 1.2493 | 50000 | 4.1277 |
| 4.5073 | 1.2993 | 52000 | 4.1070 |
| 4.4882 | 1.3493 | 54000 | 4.0911 |
| 4.4714 | 1.3993 | 56000 | 4.0722 |
| 4.459 | 1.4492 | 58000 | 4.0556 |
| 4.4432 | 1.4992 | 60000 | 4.0418 |
| 4.4426 | 1.5492 | 62000 | 4.0282 |
| 4.4221 | 1.5992 | 64000 | 4.0163 |
| 4.4139 | 1.6491 | 66000 | 4.0014 |
| 4.4076 | 1.6991 | 68000 | 3.9908 |
| 4.3903 | 1.7491 | 70000 | 3.9791 |
| 4.389 | 1.7991 | 72000 | 3.9679 |
| 4.3738 | 1.8490 | 74000 | 3.9575 |
| 4.3683 | 1.8990 | 76000 | 3.9506 |
| 4.3601 | 1.9490 | 78000 | 3.9407 |
| 4.3501 | 1.9990 | 80000 | 3.9324 |
| 4.3179 | 2.0489 | 82000 | 3.9247 |
| 4.3165 | 2.0989 | 84000 | 3.9165 |
| 4.3162 | 2.1489 | 86000 | 3.9101 |
| 4.3128 | 2.1988 | 88000 | 3.9036 |
| 4.3035 | 2.2488 | 90000 | 3.8952 |
| 4.3036 | 2.2988 | 92000 | 3.8911 |
| 4.2998 | 2.3488 | 94000 | 3.8843 |
| 4.2817 | 2.3987 | 96000 | 3.8773 |
| 4.2832 | 2.4487 | 98000 | 3.8702 |
| 4.2843 | 2.4987 | 100000 | 3.8650 |
| 4.2734 | 2.5487 | 102000 | 3.8610 |
| 4.2707 | 2.5986 | 104000 | 3.8540 |
| 4.276 | 2.6486 | 106000 | 3.8479 |
| 4.2658 | 2.6986 | 108000 | 3.8424 |
| 4.2585 | 2.7486 | 110000 | 3.8373 |
| 4.2594 | 2.7985 | 112000 | 3.8320 |
| 4.2606 | 2.8485 | 114000 | 3.8280 |
| 4.2519 | 2.8985 | 116000 | 3.8239 |
| 4.246 | 2.9485 | 118000 | 3.8196 |
| 4.249 | 2.9984 | 120000 | 3.8138 |
| 4.2145 | 3.0484 | 122000 | 3.8120 |
| 4.2143 | 3.0984 | 124000 | 3.8095 |
| 4.2151 | 3.1484 | 126000 | 3.8040 |
| 4.2101 | 3.1983 | 128000 | 3.8015 |
| 4.2062 | 3.2483 | 130000 | 3.7972 |
| 4.2035 | 3.2983 | 132000 | 3.7930 |
| 4.2063 | 3.3482 | 134000 | 3.7904 |
| 4.1983 | 3.3982 | 136000 | 3.7879 |
| 4.2067 | 3.4482 | 138000 | 3.7835 |
| 4.1999 | 3.4982 | 140000 | 3.7811 |
| 4.1957 | 3.5481 | 142000 | 3.7771 |
| 4.1973 | 3.5981 | 144000 | 3.7726 |
| 4.1922 | 3.6481 | 146000 | 3.7696 |
| 4.1905 | 3.6981 | 148000 | 3.7673 |
| 4.1992 | 3.7480 | 150000 | 3.7635 |
| 4.1861 | 3.7980 | 152000 | 3.7595 |
| 4.1849 | 3.8480 | 154000 | 3.7578 |
| 4.1827 | 3.8980 | 156000 | 3.7536 |
| 4.1831 | 3.9479 | 158000 | 3.7515 |
| 4.1816 | 3.9979 | 160000 | 3.7490 |
| 4.1519 | 4.0479 | 162000 | 3.7476 |
| 4.1484 | 4.0979 | 164000 | 3.7459 |
| 4.159 | 4.1478 | 166000 | 3.7431 |
| 4.1597 | 4.1978 | 168000 | 3.7417 |
| 4.1513 | 4.2478 | 170000 | 3.7394 |
| 4.1524 | 4.2978 | 172000 | 3.7368 |
| 4.1473 | 4.3477 | 174000 | 3.7336 |
| 4.1503 | 4.3977 | 176000 | 3.7312 |
| 4.144 | 4.4477 | 178000 | 3.7286 |
| 4.1541 | 4.4976 | 180000 | 3.7266 |
| 4.1459 | 4.5476 | 182000 | 3.7233 |
| 4.1457 | 4.5976 | 184000 | 3.7212 |
| 4.1496 | 4.6476 | 186000 | 3.7209 |
| 4.1376 | 4.6975 | 188000 | 3.7164 |
| 4.1433 | 4.7475 | 190000 | 3.7141 |
| 4.1372 | 4.7975 | 192000 | 3.7116 |
| 4.1395 | 4.8475 | 194000 | 3.7084 |
| 4.1367 | 4.8974 | 196000 | 3.7071 |
| 4.1361 | 4.9474 | 198000 | 3.7047 |
| 4.1324 | 4.9974 | 200000 | 3.7040 |
| 4.1071 | 5.0474 | 202000 | 3.7027 |
| 4.112 | 5.0973 | 204000 | 3.7020 |
| 4.1099 | 5.1473 | 206000 | 3.6993 |
| 4.1153 | 5.1973 | 208000 | 3.6999 |
| 4.1094 | 5.2473 | 210000 | 3.6971 |
| 4.1072 | 5.2972 | 212000 | 3.6954 |
| 4.1129 | 5.3472 | 214000 | 3.6932 |
| 4.1043 | 5.3972 | 216000 | 3.6924 |
| 4.1075 | 5.4472 | 218000 | 3.6893 |
| 4.1092 | 5.4971 | 220000 | 3.6865 |
| 4.1098 | 5.5471 | 222000 | 3.6858 |
| 4.1076 | 5.5971 | 224000 | 3.6842 |
| 4.1095 | 5.6470 | 226000 | 3.6824 |
| 4.1075 | 5.6970 | 228000 | 3.6807 |
| 4.1016 | 5.7470 | 230000 | 3.6796 |
| 4.1035 | 5.7970 | 232000 | 3.6755 |
| 4.1 | 5.8469 | 234000 | 3.6746 |
| 4.1031 | 5.8969 | 236000 | 3.6734 |
| 4.0982 | 5.9469 | 238000 | 3.6713 |
| 4.1026 | 5.9969 | 240000 | 3.6697 |
| 4.0708 | 6.0468 | 242000 | 3.6712 |
| 4.0704 | 6.0968 | 244000 | 3.6689 |
| 4.0806 | 6.1468 | 246000 | 3.6678 |
| 4.0786 | 6.1968 | 248000 | 3.6671 |
| 4.08 | 6.2467 | 250000 | 3.6651 |
| 4.0771 | 6.2967 | 252000 | 3.6632 |
| 4.0753 | 6.3467 | 254000 | 3.6622 |
| 4.0808 | 6.3967 | 256000 | 3.6613 |
| 4.0757 | 6.4466 | 258000 | 3.6591 |
| 4.0725 | 6.4966 | 260000 | 3.6579 |
| 4.0761 | 6.5466 | 262000 | 3.6561 |
| 4.0788 | 6.5965 | 264000 | 3.6544 |
| 4.0731 | 6.6465 | 266000 | 3.6533 |
| 4.0744 | 6.6965 | 268000 | 3.6520 |
| 4.0708 | 6.7465 | 270000 | 3.6498 |
| 4.0689 | 6.7964 | 272000 | 3.6486 |
| 4.0753 | 6.8464 | 274000 | 3.6471 |
| 4.0738 | 6.8964 | 276000 | 3.6451 |
| 4.0711 | 6.9464 | 278000 | 3.6447 |
| 4.0698 | 6.9963 | 280000 | 3.6420 |
| 4.0462 | 7.0463 | 282000 | 3.6426 |
| 4.049 | 7.0963 | 284000 | 3.6419 |
| 4.05 | 7.1463 | 286000 | 3.6412 |
| 4.0531 | 7.1962 | 288000 | 3.6410 |
| 4.0515 | 7.2462 | 290000 | 3.6391 |
| 4.049 | 7.2962 | 292000 | 3.6372 |
| 4.0476 | 7.3462 | 294000 | 3.6366 |
| 4.0483 | 7.3961 | 296000 | 3.6366 |
| 4.0505 | 7.4461 | 298000 | 3.6336 |
| 4.0454 | 7.4961 | 300000 | 3.6328 |
| 4.0509 | 7.5461 | 302000 | 3.6320 |
| 4.0503 | 7.5960 | 304000 | 3.6298 |
| 4.051 | 7.6460 | 306000 | 3.6295 |
| 4.0451 | 7.6960 | 308000 | 3.6272 |
| 4.0451 | 7.7459 | 310000 | 3.6277 |
| 4.0485 | 7.7959 | 312000 | 3.6249 |
| 4.0456 | 7.8459 | 314000 | 3.6235 |
| 4.05 | 7.8959 | 316000 | 3.6230 |
| 4.0447 | 7.9458 | 318000 | 3.6217 |
| 4.0456 | 7.9958 | 320000 | 3.6209 |
| 4.0247 | 8.0458 | 322000 | 3.6213 |
| 4.0253 | 8.0958 | 324000 | 3.6207 |
| 4.0247 | 8.1457 | 326000 | 3.6193 |
| 4.0255 | 8.1957 | 328000 | 3.6188 |
| 4.0259 | 8.2457 | 330000 | 3.6176 |
| 4.0215 | 8.2957 | 332000 | 3.6163 |
| 4.0267 | 8.3456 | 334000 | 3.6159 |
| 4.0287 | 8.3956 | 336000 | 3.6146 |
| 4.026 | 8.4456 | 338000 | 3.6137 |
| 4.0256 | 8.4956 | 340000 | 3.6126 |
| 4.0251 | 8.5455 | 342000 | 3.6115 |
| 4.0274 | 8.5955 | 344000 | 3.6103 |
| 4.0214 | 8.6455 | 346000 | 3.6090 |
| 4.0308 | 8.6955 | 348000 | 3.6084 |
| 4.0243 | 8.7454 | 350000 | 3.6076 |
| 4.0285 | 8.7954 | 352000 | 3.6069 |
| 4.0192 | 8.8454 | 354000 | 3.6049 |
| 4.0233 | 8.8953 | 356000 | 3.6043 |
| 4.0227 | 8.9453 | 358000 | 3.6033 |
| 4.0179 | 8.9953 | 360000 | 3.6015 |
| 4.0179 | 9.0 | 360189 | 3.6030 |
| 4.0048 | 9.0453 | 362000 | 3.6032 |
| 4.0041 | 9.0952 | 364000 | 3.6026 |
| 4.0054 | 9.1452 | 366000 | 3.6019 |
| 4.0008 | 9.1952 | 368000 | 3.6006 |
| 4.0013 | 9.2452 | 370000 | 3.6000 |
| 4.0021 | 9.2951 | 372000 | 3.5993 |
| 4.0058 | 9.3451 | 374000 | 3.5989 |
| 4.0011 | 9.3951 | 376000 | 3.5981 |
| 4.0041 | 9.4451 | 378000 | 3.5968 |
| 3.9993 | 9.4950 | 380000 | 3.5964 |
| 3.9989 | 9.5450 | 382000 | 3.5959 |
| 4.0025 | 9.5950 | 384000 | 3.5952 |
| 4.0032 | 9.6450 | 386000 | 3.5947 |
| 4.0007 | 9.6949 | 388000 | 3.5938 |
| 4.0051 | 9.7449 | 390000 | 3.5934 |
| 3.9968 | 9.7949 | 392000 | 3.5929 |
| 4.003 | 9.8448 | 394000 | 3.5924 |
| 3.9977 | 9.8948 | 396000 | 3.5919 |
| 3.9992 | 9.9448 | 398000 | 3.5916 |
| 4.0025 | 9.9948 | 400000 | 3.5915 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.7.1+cu118
- Datasets 3.6.0
- Tokenizers 0.22.2
- Downloads last month
- -