
问题与解决
文章平均质量分 68
夏树让
记录
展开
-
transformers 在训练时一直卡着:Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0
在使用 transformers 中的 Trainer 进行模型训练时,发现程序一直卡着,没有进入模型的 forward 函数。Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. 一开始以为这个只是一个普通的 warning,没想到这就是问题所在。内核:5.4.0-149-generic。原创 2024-09-09 12:00:47 · 3258 阅读 · 0 评论 -
llama-cpp-python 程序 Pyinstaller 打包后运行报错(RuntimeError: Failed to load shared library ‘llama.dll‘)
本人基于 llama-cpp-python 构建了一个领域知识问答程序,并通过 Pyinstaller 打包成一个包含.exe运行文件的文件夹。该.exe在本机和另外三台电脑上运行正常,但在另两台上报错:RuntimeError: Failed to load shared library 'llama.dll'原创 2024-05-20 12:09:58 · 1614 阅读 · 0 评论 -
ElasticSearch 创建索引超时(ReadTimeoutError)
在查阅网络资料时,一开始以为是字面意思上的连接超时问题,但调大 timeout 参数也一样报错,而且之前用相同方法创建类似索引时并未出现该问题。elasticsearch.log(节选内容)在 Python 中调用。原创 2024-04-21 17:27:34 · 1398 阅读 · 2 评论 -
无长度限制文档级中文翻英文小工具
文档级中翻英小工具基于百度翻译 API 实现了一个 文档级翻译小工具。主要功能可翻译任意长度的 doc/docx 文档(不过受百度翻译API调用频率的限制,长文档翻译一般需要较长时间,特别是表格较多的文档)不局限于中文翻英文(可在 cofig.yaml 配置文件中指定源语言和目标语言)翻译结果能够保留源文档的段落样式效果图左为源文档,右为中翻英结果文档使用方法准备Python 环境需要先安装 Python(建议通过 Anaconda 安装),以及 requirements.tx原创 2021-04-30 14:11:19 · 820 阅读 · 0 评论 -
Python 常见错误排查
AttributeError、SyntaxError、TypeError、IndentationError、IOError、KeyError 错误排查原创 2020-08-25 11:20:11 · 782 阅读 · 0 评论 -
MyBatis Generator:[WARNING] Table Configuration users matched more than one table
MyBatis Generator:[WARNING] Table Configuration users matched more than one table使用MyBatis Generator生成代码时遇到的问题以及解决方法原创 2019-07-23 09:55:18 · 4818 阅读 · 9 评论