Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
cache: "pip"

- name: Install Poetry
run: |
pip install "poetry-core>=1.0.0" poetry
poetry config virtualenvs.in-project true

- name: Cache Poetry virtualenv
uses: actions/cache@v5
with:
path: .venv
key: venv-${{ runner.os }}-3.10-${{ hashFiles('pyproject.toml') }}

- name: Install dependencies
run: |
poetry install --with lint,test

- name: Check formatting (black)
run: |
poetry run black --check .

- name: Lint (ruff)
run: |
poetry run ruff check .

# Tests require upstream test fixes (freqs_cis slicing, LTI bound).
# Enable once PR #42 is merged.
# - name: Run tests (pytest)
# run: |
# poetry run pytest -q --tb=short
1 change: 0 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import torch
from open_mythos.main import OpenMythos, MythosConfig


attn_type = "mla" # or "gqa"

base = {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ classifiers = [


[tool.poetry.dependencies]
python = ">=3.10,<4.0"
python = ">=3.10,<3.15"
torch = "2.11.0"
transformers = ">=4.40.0"
datasets = ">=2.18.0"
Expand Down
1 change: 0 additions & 1 deletion training/3b_fine_web_edu.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from open_mythos.variants import mythos_3b
from open_mythos.tokenizer import MythosTokenizer


# ---------------------------------------------------------------------------
# Dataset
# ---------------------------------------------------------------------------
Expand Down