-
Notifications
You must be signed in to change notification settings - Fork 68
Description
encountering issues while setting up and testing the meshgpt-pytorch package. These issues include a dependency conflict and the use of deprecated APIs in x-transformers.
Dependency Conflict: The meshgpt-pytorch package requires x-transformers within the version range <1.31, >=1.30.19, but the current dependency resolver installs an incompatible version (1.44.4).
Error Message:
vbnet
Copy code
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
meshgpt-pytorch 1.5.12 requires x-transformers<1.31,>=1.30.19, but you have x-transformers 1.44.4 which is incompatible.
We resolved this by downgrading x-transformers to 1.30.19, but this feels like a stopgap solution.
Deprecated API Usage: While running the package, we see warnings related to deprecated functions in x-transformers:
bash
Copy code
/home/jeb/meshgpt_env/lib/python3.12/site-packages/x_transformers/x_transformers.py:504: FutureWarning: torch.cuda.amp.autocast(args...)
is deprecated. Please use torch.amp.autocast('cuda', args...)
instead.
This issue suggests that some parts of the code are not updated to use the latest PyTorch API (torch.amp.autocast).
Steps to Reproduce:
Clone the meshgpt-pytorch repository.
Create and activate a virtual environment using Python 3.12.
Install the package as per the instructions in the repository.
Run the tests or use the library.
Expected Behavior:
Dependencies should resolve without conflict.
No warnings or errors should appear during execution.
Environment Details:
Python version: 3.12
PyTorch version: [specify version]
OS: [Linux/Mac/Windows]
x-transformers version: Initially 1.44.4, downgraded to 1.30.19.
Workaround: We resolved the dependency conflict temporarily by downgrading x-transformers to 1.30.19 but encountered the deprecated API warnings.
Request:
Update the dependency requirements to avoid conflicts.
Modify the code to use the latest PyTorch API for compatibility.
===== Python Environment =====
Python Version: Python 3.12.8
Pip Version: pip 24.3.1 from /home/jeb/programs/mgpt/meshgpt_env/lib/python3.12/site-packages/pip (python 3.12)
Installed Python Packages:
Package Version
accelerate 1.2.1
aiohappyeyeballs 2.4.4
aiohttp 3.11.11
aiosignal 1.3.2
attrs 24.3.0
beartype 0.19.0
certifi 2024.12.14
charset-normalizer 3.4.1
classifier-free-guidance-pytorch 0.7.1
contourpy 1.3.1
cycler 0.12.1
einops 0.8.0
einx 0.3.0
ema-pytorch 0.7.7
environs 14.1.0
filelock 3.16.1
fonttools 4.55.3
frozendict 2.4.6
frozenlist 1.5.0
fsspec 2024.12.0
ftfy 6.3.1
gateloop-transformer 0.2.5
huggingface-hub 0.27.1
idna 3.10
iniconfig 2.0.0
jaxtyping 0.2.36
Jinja2 3.1.5
kiwisolver 1.4.8
local-attention 1.9.15
loguru 0.7.3
MarkupSafe 3.0.2
marshmallow 3.25.0
matplotlib 3.10.0
meshgpt-pytorch 1.5.12
mpmath 1.3.0
multidict 6.1.0
networkx 3.4.2
numpy 2.2.1
nvidia-cublas-cu12 12.4.5.8
nvidia-cuda-cupti-cu12 12.4.127
nvidia-cuda-nvrtc-cu12 12.4.127
nvidia-cuda-runtime-cu12 12.4.127
nvidia-cudnn-cu12 9.1.0.70
nvidia-cufft-cu12 11.2.1.3
nvidia-curand-cu12 10.3.5.147
nvidia-cusolver-cu12 11.6.1.9
nvidia-cusparse-cu12 12.3.1.170
nvidia-nccl-cu12 2.21.5
nvidia-nvjitlink-cu12 12.4.127
nvidia-nvtx-cu12 12.4.127
open_clip_torch 2.30.0
optree 0.13.1
packaging 24.2
pillow 11.1.0
pip 24.3.1
pluggy 1.5.0
propcache 0.2.1
psutil 6.1.1
pyparsing 3.2.1
pytest 8.3.4
python-dateutil 2.9.0.post0
python-dotenv 1.0.1
pytorch-custom-utils 0.0.21
pytorch-warmup 0.2.0
PyYAML 6.0.2
regex 2024.11.6
requests 2.32.3
rotary-embedding-torch 0.8.6
safetensors 0.5.2
sentencepiece 0.2.0
setuptools 75.8.0
six 1.17.0
sympy 1.13.1
taylor-series-linear-attention 0.1.12
timm 1.0.13
tokenizers 0.21.0
torch 2.5.1
torch-geometric 2.6.1
torchtyping 0.1.5
torchvision 0.20.1
tqdm 4.67.1
transformers 4.48.0
triton 3.1.0
typeguard 2.13.3
typing_extensions 4.12.2
urllib3 2.3.0
vector-quantize-pytorch 1.21.1
wcwidth 0.2.13
x-transformers 1.30.19
yarl 1.18.3
===== Virtual Environment =====
Virtual Environment: /home/jeb/programs/mgpt/meshgpt_env
===== Environment Variables =====
SHELL=/bin/bash
SESSION_MANAGER=local/worlock:@/tmp/.ICE-unix/5810,unix/worlock:/tmp/.ICE-unix/5810
WINDOWID=96520872
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
NVM_INC=/home/jeb/.nvm/versions/node/v18.20.5/include/node
XDG_MENU_PREFIX=xfce-
GTK_IM_MODULE=ibus
CLUTTER_BACKEND=x11
LANGUAGE=en_US
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
OPENAI_API_KEY=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
XMODIFIERS=@im=ibus
DESKTOP_SESSION=xubuntu
GTK_MODULES=gail:atk-bridge
XDG_SEAT=seat0
PWD=/home/jeb/programs/mgpt/meshgpt-pytorch/tests
XDG_SESSION_DESKTOP=xubuntu
LOGNAME=jeb
QT_QPA_PLATFORMTHEME=gtk2
XDG_SESSION_TYPE=x11
TESSDATA_PREFIX=/usr/share/tesseract-ocr/5/
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
XAUTHORITY=/home/jeb/.Xauthority
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/jeb
GDM_LANG=en_US
HOME=/home/jeb
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:
XDG_CURRENT_DESKTOP=XFCE
VIRTUAL_ENV=/home/jeb/programs/mgpt/meshgpt_env
VTE_VERSION=6800
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
M2_HOME=/opt/maven
CLUTTER_IM_MODULE=ibus
NVM_DIR=/home/jeb/.nvm
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
CPLUS_INCLUDE_PATH=/home/jeb/.wasmedge/include
GTK_OVERLAY_SCROLLING=0
LESSOPEN=| /usr/bin/lesspipe %s
LIBVIRT_DEFAULT_URI=qemu:///system
USER=jeb
LIBRARY_PATH=/home/jeb/.wasmedge/lib
DISPLAY=:0.0
SHLVL=2
NVM_CD_FLAGS=
QT_IM_MODULE=ibus
XDG_VTNR=7
XDG_SESSION_ID=c2
VIRTUAL_ENV_PROMPT=(meshgpt_env)
LD_LIBRARY_PATH=/usr/local/cuda-12.6/lib64:/home/jeb/.wasmedge/lib
XDG_RUNTIME_DIR=/run/user/1000
BUN_INSTALL=/home/jeb/.bun
XDG_DATA_DIRS=/usr/share/xfce4:/usr/share/xubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share
PATH=/home/jeb/programs/mgpt/meshgpt_env/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/jeb/.nimble/bin:
GDMSESSION=xubuntu
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
C_INCLUDE_PATH=/home/jeb/.wasmedge/include
NVM_BIN=/home/jeb/.nvm/versions/node/v18.20.5/bin
OLDPWD=/home/jeb/programs/mgpt/meshgpt-pytorch
_=/usr/bin/env