Skip to content

Commit

Permalink
Fix numpy upgrade to 2.0.0 BUFSIZE import error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yejing-Lai committed Jun 18, 2024
1 parent b33873d commit 396c634
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deepspeed/autotuning/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

import copy

from numpy import BUFSIZE
import numpy
if numpy.__version__ < '2.0.0':
from numpy import BUFSIZE
else:
from numpy._core.umath import BUFSIZE
import json
import subprocess
import sys
Expand Down

0 comments on commit 396c634

Please sign in to comment.