-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix requirements + aggregate setup & req. & config in pyproject (#453)
- Loading branch information
Showing
9 changed files
with
80 additions
and
51 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,6 @@ wandb | |
|
||
# downloaded by our tests | ||
original_model.py | ||
original_adapter.py | ||
original_adapter.py | ||
|
||
.ruff_cache/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "lit-llama" | ||
version = "0.1.0" | ||
description = "Implementation of the LLaMA language model" | ||
license = {text = "Apache-2.0"} | ||
authors = [ | ||
{ name = "Lightning AI", email = "[email protected]" } | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"torch>=2.0.0", | ||
"lightning @ git+https://github.com/Lightning-AI/lightning@master", | ||
"sentencepiece", | ||
"bitsandbytes", | ||
] | ||
classifiers = [ | ||
"Topic :: Text Processing" | ||
] | ||
|
||
[project.optional-dependencies] | ||
all = [ | ||
"tqdm", # convert_checkpoint.py | ||
"numpy <2.0", # train.py dataset memmap | ||
"jsonargparse[signatures]", # generate.py, convert_checkpoint.py CLI | ||
"datasets", # evaluate.py | ||
"zstandard", # prepare_redpajama.py" | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["."] # list of folders that contain the packages (["."] by default) | ||
include = ["lit_llama"] # package names should match these glob patterns (["*"] by default) | ||
exclude = [] # exclude packages matching these glob patterns (empty by default) | ||
namespaces = false # to disable scanning PEP 420 namespaces (true by default) | ||
|
||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"--strict-markers", | ||
"--color=yes", | ||
"--disable-pytest-warnings", | ||
] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,28 +1,5 @@ | ||
# Copyright Lightning AI. Licensed under the Apache License 2.0, see LICENSE file. | ||
|
||
import os | ||
from setuptools import setup | ||
|
||
from setuptools import setup, find_packages | ||
|
||
|
||
_PATH_ROOT = os.path.dirname(__file__) | ||
|
||
with open(os.path.join(_PATH_ROOT, "README.md"), encoding="utf-8") as fo: | ||
readme = fo.read() | ||
|
||
setup( | ||
name='lit-llama', | ||
version='0.1.0', | ||
description='Implementation of the LLaMA language model', | ||
author='Lightning AI', | ||
url='https://github.com/lightning-AI/lit-llama', | ||
install_requires=[ | ||
"torch>=2.0.0", | ||
"lightning @ git+https://github.com/Lightning-AI/lightning@master", | ||
"sentencepiece", | ||
"bitsandbytes", | ||
], | ||
packages=find_packages(), | ||
long_description=readme, | ||
long_description_content_type="text/markdown", | ||
) | ||
setup() |
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