Skip to content

Commit

Permalink
Remove xformers as it breaks injections module on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie256 committed Oct 13, 2023
1 parent 588fd13 commit ccb6f61
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/langkit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
name: Cache dependencies based on poetry.lock file
with:
path: ./.venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-all-${{ hashFiles('**/poetry.lock') }}
- name: check poetry env
run: poetry env info
- name: Install dependencies
if: steps.poetry-cache.outputs.cache-hit != 'true'
run: poetry install
run: make install
- name: Log cache hit
if: steps.poetry-cache.outputs.cache-hit == 'true'
run: echo 'poetry cache hit, skipping poetry install'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.5.1
poetry-version: 1.6.1
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ numpy = [
{ version = "*", python = "<3.11", optional = true },
{ version = ">=1.23.2", python = ">=3.11", optional = true }
]
xformers = {version = "*", python=">=3.8.0,<4", optional = true}
xformers = {version = "*", platform="!macos", python=">=3.8.0,<4", optional = true}
datasets = {version ="^2.12.0", optional = true}
openai = {version ="^0.27.6", optional = true}
nltk = {version ="^3.8.1", optional = true}
Expand All @@ -30,6 +30,7 @@ evaluate = {version = "^0.4.0", optional = true}
faiss-cpu = {version = "^1.7.1", optional = true}
ipywidgets = {version = "^8.1.1", optional = true}


[tool.poetry.group.dev.dependencies]
ipykernel = { version = ">=6.25.2", python = ">=3.8.1,<4" }
pytest = { version ="^7.3.1", python = ">=3.8.1,<4" }
Expand All @@ -44,7 +45,6 @@ bump2version = { version = "^1.0.1", python = ">=3.8.1,<4" }
all = [
"torch",
"numpy",
"xformers",
"datasets",
"openai",
"nltk",
Expand All @@ -54,7 +54,6 @@ all = [
"ipywidgets",
]


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit ccb6f61

Please sign in to comment.