Views
No views yet
moe with Python 3.10:conda create -n moe python=3.10 -yconda activate moebash moe.bashbash build_dgl_cuda128.shsource runtime_env_overrides.sh1python moe.py \
2 --stage overfit \
3 --overfit-docs 1 \
4 --epochs 10 \
5 --device auto1python moe.py \
2 --stage train \
3 --train-limit 10 \
4 --eval-limit 5 \
5 --epochs 2 \
6 --device automoe.bash script should contain all necessary dependency installations.build_dgl_cuda128.sh script is specific to CUDA 12.8. Adjust if using a different CUDA version.1python moe.py \
2 --stage ds \
3 --distant-file train_distant.json \
4 --eval-file dev.json \
5 --distant-clean-file train_distant_clean.json \
6 --build-distant-clean \
7 --distant-topk 2 \
8 --device auto1python -u moe.py \
2--stage train \
3--epochs 20 \
4--full-train \
5--full-eval \
6--full-test \
7--pretrained-gnn-checkpoint "<wandb_artifact_url_or_ref>" \
8--no-pair-markers \
9--result-dir inference_results \
10--result-file result.json--debug flag:1python moe.py \
2 --stage ds \
3 --distant-file train_distant.json \
4 --eval-file dev.json \
5 --distant-clean-file train_distant_clean.json \
6 --build-distant-clean \
7 --distant-topk 2 \
8 --device auto \
9 --debug1python moe.py \
2 --stage train \
3 --train-file train_annotated.json \
4 --distant-clean-file train_distant_clean.json \
5 --eval-file dev.json \
6 --test-file dev.json \
7 --epochs 2 \
8 --num-experts 2 \
9 --capacity-factor 1.0 \
10 --lambda-moe 0.1 \
11 --lambda-scl 0.05 \
12 --scl-temp 0.1 \
13 --candidate-keep-ratio 0.3 \
14 --adaptive-threshold-scale 1.0 \
15 --max-pairs-per-doc 25 \
16 --max-seq-length 1024 \
17 --result-dir inference_results \
18 --result-file result.json \
19 --device auto \
20 --debug1python moe.py \
2 --stage overfit \
3 --overfit-docs 1 \
4 --epochs 2 \
5 --model-id sshleifer/tiny-gpt2 \
6 --result-dir inference_results \
7 --result-file result.json \
8 --device auto \
9 --debugmoe.py arguments (including --max-seq-length and multi-label pipeline settings).--no-wandb).--wandb-mode online. If your shell/directory was previously set to offline, the run still forces online unless you explicitly pass --wandb-mode offline.--wandb-no-offline-fallback.403 Forbidden, avoid stale hardcoded credentials and run with your own account context, for example:
wandb login --relogin then add --wandb-project <your_project> (optionally --wandb-entity <your_team>).--model-id sshleifer/tiny-gpt2 to avoid loading a very large backbone.best_model.pt)--result-dir (for example inference_results/*.json)checkpoints/.--pretrained-gnn-checkpoint with one of:
checkpoints/<run_name>/best_model.pt)<entity>/<project>/<artifact_name>:v0)https://wandb.ai/<entity>/<project>/artifacts/model/<artifact_name>/v0)--pretrained-gnn-strict if you want strict key matching when loading the checkpoint.1conda create -n moe python=3.10 -y
2conda activate moe
3bash moe.bash
4bash fix_datapipe.sh
5python moe.py \
6--stage ds \
7--distant-file train_distant.json \
8--eval-file dev.json \
9--distant-clean-file train_distant_clean.json \
10--build-distant-clean \
11--distant-topk 2 \
12--device auto
13python -u moe.py \
14--stage train \
15--epochs 20 \
16--full-train \
17--full-eval \
18--full-test \
19--pretrained-gnn-checkpoint "<wandb_artifact_url_or_ref>" \
20--no-pair-markers \
21--result-dir inference_results \
22--result-file result.json