Skip to content

Commit 607984c

Browse files
Add changes to support granite 4 models (#599)
Signed-off-by: yashasvi <yashasvi@ibm.com>
1 parent 9c7858e commit 607984c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

build/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ RUN if [[ -z "${WHEEL_VERSION}" ]]; \
151151
fi && \
152152
ls /tmp/*.whl >/tmp/bdist_name
153153

154+
# Ensures to always build mamba_ssm from source
155+
ENV PIP_NO_BINARY=mamba-ssm,mamba_ssm
156+
154157
# Install from the wheel
155158
RUN --mount=type=cache,target=/home/${USER}/.cache/pip,uid=${USER_UID} \
156159
python -m pip install --user wheel && \

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ classifiers=[
2929
dependencies = [
3030
"numpy>=1.26.4,<2.0",
3131
"accelerate>=0.20.3,!=0.34,<1.7",
32-
"transformers>=4.49,<=4.52.4",
33-
"torch>=2.2.0,<2.7",
32+
"transformers>=4.53.0,<=4.55.4",
33+
"torch>2.6.0,<=2.8.0",
3434
"sentencepiece>=0.1.99,<0.3",
3535
"tokenizers>=0.13.3,<1.0",
3636
"tqdm>=4.66.2,<5.0",
@@ -44,7 +44,7 @@ dependencies = [
4444

4545
[project.optional-dependencies]
4646
dev = ["wheel>=0.42.0,<1.0", "packaging>=23.2,<25", "ninja>=1.11.1.1,<2.0", "scikit-learn>=1.0, <2.0", "boto3>=1.34, <2.0"]
47-
flash-attn = ["flash-attn>=2.5.3,<2.8"]
47+
flash-attn = ["flash-attn>=2.8.3"]
4848
aim = ["aim>=3.19.0,<4.0"]
4949
mlflow = ["mlflow"]
5050
clearml = ["clearml==2.0.0"]

0 commit comments

Comments
 (0)