Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'torchtext' has no attribute 'transforms' #4015

Open
nqbao opened this issue Jul 13, 2024 · 5 comments
Open

AttributeError: module 'torchtext' has no attribute 'transforms' #4015

nqbao opened this issue Jul 13, 2024 · 5 comments
Labels
bug Something isn't working dependency llm Large Language Model related

Comments

@nqbao
Copy link

nqbao commented Jul 13, 2024

Describe the bug
I got this error while trying to train a model with encoder = bert

To Reproduce

trainer:
    validation_field: engagement_label
    validation_metric: roc_auc
    early_stop: 10

input_features:
    - name: text1
      type: text
      encoder: 
          type: bert
    - name: text2
      type: text
      encoder: 
          type: bert

output_features:
    - name: engagement_label
      type: binary
      threshold: 0.6

Expected behavior
model is trained with no error

Screenshots
n/a

Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Python 3.11.8
  • ludwig==0.10.3

Additional context
Add any other context about the problem here.

@nqbao
Copy link
Author

nqbao commented Jul 13, 2024

this seems to be relate to #4013

@alexsherstinsky alexsherstinsky added the llm Large Language Model related label Sep 6, 2024
@mhabedank mhabedank self-assigned this Oct 16, 2024
@mhabedank
Copy link
Collaborator

Hi @nqbao can you give us some deeper insights. The trace and some test data would be helpful.

@mhabedank
Copy link
Collaborator

@skanjila @ethanreidel we need to discuss how to deal with torchtext in general. The library will not be further developed. https://pytorch.org/text/stable/

@nqbao
Copy link
Author

nqbao commented Oct 17, 2024

@mhabedank i don't remember how to reproduce this one but basically this is an incompatibility with pytorch and pytorch text, so i don't know which version to install to make this works

it would be nice if we specify somewhere what are the requirements

@mhabedank mhabedank removed their assignment Oct 21, 2024
@mhabedank mhabedank added bug Something isn't working dependency labels Oct 21, 2024
@mhabedank
Copy link
Collaborator

@nqbao we worked on this, can you install torchtext 0.17.2 and try again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependency llm Large Language Model related
Projects
None yet
Development

No branches or pull requests

3 participants