当前位置:   article > 正文

whisper-large-v3 双卡 v100 64G 训练 问题总结_whisper large-v3

whisper large-v3

运行环境

  1. pip install matplotlib
  2. pip3.8 install jupyterlab

安装python; 在jupyterlab上面运行whisper训练脚本的时候报错 ModuleNotFoundError: No module named '_lzma';

卸载python3.8

重新安装

  1. tar -xf Python-3.8.0.tgz
  2. cd python3.8
  3. ./configure --enable-optimizations --with-lzma
  4. make -j $(nproc)
  5. sudo make altinstall
  6. python3.8 -c "import _lzma"

更新pip

sudo pip3.8 install --upgrade pip

设置镜像取消镜像

  1. pip config set global.index-url Simple Index
  2. pip config unset global.index-url

安装pytorch

pip3.8 install torch torchvision

查看GPU 是否可用

  1. nvidia-smi
  2. bale@sxl1-0001:~$ python3.8
  3. Python 3.8.1 (default, Dec 13 2023, 10:43:13)
  4. [GCC 7.5.0] on linux
  5. Type "help", "copyright", "credits" or "license" for more information.
  6. >>> import torch
  7. >>> torch.cuda.is_available()

结果是否为true

当为false的时候, 尝试运行命令

sudo apt-get install nvidia-modprobe

ImportError: Using the `Trainer` with `PyTorch` requires `accelerate>=0.20.1`: Please run `pip install transformers[torch]` or `pip install accelerate -U`

安装jupyter 启动 停止进程。

  1. pip3.8 install jupyterlab
  2. nohup jupyter-lab --ip=0.0.0.0 --port=8888 > jupyter.log 2>&1 &
  3. pkill -f "jupyter-lab"

可以写一个.sh脚本

Jupyter 无法调用huggingface接口。

启动之前执行

  1. set HTTP_PROXY=http://127.0.0.1:7890
  2. set HTTPS_PROXY=http://127.0.0.1:7890

切换数据集需要删除缓存

rm -rf ~/.cache/huggingface/datasets/

启动Tensorboard

nohup tensorboard --logdir=/home/bale/Tensorboard/loggingdir --port=8887 --bind_all > tensorboard.log 2>&1 &

报错 AttributeError: module 'distutils' has no attribute 'version'

  1. pip uninstall setuptools
  2. pip install setuptools==41.2.0

相关参考文档

https://huggingface.co/blog/zh/fine-tune-whisper

[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files · Issue #5659 · huggingface/datasets · GitHub

Ability to fine-tune whisper large on a GPU with 24 gb of ram · Issue #20348 · huggingface/transformers · GitHubhttps://github.com/huggingface/transformers/issues/20348

Gradio Audio Docs

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/345908
推荐阅读
相关标签
  

闽ICP备14008679号