Skip to content

Commit 06f9010

Browse files
authored
liger kernel (#4)
1 parent a433b0f commit 06f9010

3 files changed

Lines changed: 893 additions & 875 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ When training is done, you can bundle your output checkpoint with `leap-bundle`
6060

6161
## 🧪 Advanced Configuration
6262

63-
### Default Configs Location and Adding New Configs
64-
6563
The default configurations are located in:
6664

6765
- **SFT Training**: [`src/leap_finetune/configs/sft_configs.py`](./src/leap_finetune/configs/sft_configs.py)
@@ -70,6 +68,9 @@ The default configurations are located in:
7068

7169
To add a new training configuration add it to the respective file and then reference it in [`src/leap_finetune/configs/__init__.py`](./src/leap_finetune/configs/__init__.py) in the `TrainingConfig` and/or `PeftConfig` enum.
7270

71+
We also support [Liger Kernel](https://github.com/linkedin/Liger-Kernel) and it comes pre-installed.
72+
Just add `"use_liger_kernel": True"` to your `user_config`
73+
7374
## Contributing
7475

7576
1. Hook `pre-commit` to git: `uv run pre-commit install`

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "leap-finetune"
33
version = "0.1.0"
4-
description = "A simple trl wrapper to streamline v2 fine-tuning"
4+
description = "A minimal fine-tuning repo for LFM2, fully built on Open Source."
55
readme = "README.md"
66
authors = [
77
{ name = "Liquid AI", email = "support@liquid.ai" }
@@ -13,9 +13,10 @@ dependencies = [
1313
"deepspeed>=0.17.1",
1414
"ray[train]>=2.47.1",
1515
"torch>=2.7.1",
16-
"transformers",
16+
"transformers>=4.55.0",
1717
"trl>=0.18.2",
1818
"rich>=14.1.0",
19+
"liger-kernel>=0.6.1",
1920
]
2021

2122
[project.scripts]
@@ -30,6 +31,3 @@ dev = [
3031
"pre-commit>=4.2.0",
3132
"ruff>=0.11.13",
3233
]
33-
34-
[tool.uv.sources]
35-
transformers = { git = "https://github.com/huggingface/transformers.git", rev = "bf607f6d3bd7bf95aaa1094c3a51c3476e4ddc29" }

0 commit comments

Comments
 (0)