Skip to content

Commit

Permalink
Merge branch 'main' into utility_to_post-process_LoRA
Browse files Browse the repository at this point in the history
  • Loading branch information
Ssukriti authored Sep 10, 2024
2 parents fa42c73 + 2144f1a commit e5e4c27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ classifiers=[
]
dependencies = [
"numpy>=1.26.4,<2.0",
"accelerate>=0.20.3,<0.40",
"accelerate>=0.20.3,<0.34",
"transformers>4.41,<5.0",
"torch>=2.2.0,<3.0",
"sentencepiece>=0.1.99,<0.3",
"tokenizers>=0.13.3,<1.0",
"tqdm>=4.66.2,<5.0",
"trl>=0.9.3,<1.0",
"peft>=0.8.0,<0.13",
"protobuf>=5.28.0,<6.0.0",
"datasets>=2.15.0,<3.0",
"fire>=0.5.0,<1.0",
"simpleeval>=0.9.13,<1.0",
]

Expand Down
5 changes: 2 additions & 3 deletions tuning/sft_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
)
from transformers.utils import is_accelerate_available
from trl import SFTConfig, SFTTrainer
import fire
import transformers

# Local
Expand Down Expand Up @@ -515,7 +514,7 @@ def parse_arguments(parser, json_config=None):
)


def main(**kwargs): # pylint: disable=unused-argument
def main():
parser = get_parser()
logger = logging.getLogger()
job_config = get_json_config()
Expand Down Expand Up @@ -636,4 +635,4 @@ def main(**kwargs): # pylint: disable=unused-argument


if __name__ == "__main__":
fire.Fire(main)
main()

0 comments on commit e5e4c27

Please sign in to comment.