Skip to content

V2 Strength Model

V2 Strength Model #2

Workflow file for this run

# Verifies that boxcrete.fit_strength_gp (production) and the
# experiments.model_variant_study variant catalog produce byte-equivalent
# posteriors for the V2 strength GP configuration, AND that
# boxcrete.load_pretrained_strength_gp() faithfully reconstructs the
# deployed V2 strength GP from docs/model/strength_model.pt.
#
# Runs:
# - test/test_strength_model_parity.py (atol=1e-8 / rtol=1e-6, ~3s)
# - test/test_pretrained_loader_fidelity.py (atol=1e-5 / 1e-3, ~3s)
#
# See those test files for the rationale.
name: Strength GP Parity
permissions:
contents: read
on:
push:
branches: [main, master]
paths:
- 'boxcrete/strength_model.py'
- 'boxcrete/kernels.py'
- 'boxcrete/likelihoods.py'
- 'boxcrete/priors.py'
- 'boxcrete/features.py'
- 'boxcrete/__init__.py'
- 'experiments/model_variant_study.py'
- 'experiments/_research_features.py'
- 'test/test_strength_model_parity.py'
- 'test/test_pretrained_loader_fidelity.py'
- 'docs/model/strength.json'
- 'docs/model/strength_model.pt'
- 'docs/model/test_vectors.json'
- '.github/workflows/strength-parity.yml'
pull_request:
branches: [main, master]
paths:
- 'boxcrete/strength_model.py'
- 'boxcrete/kernels.py'
- 'boxcrete/likelihoods.py'
- 'boxcrete/priors.py'
- 'boxcrete/features.py'
- 'boxcrete/__init__.py'
- 'experiments/model_variant_study.py'
- 'experiments/_research_features.py'
- 'test/test_strength_model_parity.py'
- 'test/test_pretrained_loader_fidelity.py'
- 'docs/model/strength.json'
- 'docs/model/strength_model.pt'
- 'docs/model/test_vectors.json'
- '.github/workflows/strength-parity.yml'
workflow_dispatch: {}
jobs:
parity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python deps
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest
- name: Run parity test
run: python -m pytest test/test_strength_model_parity.py -v --tb=short
- name: Run pretrained-loader fidelity test
run: python -m pytest test/test_pretrained_loader_fidelity.py -v --tb=short