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

Update __init__.py to improve package maintainability #178

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions llama/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@
from .generation import Llama
from .model import ModelArgs, Transformer
from .tokenizer import Dialog, Tokenizer

__version__ = "0.0.1"

__all__ = [
"Llama",
"ModelArgs",
"Transformer",
"Dialog",
"Tokenizer"
]
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# This software may be used and distributed in accordance with the terms of the Llama 3 Community License Agreement.

from setuptools import find_packages, setup
from llama import __version__ as VERSION


def get_requirements(path: str):
Expand All @@ -10,7 +11,7 @@ def get_requirements(path: str):

setup(
name="llama3",
version="0.0.1",
version=VERSION,
packages=find_packages(),
install_requires=get_requirements("requirements.txt"),
)