Justfile 902 B

12345678910111213141516171819202122232425262728293031
  1. set shell := ["bash", "-uc"]
  2. validate:
  3. uv run dataset/validate_schema.py
  4. uv run dataset/score_data.py
  5. for f in data/*.jsonl; do \
  6. uv run dataset/analyze_data.py --input "$f" --show-examples 0; \
  7. done
  8. score:
  9. uv run dataset/score_data.py
  10. schema:
  11. uv run dataset/validate_schema.py
  12. analyze:
  13. for f in data/*.jsonl; do \
  14. uv run dataset/analyze_data.py --input "$f" --show-examples 0; \
  15. done
  16. prepare:
  17. QMD_BASE_MODEL=Qwen/Qwen3-1.7B uv run dataset/prepare_data.py --seed 42
  18. train-local:
  19. just prepare
  20. HF_TOKEN=${HF_TOKEN} uv run torchrun --standalone --nproc_per_node auto \
  21. train.py sft --config configs/sft_local.yaml |& tee /tmp/qmd-sft-train.log
  22. grpo-local:
  23. CUDA_VISIBLE_DEVICES=1,2,3 HF_TOKEN=${HF_TOKEN} uv run torchrun --standalone --nproc_per_node 3 \
  24. train.py grpo --config configs/grpo.yaml |& tee /tmp/qmd-grpo-train.log