-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
517 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2019 William Held, Caleb Ziems, Diyi Yang | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http:https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
[project] | ||
name = "value" | ||
version = "1.1" | ||
authors = [ | ||
{ name="David Hall", email="[email protected]" }, | ||
{name="Ivan Zhou", email="[email protected]"} | ||
] | ||
description = "Scalable Training for Foundation Models with Named Tensors and JAX" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
] | ||
dependencies = [ | ||
# we require that you install jax yourself, since the extras vary by system. | ||
# jax = {version = ">=0.4.10,<0.5.0"} | ||
# "haliax>=1.3,<2.0", | ||
# Haliax changes in step with levanter, so we'll just use the git version except for releases. | ||
# "haliax @ git+https://github.com/stanford-crfm/haliax.git@main", | ||
"haliax>=1.4.dev291", | ||
"equinox>=0.11.4", | ||
"jaxtyping>=0.2.20", | ||
"transformers>=4.39.3", | ||
"optax>=0.1.9", | ||
"wandb~=0.16.6", | ||
# We don't actually directly depend on scipy, but recent JAX had an issue | ||
"scipy<=1.12.0", | ||
"draccus>=0.7.2", | ||
"pyarrow>=11.0.0", | ||
"zstandard>=0.20.0", | ||
"datasets~=2.18", | ||
"gcsfs>=2024.2,<2024.4", | ||
"braceexpand>=0.1.7", | ||
"jmp>=0.0.3", | ||
"fsspec[http]>=2024.2,<2024.4", | ||
"tensorstore==0.1.56", | ||
"pytimeparse>=1.1.8", | ||
"humanfriendly==10.0", | ||
"safetensors[numpy]~=0.4.2", | ||
"matplotlib>=3.7.0", | ||
"tblib>=1.7.0,<4.0.0", | ||
"dataclasses-json~=0.6.4", | ||
"ray[default]~=2.10", | ||
"pydantic<3", # temporary pin until Ray supports pydantic 2.0 | ||
"rich~=13.0", | ||
"filelock~=3.13", | ||
] | ||
|
||
[tool.hatch.build] | ||
include = ["config/*.yaml", "config/*/*.yaml", "*.py"] | ||
dev-mode-dirs = [".", "src"] | ||
|
||
[tool.hatch.build.sources] | ||
"src/levanter" = "levanter" | ||
"config" = "levanter/config" | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
|
||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["levanter"] | ||
|
||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/stanford-crfm/levanter" | ||
"Bug Tracker" = "https://github.com/stanford-crfm/levanter/issues" | ||
|
||
|
||
[tool.black] | ||
line-length = 119 | ||
target-version = ["py310"] | ||
preview = true | ||
|
||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 | ||
lines_after_imports = 2 | ||
include_trailing_comma = true | ||
force_grid_wrap = 0 | ||
use_parentheses = true | ||
ensure_newline_before_comments = true | ||
line_length = 119 | ||
src_paths = ["src", "tests"] | ||
known_haliax = ["haliax"] | ||
sections=["FUTURE", "STDLIB", "THIRDPARTY", "HALIAX", "FIRSTPARTY", "LOCALFOLDER"] | ||
|
||
[tool.mypy] | ||
python_version = "3.10" | ||
mypy_path = ["src"] | ||
|
||
[tool.mypy-haliax.core] | ||
ignore_missing_imports = true | ||
|
||
[tool.pytest.ini_options] | ||
markers = [ | ||
"slow: marks tests as slow (deselect with '-m \"not slow\"')", | ||
"entry: marks tests as entry point tests (deselect with '-m \"not entry\"')", | ||
"ray: marks tests that require Ray (deselect with '-m \"not ray\"')", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.