上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: # 问题 安装一个包,本身已经包含某依赖,在新的安装包还会重复安装 # 方案 ## 方法1 手动提前安装好包对应的依赖包,然后无依赖安装该包 pip install --no-deps xxx ## 方法2 下载包并修改对应的依赖包版本,再安装。如: Clone the library and ch 阅读全文
posted @ 2023-07-31 10:56 春树&暮云 阅读(171) 评论(0) 推荐(0)
摘要: # 问题 ![](https://img2023.cnblogs.com/blog/2550519/202307/2550519-20230713133821636-1712732866.png) # 方法 不使用原始密码,使用github生成的tokens作为密码鉴权 ![](https://im 阅读全文
posted @ 2023-07-13 13:41 春树&暮云 阅读(268) 评论(0) 推荐(0)
摘要: 查看 sudo netstat -tunlp | grep 19999 # 会显示端口号对应的进程id,继续查找对应的进程id即可 ls -l /proc/<进程ID>/cwd # 显示进程ID的目录 阅读全文
posted @ 2023-06-16 10:58 春树&暮云 阅读(10) 评论(0) 推荐(0)
摘要: 使用笔记 基于某列concat或 df = pd.merge(df_raw, df_ret, on="text") 交集 df_join = df1.merge(df2, how="inner", left_on="key1", right_on="key2") 差集 df_diff = df1[~ 阅读全文
posted @ 2023-05-17 15:41 春树&暮云 阅读(31) 评论(0) 推荐(0)
摘要: 显卡,显卡驱动,nvcc, cuda driver,cudatoolkit,cudnn到底是什么?请先看这个帖子https://www.cnblogs.com/marsggbo/p/11838823.html 如何使用不同版本的CUDA! 假设使用CUDA 11.7版本,在你的当前环境,注入以下环境 阅读全文
posted @ 2023-04-04 15:36 春树&暮云 阅读(74) 评论(0) 推荐(0)
摘要: 问题 安装paddlenlp报错: subprocess.CalledProcessError python3 -m pip install --upgrade paddlenlp -i https://mirror.baidu.com/pypi/simple 解决方案 检查是否是依赖包seqeva 阅读全文
posted @ 2023-02-15 21:07 春树&暮云 阅读(262) 评论(0) 推荐(0)
摘要: 杂记 NacosTimer: 轮询的方式执行一个回调函数 Watcher: 监听的方式来同步配置 add_config_watcher _init_pulling: 通过新开后台线程,轮询(while True)来拉取数据(队列的方式获取cache_key, content, md5 = self. 阅读全文
posted @ 2023-01-12 10:23 春树&暮云 阅读(502) 评论(0) 推荐(0)
摘要: 现象 基于pytorch的模型服务,本地裸跑代码都是正常的,一旦上docker服务部署后,程序会出现卡死现象 解决 原因是,默认情况下,pytorch会启动宿主机当前的CPU核数作为线程数去运行,一旦该docker服务是和其他服务共享机器,就容易造成CPU占用过高,出现卡死。指定pytorch使用单 阅读全文
posted @ 2022-11-18 16:13 春树&暮云 阅读(423) 评论(0) 推荐(0)
摘要: Docker 批量stop容器 # docker stop $(docker images -a | awk '/xxxx/ { print $3 }') Pip 离线安装whl pip download -d deps torch==1.9.1+cpu -f https://download.py 阅读全文
posted @ 2022-11-18 14:57 春树&暮云 阅读(16) 评论(0) 推荐(0)
摘要: 方法 trace_err = traceback.format_exc().replace("\n", "\\n") # 日志转换成一行,方便基于request_id追踪 log.error(trace_err) 阅读全文
posted @ 2022-07-28 09:39 春树&暮云 阅读(192) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页