initial release: MeowLLM v0.1.0 #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| pip install -e ".[dev]" | |
| - name: Run tests | |
| run: pytest tests/ -v | |
| - name: Run rule smoke test | |
| run: python scripts/test_rules_smoke.py | |
| - name: Verify generator runs | |
| run: | | |
| python -m meow.generate_data --out-dir /tmp/test_data --n 500 --seed 0 | |
| test -f /tmp/test_data/train.jsonl | |
| test -f /tmp/test_data/val.jsonl | |
| - name: Verify tokenizer trains | |
| run: | | |
| python -m meow.tokenizer train /tmp/test_data/train.jsonl /tmp/test_data/tokenizer.json | |
| test -f /tmp/test_data/tokenizer.json | |
| - name: Verify smoke training | |
| run: | | |
| python -m meow.train --smoke --max-smoke-steps 20 \ | |
| --train-data /tmp/test_data/train.jsonl \ | |
| --val-data /tmp/test_data/val.jsonl \ | |
| --tokenizer /tmp/test_data/tokenizer.json \ | |
| --out-dir /tmp/test_ckpt |