2024-08-09 10:06:57 +00:00
|
|
|
python scripts/expert/get_expert_scores.py \
|
|
|
|
--eval_dataset=translation \
|
2024-07-04 13:37:15 +00:00
|
|
|
--base_model_path=deepseek-ai/ESFT-vanilla-lite \
|
2024-08-09 10:06:57 +00:00
|
|
|
--output_dir=results/expert_scores/translation \
|
|
|
|
--n_sample_tokens=131072 \
|
|
|
|
--world_size=4 \
|
|
|
|
--gpus_per_rank=2
|
2024-07-04 13:37:15 +00:00
|
|
|
|
2024-08-09 10:06:57 +00:00
|
|
|
python scripts/expert/generate_expert_config.py \
|
2024-07-04 13:37:15 +00:00
|
|
|
--eval_datasets=intent,summary,law,translation \
|
|
|
|
--expert_scores_dir=results/expert_scores \
|
|
|
|
--output_dir=results/expert_configs \
|
|
|
|
--score_function=token \
|
|
|
|
--top_p=0.2 # the scoring function and top_p are hyperparameters
|
|
|
|
# --train_shared_experts
|
|
|
|
# --train_non_expert_modules
|