Skip to content

Commit

Permalink
move examples to root
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Feb 5, 2025
1 parent 16a743c commit dbc0d95
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 167 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip uv
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip uv
python -m uv pip install torch==2.1.0+cpu --extra-index-url https://download.pytorch.org/whl/cpu
python -m uv pip install .
python -m uv pip install .[test]
- name: Test with pytest
run: |
python setup.py test
pytest tests
3 changes: 0 additions & 3 deletions examples/enwik8_simple/data/README.md

This file was deleted.

Binary file removed examples/enwik8_simple/data/enwik8.gz
Binary file not shown.
116 changes: 0 additions & 116 deletions examples/enwik8_simple/train_nar.py

This file was deleted.

57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[project]
name = "x-transformers"
version = "2.0.0"
description = "X-Transformers"
authors = [
{ name = "Phil Wang", email = "[email protected]" }
]
readme = "README.md"
requires-python = ">= 3.9"
license = { file = "LICENSE" }
keywords = [
'artificial intelligence',
'attention mechanism',
'transformers'
]
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
]

dependencies = [
'einx>=0.3.0',
'einops>=0.8.0',
'loguru',
'packaging>=21.0',
'torch>=2.0',
]

[project.urls]
Homepage = "https://pypi.org/project/x-transformers/"
Repository = "https://github.com/lucidrains/x-transformers"

[project.optional-dependencies]
examples = ["tqdm", "torchvision"]

test = [
"pytest",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"


[tool.pytest.ini_options]
pythonpath = [
"."
]

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["x_transformers"]
7 changes: 0 additions & 7 deletions setup.cfg

This file was deleted.

38 changes: 0 additions & 38 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit dbc0d95

Please sign in to comment.