Skip to content

Setting NumPy version to 1.26 for compatibility with PyTorch 2.2.1+cu121#85

Merged
openshift-merge-bot[bot] merged 1 commit intored-hat-data-services:rhoai-2.8from
Snomaan6846:syedali-RHOAIENG-21889
Apr 3, 2025
Merged

Setting NumPy version to 1.26 for compatibility with PyTorch 2.2.1+cu121#85
openshift-merge-bot[bot] merged 1 commit intored-hat-data-services:rhoai-2.8from
Snomaan6846:syedali-RHOAIENG-21889

Conversation

@Snomaan6846
Copy link
Copy Markdown
Member

@Snomaan6846 Snomaan6846 commented Apr 3, 2025

Signed-off-by: Snomaan6846 syedali@redhat.com

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

Jira Link : https://issues.redhat.com/browse/RHOAIENG-21889

Description

Higher version of numpy 2.2.4 was casuing incompatibility with torch version 2.2.1+cu121, Hence downgrading previous compatible numpy version 1.26.4.

Verification

  1. Build the image using command "make buid"
  2. verified the versions inside the container using generated image

docker run -it text-gen-server:0 bash
[tgis@0b5a8cc03691 app]$
[tgis@0b5a8cc03691 app]$ pip freeze|egrep 'numpy|torch'
DEPRECATION: Loading egg at /opt/tgis/lib/python3.11/site-packages/custom_kernels-0.0.0-py3.11-linux-x86_64.egg is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at pypa/pip#12330
numpy==1.26.4
torch==2.2.1+cu121

Signed-off-by: Snomaan6846 <syedali@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@openshift-ci openshift-ci bot requested review from Xaenalt and heyselbi April 3, 2025 13:43
@Xaenalt Xaenalt removed their request for review April 3, 2025 13:48
@heyselbi
Copy link
Copy Markdown

heyselbi commented Apr 3, 2025

/lgtm
/approve

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 3, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: heyselbi, Snomaan6846

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Apr 3, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 99b8efe into red-hat-data-services:rhoai-2.8 Apr 3, 2025
7 checks passed
@Snomaan6846 Snomaan6846 deleted the syedali-RHOAIENG-21889 branch April 4, 2025 06:58
@Snomaan6846 Snomaan6846 self-assigned this Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants