Giter VIP home page Giter VIP logo

Comments (6)

Zhihan1996 avatar Zhihan1996 commented on June 16, 2024

Can you try to install transformers with pip install transformers==4.29?

from dnabert_2.

wych1994 avatar wych1994 commented on June 16, 2024

Unfortunately, I downgraded transformer package from 4.29.2 to 4.29.0 and I got the same error.
I am using Windows 11 and PyCharm IDE.
To reproduce the error, I initialized a new conda environment and did the following installation steps:

conda create -n dna python=3.8
conda activate dna
python3 -m pip install -r requirements.txt
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

Additionally, the error pop at the following line in the train function at train.py:

    model_args, data_args, training_args = parser.parse_args_into_dataclasses()

I also tried to upgrate transformer to latest but it did not work and with new errors.

from dnabert_2.

Zhihan1996 avatar Zhihan1996 commented on June 16, 2024

Thanks for sharing! This is expected if you run the codes from the IDE. This argument parser is designed for running code from the command line. Can you try to run it in command line?

from dnabert_2.

sy0217 avatar sy0217 commented on June 16, 2024

sorry, I met the same situation and error code. Could you tell me how to fix the issue? Thanks

from dnabert_2.

Zhihan1996 avatar Zhihan1996 commented on June 16, 2024

Are yor running the codes from an interactive python interpreter (e.g., Jupyter Notebook or IPython). The argparse package is expected to be run from the command line

from dnabert_2.

sy0217 avatar sy0217 commented on June 16, 2024

Thank you for your replyment. I found that there was a , at the end of line52 of train.py, after I deleted the , , the code ran successfully.

from dnabert_2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.