Comments (4)
The save_ckpts_from_n_epochs
must be a number. Use 0
instead of null
.
from everydream2trainer.
Just realize there is a setup_args
function.
Maybe adding this check?
if args.save_ckpts_from_n_epochs is None or args.save_ckpts_from_n_epochs < 1:
args.save_ckpts_from_n_epochs = 1
from everydream2trainer.
I get something similar.
* Saving diffusers model to logs\redacted\ckpts\errored-redacted-ep00-gs00095
Traceback (most recent call last):
File "redacted\EveryDream2trainer\train.py", line 1132, in main
model_pred, target, loss = get_model_prediction_and_target(batch["image"], batch["tokens"], args.zero_frequency_noise_ratio, return_loss=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "redacted\EveryDream2trainer\train.py", line 921, in get_model_prediction_and_target
cuda_caption = tokens.to(text_encoder.device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: CUDA error: unknown error
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.```
from everydream2trainer.
Set save_ckpts_from_n_epochs
to 0 indeed should solve the original issue. The point is to declare from what epoch is the first that checkpoints are allowed to be saved when other rules are also met. null
doesn't make any sense, but 0
(always save when other requirements met) or perhaps something like 99999999
or 1e15
(effectively only save at end of training) might.
@Macgyverops your issue looks completely unrelated. It looks like a potential hardware problem as that shouldn't fail after 95 steps. You can try the suggested setting of CUDA_LAUNCH_BLOCKING=1 to get a better error (in windows you can use set CUDA_LAUNCH_BLOCKING=1
to set the ENV var and get a better error in the command line prior to running python train.py ...
If you are still having problems please open a new issue as it is not related to the original post here.
from everydream2trainer.
Related Issues (20)
- [BUG] Using --disable_unet_training massively increases VRAM usage and crashes on 12gb VRAM HOT 1
- [BUG] Checkpoint does not load in InvokeAI, `state_dic` issues HOT 1
- Reinstall HOT 1
- [BUG] HOT 1
- Multiple GPUs Parallel Trainning. HOT 3
- [ERROR] HOT 1
- [ERROR] Cannot install the requirements on Linux HOT 5
- [BUG]about multi-gpu training HOT 3
- [ERROR] Colab CUDA setup Error HOT 3
- Something went wrong, attempting to save model [ERROR]
- "RuntimeError: Input type (float) and bias type (struct c10::Half) should be the same" HOT 2
- Can no longer train my model. Getting Safety checker error HOT 2
- Feature request: Save checkpoint on exit HOT 2
- Colab error after running the first block[BUG] HOT 2
- [ERROR] unrecognized arguments: --useadam8bit HOT 1
- [ERROR]: finetuned model doesn't work with diffusers and comfyui HOT 2
- Discord url is outdated HOT 4
- [ERROR] Could not load library libcudnn_cnn_train.so.8. Error: /usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8: undefined symbol: _ZN5cudnn3cnn5infer22queryClusterPropertiesERPhS3_, version libcudnn_cnn_infer.so.8
- [BUG] RunPod Jupyter is Empty HOT 6
- [BUG] HOT 1
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 everydream2trainer.