Akegarasu / Akegarasu/lora-scripts

docker训练模型报错,打标报错

Abierto
#667 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
6.1k
Forks
699
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

# 1.训练模型报错
```
Traceback (most recent call last):
File "/app/lora-scripts/./scripts/stable/train_network.py", line 1115, in
trainer.train(args)
File "/app/lora-scripts/./scripts/stable/train_network.py", line 154, in train
tokenizer = self.load_tokenizer(args)
File "/app/lora-scripts/./scripts/stable/train_network.py", line 105, in load_tokenizer
tokenizer = train_util.load_tokenizer(args)
File "/app/lora-scripts/scripts/stable/library/train_util.py", line 4242, in load_tokenizer
tokenizer = CLIPTokenizer.from_pretrained(original_path)
File "/usr/local/lib/python3.10/dist-packages/transformers/tokenization_utils_base.py", line 2255, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.
09:28:27-408799 ERROR Training failed / 训练失败
```
## 可能原因,没有配置代理访问不了huggingface下载所需内容,请教一下如何在容器中配置代理,是配置在run命令,还是容器内部修改脚本添加变量
# 2.打标报错,尝试将windows下整合包中huggingface/hub文件夹下内容复制到docker容器中也报错
# 3.docker镜像为registry.cn-hangzhou.aliyuncs.com/go-to-mirror/akegarasu_lora-scripts:latest,容器开启时输出日志为
```
=============
== PyTorch ==
=============

NVIDIA Release 24.07 (build 100464919)
PyTorch Version 2.4.0a0+3bcc3cd
Container image Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Copyright (c) 2014-2024 Facebook Inc.
Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
Copyright (c) 2011-2013 NYU (Clement Farabet)
Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
Copyright (c) 2006 Idiap Research Institute (Samy Bengio)
Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
Copyright (c) 2015 Google Inc.
Copyright (c) 2015 Yangqing Jia
Copyright (c) 2013-2016 The Caffe contributors
All rights reserved.

Various files include modifications (c) NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

WARNING: CUDA Minor Version Compatibility mode ENABLED.
Using driver version 550.135 which has support for CUDA 12.4. This container
was built with CUDA 12.5 and will be run in Minor Version Compatibility mode.
CUDA Forward Compatibility is preferred over Minor Version Compatibility for use
with this container but was unavailable:
[[]]
See https://docs.nvidia.com/deploy/cuda-compatibility/ for details.

NOTE: The SHMEM allocation limit is set to the default of 64MB. This may be
insufficient for PyTorch. NVIDIA recommends the use of the following flags:
docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 ...

09:34:14-625883 INFO Starting SD-Trainer Mikazuki GUI...
09:34:14-627555 INFO Base directory: /app/lora-scripts, Working directory:
/app/lora-scripts
09:34:14-628021 INFO Linux Python 3.10.12 /usr/bin/python
09:34:15-257782 INFO SD-Trainer Version: v1.10.0-11-g1df9685
09:34:15-258945 INFO Starting tageditor...
09:34:15-259831 INFO Starting tensorboard...
09:34:15-272372 INFO Server started at http://0.0.0.0:28000
TensorFlow installation not found - running with reduced feature set.

NOTE: Using experimental fast data loading logic. To disable, pass
"--load_fast=false" and report issues on GitHub. More details:
https://github.com/tensorflow/tensorboard/issues/4784

09:34:15-805516 INFO Loading config from
/app/lora-scripts/assets/config.json
09:34:15-806610 INFO Torch 2.4.0a0+3bcc3cddb5.nv24.07
09:34:15-810120 INFO Torch backend: nVidia CUDA 12.5 cuDNN 90201
09:34:15-821236 INFO Torch detected GPU: NVIDIA GeForce RTX 3050 VRAM 7958
Arch (8, 6) Cores 20
TensorBoard 2.10.1 at http://0.0.0.0:6006/ (Press CTRL+C to quit)

```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.