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

run_fusion_glue #567

Closed
4 tasks
Lawrence0319 opened this issue Jul 11, 2023 · 1 comment
Closed
4 tasks

run_fusion_glue #567

Lawrence0319 opened this issue Jul 11, 2023 · 1 comment
Labels
question Further information is requested

Comments

@Lawrence0319
Copy link

Environment info

I can't run transformers-cli env in Google Colab

  • adapter-transformers version: 3.2.1
  • Platform: Google Colab
  • Python version: 3.10.12
  • PyTorch version (GPU?): 2.0.1+cu118
  • Tensorflow version (GPU?): 2.12.0
  • Using GPU in script?: Yes
  • Using distributed or parallel set-up in script?:

Information

Model I am using (Bert, XLNet ...):
Adapter fusion from this website: https://github.com/adapter-hub/adapter-transformers/blob/master/examples/pytorch/adapterfusion/run_fusion_glue.py

My command in Colab:
!python drive/MyDrive/run_fusion_glue.py --model_name_or_path "bert-base-uncased" --task_name "sst-2" --data_dir "drive/MyDrive/gluedata" --output_dir "drive/MyDrive/glue"

It is stuck at the line:
from transformers import (
AdapterArguments,
AdapterTrainer,
AutoConfig,
AutoModelForSequenceClassification,
AutoTokenizer,
EvalPrediction,
GlueDataset,
)

Adapter setup I am using (if any):

The problem arises when using:

  • the official example scripts: (give details below)
  • my own modified scripts: (give details below)

The tasks I am working on is:

  • an official GLUE/SQUaD task: (give the name)
  • my own task or dataset: (give details below)

To reproduce

Steps to reproduce the behavior:

Expected behavior

@Lawrence0319 Lawrence0319 added the bug Something isn't working label Jul 11, 2023
@lenglaender
Copy link
Member

Hey @Lawrence0319,
If the import does not work, it is likely that you still have the transformers package installed. Since adapter-transformers is currently a drop-in replacement for this package, it uses the same namespace (see https://docs.adapterhub.ml/installation.html).

Therefore, please uninstall transformers (and install adapter-transformers if you haven't already). After that, everything should work.

@calpt calpt added question Further information is requested and removed bug Something isn't working labels Dec 16, 2023
@calpt calpt closed this as completed Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants