-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate Liger into training (#275)
* integrate Liger to training * update for loras * implement pyproject.toml; improve liger argparse help * refactor train.py and train_lora.py * update doc for merge-weights script --------- Co-authored-by: Jeffrey Fong <[email protected]>
- Loading branch information
1 parent
2062295
commit 9dd31c3
Showing
6 changed files
with
357 additions
and
381 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[project] | ||
name = "functionary-train" | ||
version = "0.0.1" | ||
description = "Chat language model that can use tools and interpret the results" | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"torch==2.4.0+cu121", | ||
"torchvision==0.19.0+cu121", | ||
"torchaudio==2.4.0+cu121", | ||
"accelerate==0.34.0", | ||
"bitsandbytes==0.44.1", | ||
"scipy==1.11.3", | ||
"sentencepiece==0.1.99", | ||
"packaging==23.1", | ||
"ninja==1.11.1", | ||
"einops==0.7.0", | ||
"wandb==0.15.11", | ||
"jsonref==1.1.0", | ||
"deepspeed==0.14.5", | ||
"typer==0.9.0", | ||
"tensorboard==2.15.1", | ||
"aenum==3.1.15", | ||
"transformers @ git+https://github.com/huggingface/transformers.git", | ||
"flash-attn==v2.6.3", | ||
"json_source_map==1.0.5", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools>=61.0", "wheel>=0.42.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
package-dir = { "" = ".." } | ||
packages = ["train"] | ||
|
||
[project.optional-dependencies] | ||
liger = [ | ||
"liger-kernel==0.3.1", | ||
] | ||
lora = [ | ||
"peft==0.5.0", | ||
"datasets==2.8.0", | ||
] |
Oops, something went wrong.