Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pyproject and upgrade version #236

Merged
merged 1 commit into from
Apr 16, 2024
Merged
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
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
Loading