mesh-transformer-jax icon indicating copy to clipboard operation
mesh-transformer-jax copied to clipboard

The latest update to PIP breaks installation

Open markriedl opened this issue 3 years ago • 7 comments
trafficstars

The latest update of PIP seems to have changed dependency resolution such that mesh-transformer-jax hard to install. Installation now requires an older version of pip, some specific versions of packages like 'transformers' and some forced ordering of packages.

These are the steps I had to do:

  1. pip install pip==22.0
  2. Edit requirements.txt:
  • transformers==4.16.2
  • fastapi==0.73.0
  • uvicorn==0.17.1
  1. pip install jax==0.2.12 tensorflow==2.5.0 (as before but has to come earlier)
  2. pip install -r mesh-transformer-jax/requirements.txt
  3. pip install mesh-transformer-jax/ jax==0.2.12 tensorflow==2.5.0

markriedl avatar Mar 18 '22 16:03 markriedl

For me too, the installation of the requirements takes forever.

danyaljj avatar Mar 21 '22 18:03 danyaljj

Same here, even when following @markriedl's steps, pip still searches for hours. I know these days it would be more straightforward to just use the model at goose.ai, but I wanted to make some experiments with sampling etc. It'd be great if it could be made to work again!

jchwenger avatar Apr 02 '22 15:04 jchwenger

I wonder if I didn't transcribe the order of operations right. This notebook won't take too long to run: https://colab.research.google.com/drive/17zvUhLcpjUKJdTRg00HYdGMEN3uoMy-M?usp=sharing

markriedl avatar Apr 03 '22 00:04 markriedl

Thanks! It works again.

jchwenger avatar Apr 03 '22 12:04 jchwenger

I wonder if I didn't transcribe the order of operations right. This notebook won't take too long to run: https://colab.research.google.com/drive/17zvUhLcpjUKJdTRg00HYdGMEN3uoMy-M?usp=sharing

Thanks for this fix. I wonder if I'm the only one for whom network.state = read_ckpt(network.state, "step_383500/", devices.shape[1]) is causing a RAM overflow terminating the session?

PhilWicke avatar Apr 13 '22 18:04 PhilWicke

I'm getting AttributeError: module 'jax.random' has no attribute 'KeyArray' on import optax with your example @markriedl

lightyrs avatar Apr 28 '22 20:04 lightyrs

Sorry @markriedl I see the solution posted in https://github.com/kingoflolz/mesh-transformer-jax/issues/221

lightyrs avatar Apr 28 '22 20:04 lightyrs