Skip to content

Change default for loss normalization #182

Change default for loss normalization

Change default for loss normalization #182

Workflow file for this run

# This workflow installs Python dependencies, runs unit tests and tracks code coverage statistics
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unit Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# Run in all these versions of Python
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'litgpt[all,test,extra]'
python -m pip install .
- name: Test with pytest
run: |
export KEYSVALS_SKIP_CUDA_TESTS=1; pytest test/