-
Notifications
You must be signed in to change notification settings - Fork 497
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
MemoryError #413
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MemoryError
thread '' panicked at C:\Users\runneradmin.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.20.2\src\err\mod.rs:788:5:
Python API call failed
note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceTraceback (most recent call last):
File "C:\Users\songz\Documents\app\lora-scripts-v1.8.5\sd-scripts\sdxl_train_network.py", line 184, in
trainer.train(args)
File "C:\Users\songz\Documents\app\lora-scripts-v1.8.5\sd-scripts\train_network.py", line 916, in train
save_model(ckpt_name, accelerator.unwrap_model(network), global_step, epoch + 1)
File "C:\Users\songz\Documents\app\lora-scripts-v1.8.5\sd-scripts\train_network.py", line 732, in save_model
unwrapped_nw.save_weights(ckpt_file, save_dtype, metadata_to_save)
File "C:\Users\songz\Documents\app\lora-scripts-v1.8.5\sd-scripts\networks\lora.py", line 1116, in save_weights
model_hash, legacy_hash = train_util.precalculate_safetensors_hashes(state_dict, metadata)
File "C:\Users\songz\Documents\app\lora-scripts-v1.8.5\sd-scripts\library\train_util.py", line 2430, in precalculate_safetensors_hashes
bytes = safetensors.torch.save(tensors, metadata)
File "C:\Users\songz\Documents\app\lora-scripts-v1.8.5\python\lib\site-packages\safetensors\torch.py", line 245, in save
serialized = serialize(_flatten(tensors), metadata=metadata)
pyo3_runtime.PanicException: Python API call failed
The text was updated successfully, but these errors were encountered: