bug
bug
CodeWang_NC
三人行, 必有我师
展开
-
TypeError: ‘set‘ object is not subscriptable
merged_ranges = sheet_.merged_cell_ranges # 获取当前工作表的所有合并区域列表。原创 2024-01-11 00:47:34 · 703 阅读 · 0 评论 -
AssertionError: Please update the *.json and *.py files of ChatGLM2-6B from HuggingFace.
重新到huggginface中下载文件进行更新替换即可 最好.py .json的文件全部替换。这个因为配置文件没有更新。原创 2023-07-05 17:17:02 · 166 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘allennlp‘解决方法
ModuleNotFoundError: No module named 'allennlp'解决方法allennlp安装原创 2023-05-04 15:23:26 · 1562 阅读 · 1 评论 -
RuntimeError:Input and parameter tensors are not at the same device, found input tensor at cuda:0 an
RuntimeError: Input and parameter tensors are not at the same device, found input tensor at cuda:0 and parameter tensor at cpu 错误解决原创 2022-06-10 21:33:01 · 6021 阅读 · 5 评论 -
pandas._config.config.OptionError: ‘Pattern matched multiple keys‘
pandas._config.config.OptionError: ‘Pattern matched multiple keys’问题描述:我之前明明能正常运行的代码 但是今天忽然运行不了, 显示错误pandas._config.config.OptionError: 'Pattern matched multiple keys'大概意思说是我这一行有问题pd.set_option('precision', 2) # 2 表示画两个线错误原因:pandas版本太高,由于前几天刚刚升级了p原创 2022-04-15 12:03:46 · 7614 阅读 · 1 评论 -
原因:无法将 ‘<>‘ 与非泛型类LinkedList一起使用
在执行一下代码是遇到如下错误1.问题执行代码import java.util.List;import java.util.LinkedList;public class LinkedList { public static void main(String[] args) { List<String> list = new LinkedList<>(); //添加元素 list.add("a"); l原创 2022-04-12 12:14:53 · 1750 阅读 · 1 评论 -
self.hparams = hparams 报错 基于pytroch-lightning的T5模型微调出先的问题
self.hparams = hparams, 使用基于pytroch-lightning的T5模型微调出先的问题1.运行代码:### 运行的代码class T5FineTuner(pl.LightningModule, nn.Module): def __init__(self, hparams): # 传入的args super(T5FineTuner, self).__init__() self.hparams = hparams ### 报错行原创 2022-04-10 16:38:21 · 3290 阅读 · 10 评论 -
TypeError: optimizer_step() got an unexpected keyword argument ‘on_tpu‘
今天在使用T5模型微调时遇见如下错误出现错误: TypeError: optimizer_step() got an unexpected keyword argument ‘on_tpu’报错原因: 通过收索博客发现问题是因为pytorch_lightning 版本没有更新1.首先查看自己的版本 pip list当前是版本为0.8.1版本, 接下来我们就升级该版本2.输入命令更新到最新版本:pip install --upgrade pytorch_lightning升级成功之后再原创 2022-04-08 11:54:30 · 2556 阅读 · 0 评论 -
T5Tokenizer requires the SentencePiece library but it was not found in your environment.
出现错误: T5Tokenizer requires the SentencePiece library but it was not found in your environment.问题出现是因为我要使用T5Tokenizerfrom transformers import AdamW, T5ForConditionalGeneration, T5Tokenizer出现如下问题:解决方法:第一步:确实用最新的pip 安装, 否则可能会出现错误pip install --upgrade原创 2022-04-06 15:06:13 · 17064 阅读 · 3 评论 -
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 没有显示
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 没有显示安装cuda的参考博客:https://blog.csdn.net/qq_32408773/article/details/84112166解决方案可以直接跳到2.1.由于本人今天再cuda, 然后安装cudnn的时候遇到了这个问题,之前一切都很顺利,到了最后一步显示安装的时候却没有显示成功的界面cat /usr/local/cuda/include/cudnn.h | g原创 2022-03-28 14:43:33 · 2711 阅读 · 2 评论 -
main.py: error: the following arguments are required:
报错 “main.py: error: the following arguments are required:”1.首先查看报错信息如图下图所示main.py: error: the following arguments are required: --task, --dataset, --paradigm大致是说我设置的三个参数task, dataset, paradigm有问题找到设置参数的地方, 发现这三个参数都有required=True这个属性parser.add_argumen原创 2022-04-06 15:54:22 · 43579 阅读 · 14 评论 -
Verifying archive integrity... Error in check sums 1981929512 2439459451
错误:Verifying archive integrity… Error in check sums 1981929512 2439459451今天在安装nvidia驱动的时候出现了这个问题执行如下代码sudo bash ./NVIDIA-Linux-*******.run -no-opengl-files出现下面的bugVerifying archive integrity... Error in check sums 1981929512 2439459451查了一下法相有可能是下载的原创 2022-03-28 20:45:30 · 2501 阅读 · 0 评论 -
OSError: [Errno 22] Invalid argument: ‘xingchenbian/https://ts1.yuyuangewh.com:9999/20200724/jyawKn4
OSError: [Errno 22] Invalid argument: ‘xingchenbian/https://ts1.yuyuangewh.com:9999/20200724/jyawKn4r/2000kb/hls/eEhpLgJz.ts’ 错误及解决方法1.本人今天在使用open()打开文件方法是发现如下错误:OSError: [Errno 22] Invalid argument: 'xingchenbian/https://ts1.yuyuangewh.com:9999/20200724/原创 2021-10-04 21:37:51 · 486 阅读 · 0 评论 -
TypeError: forward() got an unexpected keyword argument ‘label‘
在调用bert 模型是遇到如下报错信息:Traceback (most recent call last): File "D:/program/PyChramWorkspace/CS224N/fine tune/TestSA.py", line 131, in <module> train_loss, train_acc = train(model, sentiment_train_loader, optimizer, criterion, device) File "D:/p原创 2022-03-25 22:40:53 · 5917 阅读 · 0 评论 -
pip intsall 安装报错 ERROR: Could not find a version that satisfies the requirementi
1.使用pip install 包名: 出现问题和警告pip install transformers警告信息:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (_ssl.c原创 2022-04-07 12:48:17 · 17897 阅读 · 1 评论