Skip to content

Commit

Permalink
Move scripts inside package for easier access
Browse files Browse the repository at this point in the history
Also updates the installer to make resources and console
execution easier
  • Loading branch information
Daniel Pressel authored and dpressel committed Apr 4, 2023
1 parent e96ddd8 commit 3b896d7
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from dataclasses import dataclass, field
from typing import Optional
import numpy as np
from train_utils import load_data, create_tokenizer, Preprocessor, setup_logging
from alexa_teacher_models.scripts.train_utils import load_data, create_tokenizer, Preprocessor, setup_logging
from metrics import get_metric

# This allows us to us Auto* from HuggingFace to get to the model
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from dataclasses import dataclass, field
from typing import Optional
from datasets import DatasetDict
from train_utils import load_data, create_tokenizer, Preprocessor
from alexa_teacher_models.scripts.train_utils import load_data, create_tokenizer, Preprocessor

# This allows us to us Auto* from HuggingFace to get to the model
import alexa_teacher_models
Expand Down
2 changes: 1 addition & 1 deletion scripts/repl.py → alexa_teacher_models/scripts/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import logging
from pprint import pprint
from prompt_toolkit import PromptSession
from train_utils import create_tokenizer
from alexa_teacher_models.scripts.train_utils import create_tokenizer

DEFAULT_PRE = '[CLM] '
# TODO: make configurable level
Expand Down
File renamed without changes.
9 changes: 6 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = 1.0.0
description = Alexa Teacher Models
author = amazon-alexa
author_email = [email protected]
url = https://www.github.com/https://github.com/alexa/alexa-teacher-models
url = https://github.com/alexa/alexa-teacher-models
license = Apache 2.0
keywords=
deep-learning
Expand Down Expand Up @@ -34,14 +34,17 @@ classifiers =

[options]
packages = find:

include_package_data = True
install_requires =
numpy
transformers
sentencepiece>=0.1.95
torch>=1.7
torch>=1.7,<2.0
protobuf<3.21.0

[options.package_data]
alexa_teacher_models = scripts/deepspeed/*.json

[options.extras_require]
repl:
prompt_toolkit
Expand Down

0 comments on commit 3b896d7

Please sign in to comment.