Instructions to use NLP-RISE/gpt2moe_het-T_1000mb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NLP-RISE/gpt2moe_het-T_1000mb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NLP-RISE/gpt2moe_het-T_1000mb")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("NLP-RISE/gpt2moe_het-T_1000mb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NLP-RISE/gpt2moe_het-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_het-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_het-T_1000mb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NLP-RISE/gpt2moe_het-T_1000mb
- SGLang
How to use NLP-RISE/gpt2moe_het-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_het-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_het-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_het-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_het-T_1000mb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NLP-RISE/gpt2moe_het-T_1000mb with Docker Model Runner:
docker model run hf.co/NLP-RISE/gpt2moe_het-T_1000mb
How to use from
vLLMInstall from pip and serve model
# Install vLLM from pip:
pip install vllm# Start the vLLM server:
vllm serve "NLP-RISE/gpt2moe_het-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_het-T_1000mb",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'Use Docker
docker model run hf.co/NLP-RISE/gpt2moe_het-T_1000mbQuick Links
gpt2moe_het-T_1000mb
This model is a fine-tuned version of on the arrow dataset. It achieves the following results on the evaluation set:
- Loss: 3.6881
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: 36996
- training_steps: 369967
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0 | 0 | 11.0593 |
| 8.4368 | 0.0541 | 2000 | 7.7893 |
| 7.4322 | 0.1081 | 4000 | 6.8218 |
| 6.9028 | 0.1622 | 6000 | 6.2896 |
| 6.5157 | 0.2162 | 8000 | 5.8954 |
| 6.2138 | 0.2703 | 10000 | 5.5958 |
| 5.9814 | 0.3244 | 12000 | 5.3546 |
| 5.7958 | 0.3784 | 14000 | 5.1605 |
| 5.6329 | 0.4325 | 16000 | 4.9974 |
| 5.4979 | 0.4865 | 18000 | 4.8680 |
| 5.3968 | 0.5406 | 20000 | 4.7593 |
| 5.322 | 0.5946 | 22000 | 4.6797 |
| 5.2422 | 0.6487 | 24000 | 4.6095 |
| 5.1879 | 0.7028 | 26000 | 4.5582 |
| 5.1404 | 0.7568 | 28000 | 4.5053 |
| 5.0873 | 0.8109 | 30000 | 4.4632 |
| 5.048 | 0.8649 | 32000 | 4.4219 |
| 5.0162 | 0.9190 | 34000 | 4.3902 |
| 4.9803 | 0.9731 | 36000 | 4.3552 |
| 4.9361 | 1.0271 | 38000 | 4.3277 |
| 4.905 | 1.0812 | 40000 | 4.2933 |
| 4.8761 | 1.1352 | 42000 | 4.2660 |
| 4.8563 | 1.1893 | 44000 | 4.2402 |
| 4.832 | 1.2433 | 46000 | 4.2165 |
| 4.8069 | 1.2974 | 48000 | 4.1933 |
| 4.795 | 1.3515 | 50000 | 4.1728 |
| 4.7769 | 1.4055 | 52000 | 4.1566 |
| 4.7564 | 1.4596 | 54000 | 4.1415 |
| 4.7421 | 1.5136 | 56000 | 4.1227 |
| 4.728 | 1.5677 | 58000 | 4.1083 |
| 4.7109 | 1.6218 | 60000 | 4.0951 |
| 4.6985 | 1.6758 | 62000 | 4.0824 |
| 4.6905 | 1.7299 | 64000 | 4.0705 |
| 4.6797 | 1.7839 | 66000 | 4.0576 |
| 4.6634 | 1.8380 | 68000 | 4.0470 |
| 4.6578 | 1.8920 | 70000 | 4.0370 |
| 4.6526 | 1.9461 | 72000 | 4.0263 |
| 4.6325 | 2.0002 | 74000 | 4.0197 |
| 4.5975 | 2.0542 | 76000 | 4.0111 |
| 4.589 | 2.1083 | 78000 | 4.0016 |
| 4.5915 | 2.1623 | 80000 | 3.9941 |
| 4.585 | 2.2164 | 82000 | 3.9876 |
| 4.5806 | 2.2705 | 84000 | 3.9815 |
| 4.5696 | 2.3245 | 86000 | 3.9731 |
| 4.5677 | 2.3786 | 88000 | 3.9663 |
| 4.567 | 2.4326 | 90000 | 3.9594 |
| 4.56 | 2.4867 | 92000 | 3.9549 |
| 4.5561 | 2.5407 | 94000 | 3.9485 |
| 4.5519 | 2.5948 | 96000 | 3.9413 |
| 4.5439 | 2.6489 | 98000 | 3.9363 |
| 4.5425 | 2.7029 | 100000 | 3.9311 |
| 4.5387 | 2.7570 | 102000 | 3.9257 |
| 4.5301 | 2.8110 | 104000 | 3.9205 |
| 4.5247 | 2.8651 | 106000 | 3.9146 |
| 4.5186 | 2.9192 | 108000 | 3.9108 |
| 4.5199 | 2.9732 | 110000 | 3.9055 |
| 4.479 | 3.0273 | 112000 | 3.9033 |
| 4.4878 | 3.0813 | 114000 | 3.8981 |
| 4.4816 | 3.1354 | 116000 | 3.8961 |
| 4.4804 | 3.1894 | 118000 | 3.8915 |
| 4.48 | 3.2435 | 120000 | 3.8872 |
| 4.4772 | 3.2976 | 122000 | 3.8837 |
| 4.4704 | 3.3516 | 124000 | 3.8795 |
| 4.4692 | 3.4057 | 126000 | 3.8759 |
| 4.4673 | 3.4597 | 128000 | 3.8721 |
| 4.4705 | 3.5138 | 130000 | 3.8673 |
| 4.4643 | 3.5679 | 132000 | 3.8652 |
| 4.462 | 3.6219 | 134000 | 3.8616 |
| 4.4576 | 3.6760 | 136000 | 3.8568 |
| 4.4592 | 3.7300 | 138000 | 3.8548 |
| 4.4544 | 3.7841 | 140000 | 3.8515 |
| 4.4547 | 3.8382 | 142000 | 3.8484 |
| 4.4532 | 3.8922 | 144000 | 3.8450 |
| 4.4467 | 3.9463 | 146000 | 3.8430 |
| 4.4399 | 4.0003 | 148000 | 3.8409 |
| 4.4138 | 4.0544 | 150000 | 3.8384 |
| 4.4156 | 4.1084 | 152000 | 3.8352 |
| 4.4145 | 4.1625 | 154000 | 3.8335 |
| 4.4134 | 4.2166 | 156000 | 3.8310 |
| 4.4188 | 4.2706 | 158000 | 3.8280 |
| 4.4169 | 4.3247 | 160000 | 3.8266 |
| 4.4121 | 4.3787 | 162000 | 3.8232 |
| 4.4123 | 4.4328 | 164000 | 3.8210 |
| 4.4164 | 4.4869 | 166000 | 3.8185 |
| 4.406 | 4.5409 | 168000 | 3.8153 |
| 4.4029 | 4.5950 | 170000 | 3.8130 |
| 4.4046 | 4.6490 | 172000 | 3.8104 |
| 4.4001 | 4.7031 | 174000 | 3.8077 |
| 4.3955 | 4.7571 | 176000 | 3.8053 |
| 4.395 | 4.8112 | 178000 | 3.8032 |
| 4.4001 | 4.8653 | 180000 | 3.8007 |
| 4.393 | 4.9193 | 182000 | 3.7986 |
| 4.3997 | 4.9734 | 184000 | 3.7963 |
| 4.3648 | 5.0274 | 186000 | 3.7959 |
| 4.368 | 5.0815 | 188000 | 3.7948 |
| 4.366 | 5.1356 | 190000 | 3.7929 |
| 4.3684 | 5.1896 | 192000 | 3.7924 |
| 4.3693 | 5.2437 | 194000 | 3.7886 |
| 4.3664 | 5.2977 | 196000 | 3.7885 |
| 4.3645 | 5.3518 | 198000 | 3.7846 |
| 4.3684 | 5.4058 | 200000 | 3.7840 |
| 4.3665 | 5.4599 | 202000 | 3.7818 |
| 4.36 | 5.5140 | 204000 | 3.7802 |
| 4.3682 | 5.5680 | 206000 | 3.7773 |
| 4.3651 | 5.6221 | 208000 | 3.7758 |
| 4.3671 | 5.6761 | 210000 | 3.7738 |
| 4.3586 | 5.7302 | 212000 | 3.7730 |
| 4.3615 | 5.7843 | 214000 | 3.7698 |
| 4.3631 | 5.8383 | 216000 | 3.7685 |
| 4.3604 | 5.8924 | 218000 | 3.7663 |
| 4.3526 | 5.9464 | 220000 | 3.7650 |
| 4.3548 | 6.0005 | 222000 | 3.7634 |
| 4.3258 | 6.0545 | 224000 | 3.7626 |
| 4.3292 | 6.1086 | 226000 | 3.7625 |
| 4.3309 | 6.1627 | 228000 | 3.7613 |
| 4.3309 | 6.2167 | 230000 | 3.7588 |
| 4.3328 | 6.2708 | 232000 | 3.7571 |
| 4.3303 | 6.3248 | 234000 | 3.7555 |
| 4.3353 | 6.3789 | 236000 | 3.7550 |
| 4.3287 | 6.4330 | 238000 | 3.7539 |
| 4.3266 | 6.4870 | 240000 | 3.7512 |
| 4.3276 | 6.5411 | 242000 | 3.7504 |
| 4.3318 | 6.5951 | 244000 | 3.7479 |
| 4.3267 | 6.6492 | 246000 | 3.7474 |
| 4.3307 | 6.7032 | 248000 | 3.7451 |
| 4.3254 | 6.7573 | 250000 | 3.7441 |
| 4.3286 | 6.8114 | 252000 | 3.7423 |
| 4.3195 | 6.8654 | 254000 | 3.7413 |
| 4.3263 | 6.9195 | 256000 | 3.7387 |
| 4.3199 | 6.9735 | 258000 | 3.7381 |
| 4.2993 | 7.0276 | 260000 | 3.7369 |
| 4.2964 | 7.0817 | 262000 | 3.7370 |
| 4.2995 | 7.1357 | 264000 | 3.7356 |
| 4.2976 | 7.1898 | 266000 | 3.7341 |
| 4.2994 | 7.2438 | 268000 | 3.7330 |
| 4.298 | 7.2979 | 270000 | 3.7322 |
| 4.3025 | 7.3519 | 272000 | 3.7312 |
| 4.298 | 7.4060 | 274000 | 3.7304 |
| 4.2998 | 7.4601 | 276000 | 3.7287 |
| 4.304 | 7.5141 | 278000 | 3.7272 |
| 4.3015 | 7.5682 | 280000 | 3.7267 |
| 4.3034 | 7.6222 | 282000 | 3.7247 |
| 4.298 | 7.6763 | 284000 | 3.7230 |
| 4.2961 | 7.7304 | 286000 | 3.7218 |
| 4.2968 | 7.7844 | 288000 | 3.7207 |
| 4.2936 | 7.8385 | 290000 | 3.7186 |
| 4.2962 | 7.8925 | 292000 | 3.7178 |
| 4.2966 | 7.9466 | 294000 | 3.7162 |
| 4.2867 | 8.0006 | 296000 | 3.7159 |
| 4.2731 | 8.0547 | 298000 | 3.7165 |
| 4.2703 | 8.1088 | 300000 | 3.7152 |
| 4.276 | 8.1628 | 302000 | 3.7141 |
| 4.2706 | 8.2169 | 304000 | 3.7135 |
| 4.2714 | 8.2709 | 306000 | 3.7131 |
| 4.2739 | 8.3250 | 308000 | 3.7111 |
| 4.2668 | 8.3791 | 310000 | 3.7101 |
| 4.2734 | 8.4331 | 312000 | 3.7091 |
| 4.2734 | 8.4872 | 314000 | 3.7082 |
| 4.2716 | 8.5412 | 316000 | 3.7068 |
| 4.2727 | 8.5953 | 318000 | 3.7057 |
| 4.2741 | 8.6494 | 320000 | 3.7051 |
| 4.2752 | 8.7034 | 322000 | 3.7031 |
| 4.2713 | 8.7575 | 324000 | 3.7028 |
| 4.2672 | 8.8115 | 326000 | 3.7019 |
| 4.2752 | 8.8656 | 328000 | 3.7007 |
| 4.2674 | 8.9196 | 330000 | 3.7000 |
| 4.2609 | 8.9737 | 332000 | 3.6988 |
| 4.274 | 9.0 | 332973 | 3.6987 |
| 4.2532 | 9.0278 | 334000 | 3.6992 |
| 4.2547 | 9.0818 | 336000 | 3.6983 |
| 4.2521 | 9.1359 | 338000 | 3.6975 |
| 4.2501 | 9.1899 | 340000 | 3.6969 |
| 4.2498 | 9.2440 | 342000 | 3.6962 |
| 4.2526 | 9.2981 | 344000 | 3.6956 |
| 4.255 | 9.3521 | 346000 | 3.6954 |
| 4.2501 | 9.4062 | 348000 | 3.6937 |
| 4.2487 | 9.4602 | 350000 | 3.6934 |
| 4.2515 | 9.5143 | 352000 | 3.6927 |
| 4.2517 | 9.5683 | 354000 | 3.6919 |
| 4.2524 | 9.6224 | 356000 | 3.6910 |
| 4.2492 | 9.6765 | 358000 | 3.6908 |
| 4.2477 | 9.7305 | 360000 | 3.6901 |
| 4.2479 | 9.7846 | 362000 | 3.6897 |
| 4.2482 | 9.8386 | 364000 | 3.6890 |
| 4.2467 | 9.8927 | 366000 | 3.6884 |
| 4.2477 | 9.9468 | 368000 | 3.6883 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.7.1+cu118
- Datasets 3.6.0
- Tokenizers 0.22.2
- Downloads last month
- -
# Gated model: Login with a HF token with gated access permission hf auth login