-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hello
I am trying to run tweetnlp v0.4.5 in Python v3.10.18 on a Mac
there have been a number of versioning issues with dependencies but right now if I try to load the sentiment model
model = tweetnlp.load_model('sentiment')
we get this error:
ValueError: Due to a serious vulnerability issue in torch.load, even with weights_only=True, we now require users to upgrade torch to at least v2.6 in order to use the function. This version restriction does not apply when loading files with safetensors.
Python seems to be only able to install up to torch v2.2.2 currently
ERROR: Could not find a version that satisfies the requirement torch==2.6.0 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch==2.6.0
Any thoughts would be great!