Comments (6)
Can you try to install transformers
with pip install transformers==4.29
?
from dnabert_2.
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.
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.
sorry, I met the same situation and error code. Could you tell me how to fix the issue? Thanks
from dnabert_2.
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.
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)
- hidden_states = model(inputs)[0] # [1, sequence_length, 768]-- Is the second dimension really the sequence length? HOT 1
- Discuss a question about k-mer HOT 1
- When will the code for pre-training model and training BPE tokenizer be available? HOT 1
- Quickstart Does not work and Embedding Dim is not 768 HOT 1
- Pretraining, Pretraining, Pretraining!!! HOT 2
- I always encounter this error during the fine-tuning evaluation phase HOT 1
- Fine-tune for continuous labels HOT 3
- How do I output the attention from the model? HOT 1
- Special token treatment. HOT 1
- splice site predictions
- Unable to Retrieve ' hidden_states ' Despite ' Setting return_dict=True ' and ' output_hidden_states=True ' HOT 3
- Cannot Reproduce DNA-BERT2‘s Result HOT 1
- GUE+ datasets? HOT 2
- Is it neccessary to train a specific BPE tokenizer on own datasets? HOT 1
- Getting embedding of a sequence HOT 2
- CUDA out of memory HOT 8
- About random factor in the embedding/tokenization process HOT 6
- TypeError: __init__() got an unexpected keyword argument 'token' HOT 1
- GUE labels
- About the motif prediction function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnabert_2.