Skip to content

Commit

Permalink
Add pyproject and upgrade version (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanchaol authored Apr 16, 2024
1 parent 4f6ed9a commit cd55a38
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ __pycache__
*.egg-info
build
outputs
dist/*

# data
data
Expand Down
48 changes: 45 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
[tool.pydoclint]
style = 'google'
check-return-types = 'False'
# ---- All project specifications ---- #
[project]
name = "torchtitan"
version = "0.0.2"
description = "A native-PyTorch library for large scale LLM training"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{ name = "PyTorch Team", email = "[email protected]" },
]
keywords = ["pytorch", "training", "llm"]
dependencies = [
# Hugging Face integrations
"datasets",

# Miscellaneous
"sentencepiece",
"tomli >= 1.1.0"
]

[project.urls]
GitHub = "https://github.com/pytorch/torchtitan"
Documentation = "https://github.com/pytorch/torchtitan/tree/main/docs"
Issues = "https://github.com/pytorch/torchtitan/issues"

[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"tensorboard",
]

# ---- Explicit project build information ---- #
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where = [""]
include = ["torchtrain*"]

[tool.setuptools.package-data]
recipes = ["train_configs/*.toml"]

[tool.pytest.ini_options]
addopts = ["--showlocals"] # show local variables in tracebacks
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
description="Package for training large models using native PyTorch",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/pytorch-labs/torchtitan",
url="https://github.com/pytorch/torchtitan",
)
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.2

0 comments on commit cd55a38

Please sign in to comment.