Skip to content

Commit 44e6a11

Browse files
authored
Merge branch 'main' into feat/odm-wo-categories
2 parents e93dcf9 + 717decc commit 44e6a11

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

build/nvcr.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ RUN pip install --upgrade --force-reinstall torch torchaudio torchvision --index
4747
# Install main package + flash attention
4848
COPY . ${SOURCE_DIR}
4949
RUN cd ${SOURCE_DIR}
50-
RUN pip install --no-cache-dir ${SOURCE_DIR} && \
51-
pip install --no-cache-dir ${SOURCE_DIR}[flash-attn]
50+
51+
RUN pip install --no-cache-dir ${SOURCE_DIR}
52+
RUN pip install --user --no-build-isolation ${SOURCE_DIR}[flash-attn]
5253

5354
# Optional extras
5455
RUN if [[ "${ENABLE_FMS_ACCELERATION}" == "true" ]]; then \

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
{name = "Sukriti Sharma", email = "[email protected]"},
1414
{name = "Anh Uong", email = "[email protected]"},
1515
]
16-
license = "Apache-2.0"
16+
license = {text = "Apache-2.0"}
1717
readme = "README.md"
1818
requires-python = "~=3.9"
1919
keywords = ['fms-hf-tuning', 'python', 'tuning']
@@ -30,6 +30,7 @@ dependencies = [
3030
"accelerate>=1.9.0,<2.0.0",
3131
"transformers>=4.55.0,<=4.55.4",
3232
"torch>2.7.0,<2.9.0",
33+
"torchvision<0.24",
3334
"sentencepiece>=0.1.99,<0.3",
3435
"tokenizers<=0.22",
3536
"tqdm>=4.66.2,<5.0",

tuning/data/setup_dataprocessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def setup_train_dataset_for_odm(
570570
reward_type=odm_config.odm.reward_type,
571571
auto_categorize_config=auto_categorize_config,
572572
)
573-
train_args.accelerator_config = {"split_batches": True}
573+
train_args.accelerator_config = {"dispatch_batches": False}
574574
return (True, train_dataset, data_collator)
575575

576576

0 commit comments

Comments
 (0)