2025年2月21日
摘要: # 预设置 llm = ChatOpenAI(temperature=0.0, model=llm_model) memory = ConversationBufferMemory() conversation = ConversationChain( llm=llm, memory = memor 阅读全文
posted @ 2025-02-21 15:57 CharXL 阅读(181) 评论(0) 推荐(0)
摘要: 使用f””” “””来指定和说明提示词 确定风格和需要修改的文本 如果可以建立一个prompt让llm使用如上图所示的特定关键词(思维链),那这个prompt可以同解析器结合,提取出特定关键词标记的文本,目的是抽象的指定llm的输入,然后让解析器正确的解释llm的输出 流程: 设置llm输出要求提示 阅读全文
posted @ 2025-02-21 15:55 CharXL 阅读(111) 评论(0) 推荐(0)
  2024年12月30日
摘要: 报错:error: RPc failed; curl 18 transfer closed with outstanding read data remaining error: 1289 bytes of body are still expected fetch-pack: unexpected 阅读全文
posted @ 2024-12-30 20:29 CharXL 阅读(121) 评论(0) 推荐(0)
  2024年12月13日
摘要: Docker架构 docker可用源列表网站:https://www.fre321.com/docker_proxy_list docker命令 docker exec命令 在容器内启动新的进程,即通过多个终端分别启动新的shell会话,可以在同一个容器内进行操作 docker exec -it m 阅读全文
posted @ 2024-12-13 11:41 CharXL 阅读(37) 评论(0) 推荐(0)
摘要: # 尝试修复因依赖关系问题导致的安装失败 sudo apt --fix-broken install # 安装过程被中断或遇到配置问题,可以使用此命令重新配置所有未完成的包 sudo dpkg --configure -a # 如果遇到缓存问题,可以通过清理缓存来解决 sudo apt clean 阅读全文
posted @ 2024-12-13 11:38 CharXL 阅读(2156) 评论(0) 推荐(0)
摘要: // 交换 ctrl 和 caps // 修改/etc/default/keyboard中的XKBOPTIONS XKBOPTIONS="ctrl:swapcaps" // 安装xcape sudo install xcape sudo pacman -Sy xcape // 添加自启动文件 sud 阅读全文
posted @ 2024-12-13 11:32 CharXL 阅读(127) 评论(0) 推荐(0)
摘要: docker源配置文件是 /etc/docker/daemon.json docker可用源地址:https://www.fre321.com/docker_proxy_list 将如下内容复制进去,可修改地址 { "registry-mirrors": [ "https://dockerpull. 阅读全文
posted @ 2024-12-13 11:28 CharXL 阅读(301) 评论(0) 推荐(0)
摘要: 软件源配置文件是 /etc/apt/sources.list 先备份在编辑 mv /etc/apt/sources.list /etc/apt/sources.list.bakup sudo vim /etc/apt/sources.list # 默认注释了源码镜像以提高 apt update 速度 阅读全文
posted @ 2024-12-13 11:27 CharXL 阅读(88) 评论(0) 推荐(0)
摘要: -S 加终端名字创建一个虚拟终端 screen -S lsz1 ctrl + a + d 退出屏幕 -ls 显示有多少虚拟终端被创建 screen -ls -r进入虚拟终端 screen -r 强制回复screen screen -d -r FRL-1 删除虚拟终端 screen -X -S 123 阅读全文
posted @ 2024-12-13 11:26 CharXL 阅读(68) 评论(0) 推荐(0)
摘要: 保存模型参数 # 保存方式1,模型结构+模型参数 torch.save(vgg16, "vgg16_method1.pth") # 保存方式2,模型参数(官方推荐) torch.save(vgg16.state_dict(), "vgg16_method2.pth") 读取模型参数 # 读取方式1- 阅读全文
posted @ 2024-12-13 11:25 CharXL 阅读(87) 评论(0) 推荐(0)