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

FATAL Flags parsing error: flag --config=None: Flag --config must have a value other than None. #7

Open
Enternal-w opened this issue Jun 11, 2024 · 9 comments

Comments

@Enternal-w
Copy link

Dear author, I have a problem that I can't solve

FATAL Flags parsing error: flag --config=None: Flag --config must have a value other than None.
Pass --helpshort or --helpfull to see help on flags.

@tyshiwo1
Copy link
Owner

Which commands did you use, training or evaluation? Please be as detailed as possible.

@Enternal-w
Copy link
Author

training

@tyshiwo1
Copy link
Owner

You executed accelerate launch --multi_gpu --num_processes 8 --mixed_precision fp16 ./train.py --config=configs/cifar10_S_DiM.py and then get this error?

@tyshiwo1
Copy link
Owner

tyshiwo1 commented Jun 11, 2024

Do you have any other error messages surrounding this FATAL Flags parsing error: flag --config=None: Flag --config must have a value other than None. Pass --helpshort or --helpfull to see help on flags.?

@Enternal-w
Copy link
Author

Thank you very much for your reply. As a newcomer, I don't quite understand the "accelerate launch..." where should this code be entered.Is your code running on Linux? I use pycharm in window.

@tyshiwo1
Copy link
Owner

OK. I know.

accelerate is a library developed by huggingface. You just need to install it like pip install accelerate (which I have included in the environment.yaml)

Then, in the bash of your linux, you need to activate the installed conda environment conda activate mamba-attn, and then directly type in this accelerate launch...

@tyshiwo1
Copy link
Owner

tyshiwo1 commented Jun 11, 2024

Here is the whole steps you need to follow, and I have included it in my readme:

# create env:
conda env create -f environment.yaml

# if you want to update the env `mamba` with the contents in `~/mamba_attn/environment.yaml`:
conda env update --name mamba --file ~/mamba_attn/environment.yaml --prune

# Switch to the correct environment
conda activate mamba-attn
conda install chardet

# Compiling Mamba. This step may take a lot of time, please be patient.
# You need to successfully install causal-conv1d first.
CAUSAL_CONV1D_FORCE_BUILD=TRUE pip install --user -e .
# If failing to compile, you can copy the files in './build/' from another server which has compiled successfully; Maybe --user is necessary.

# Optional: if you have only 8 A100 to train Huge model with a batch size of 768, I recommand to install deepspeed to reduce the required GPU memory:
pip install deepspeed

@Enternal-w
Copy link
Author

Ok, thank you very much

@tyshiwo1
Copy link
Owner

However, I haven't tested it on Windows. You can post your issues here and I will try my best to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants