-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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: 'SGD' object has no attribute 'train' #34034
Comments
Also cc @qubvel regarding object detction |
I assume that this error will not be stricted to vision area, but not sure |
potential related issue |
Hi @SangbumChoi, I also faced this issue with the outdated version of Accelerate, updating it should help! |
@qubvel Can you tell me which version should I use? I am using 0.33.0 |
Could you try with 0.34? |
@qubvel Thanks it works :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Info
Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points.
transformers
version: 4.46.0.dev0Platform: Linux-5.15.0-100-generic-x86_64-with-glibc2.35
Python version: 3.10.14
Huggingface_hub version: 0.24.7
Safetensors version: 0.4.5
Accelerate version: 0.33.0
Accelerate config: not found
PyTorch version (GPU?): 2.2.2 (True)
Tensorflow version (GPU?): not installed (NA)
Flax version (CPU?/GPU?/TPU?): not installed (NA)
Jax version: not installed
JaxLib version: not installed
Using distributed or parallel set-up in script?:
Using GPU in script?:
GPU type: NVIDIA A100 80GB PCIe
Accelerate
version: 0.33.0Platform: Linux-5.15.0-100-generic-x86_64-with-glibc2.35
accelerate
bash location: /opt/conda/bin/acceleratePython version: 3.10.14
Numpy version: 1.26.4
PyTorch version (GPU?): 2.2.2 (True)
PyTorch XPU available: False
PyTorch NPU available: False
PyTorch MLU available: False
PyTorch MUSA available: False
System RAM: 755.86 GB
GPU type: NVIDIA A100 80GB PCIe
Accelerate
default config:Not found
Who can help?
@muellerzr @SunMarc
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
run_object_decection.py
Expected behavior
After adding
It returns the following error when the input of optimizers is raw pytorch optimizer
The text was updated successfully, but these errors were encountered: