会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
春树&暮云
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
8
下一页
2023年7月31日
pip安装依赖问题
摘要: # 问题 安装一个包,本身已经包含某依赖,在新的安装包还会重复安装 # 方案 ## 方法1 手动提前安装好包对应的依赖包,然后无依赖安装该包 pip install --no-deps xxx ## 方法2 下载包并修改对应的依赖包版本,再安装。如: Clone the library and ch
阅读全文
posted @ 2023-07-31 10:56 春树&暮云
阅读(171)
评论(0)
推荐(0)
2023年7月13日
github https clone 鉴权失败
摘要: # 问题  # 方法 不使用原始密码,使用github生成的tokens作为密码鉴权 
评论(0)
推荐(0)
2023年6月16日
查看端口进程占用
摘要: 查看 sudo netstat -tunlp | grep 19999 # 会显示端口号对应的进程id,继续查找对应的进程id即可 ls -l /proc/<进程ID>/cwd # 显示进程ID的目录
阅读全文
posted @ 2023-06-16 10:58 春树&暮云
阅读(10)
评论(0)
推荐(0)
2023年5月17日
pandas使用
摘要: 使用笔记 基于某列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)
2023年4月4日
多个CUDA版本使用
摘要: 显卡,显卡驱动,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)
2023年2月15日
paddlenlp安装报错: subprocess.CalledProcessError
摘要: 问题 安装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)
2023年1月12日
Nacos(python)
摘要: 杂记 NacosTimer: 轮询的方式执行一个回调函数 Watcher: 监听的方式来同步配置 add_config_watcher _init_pulling: 通过新开后台线程,轮询(while True)来拉取数据(队列的方式获取cache_key, content, md5 = self.
阅读全文
posted @ 2023-01-12 10:23 春树&暮云
阅读(502)
评论(0)
推荐(0)
2022年11月18日
pytorch使用docker部署后卡死现象
摘要: 现象 基于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)
2022年7月28日
traceback追踪异常信息并打印到log
摘要: 方法 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
下一页
公告