oneflow icon indicating copy to clipboard operation
oneflow copied to clipboard

ImportError: cannot import name 'DynamicMockModule' from 'oneflow.mock_torch'

Open BoxFishLab opened this issue 1 year ago • 2 comments

  • What is your OneFlow installation (pip, source, dockerhub): pip
  • OS: ubantu 2204
  • OneFlow version (run python3 -m oneflow --doctor): 0.9.0
  • Python version: 3.10.0
  • CUDA driver version: 11.7

BoxFishLab avatar Jan 22 '24 07:01 BoxFishLab

OneFlow version (run python3 -m oneflow --doctor): 0.9.0

Please update oneflow like this: https://github.com/siliconflow/onediff?tab=readme-ov-file#1-install-oneflow

strint avatar Jan 22 '24 08:01 strint

Another way is to install the nightly version of open source OneFlow, like this:

python3 -m pip install --pre oneflow -f https://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/master/cu118

levi131 avatar Feb 05 '24 08:02 levi131