Skip to content

Add logic to train JumpReLU SAEs #822

Add logic to train JumpReLU SAEs

Add logic to train JumpReLU SAEs #822

Workflow file for this run

name: Deploy Docs
on:
push:
branches:
- main
paths-ignore:
- '.vscode/**'
- '.gitignore'
pull_request:
branches:
- main
paths-ignore:
- '.vscode/**'
- '.gitignore'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Cache Huggingface assets
uses: actions/cache@v4
with:
key: huggingface-${{ runner.os }}-3.11-${{ hashFiles('**/pyproject.toml') }}
path: ~/.cache/huggingface
restore-keys: |
huggingface-${{ runner.os }}-3.11-
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-${{ runner.os }}-3.11-0
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-3.11-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
venv-${{ runner.os }}-3.11-
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
- name: Set Python Path
run: echo "PYTHONPATH=$PYTHONPATH:$PWD" >> $GITHUB_ENV
- name: Deploy website
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: poetry run mkdocs gh-deploy --force