当前位置: 首页 > news >正文

开发网站如何赚钱网站的外部链接建设

开发网站如何赚钱,网站的外部链接建设,中天钢铁 网站建设,沭阳网站建设招聘文章目录 一、基础概念学习篇1.1 langchain视频学习笔记1.2 Finetune LLM视频学习笔记 二、实践篇2.1 预先下载模型#xff1a;2.2 LangChain2.3 Colab demo2.3 text-generation-webui 三、国内项目实践langchain-chatchat 一、基础概念学习篇 1.1 langchain视频学习笔记 lan… 文章目录 一、基础概念学习篇1.1 langchain视频学习笔记1.2 Finetune LLM视频学习笔记 二、实践篇2.1 预先下载模型2.2 LangChain2.3 Colab demo2.3 text-generation-webui 三、国内项目实践langchain-chatchat 一、基础概念学习篇 1.1 langchain视频学习笔记 langchain是基于LLM的一套解决方案包括对文本问答等功能 参考视频吴恩达大神团队的https://www.bilibili.com/video/BV1pz4y1e7T9/?p1vd_source82b50e78f6d8c4b40bd90af87f9a980b 整理流程 问题和参考知识(来自文本)打包成prompt传入给LLM然后LLM返回回答完成对文本进行问答 概念图 嵌入文本流程 对于嵌入文本找相似度 向量数据库 问题出发去向量数据库中匹配多个向量知识 1.2 Finetune LLM视频学习笔记 参考https://www.bilibili.com/video/BV1Rz4y1T7wz?p8spm_id_frompageDrivervd_source82b50e78f6d8c4b40bd90af87f9a980b Prompt和Finetune的对比 二、实践篇 部署入口https://github.com/ymcui/Chinese-LLaMA-Alpaca-2 2.1 预先下载模型 各个方式部署的优缺点在入口链接上也有 2.2 LangChain 参考链接https://github.com/ymcui/Chinese-LLaMA-Alpaca-2/wiki/langchain_zh bash交互式chatlangchain_zh部署 预先下载text2vec-large-chinese向量化模型https://huggingface.co/GanymedeNil/text2vec-large-chinese/tree/main 链接中的解释在检索式问答中LangChain通过问句与文档内容的相似性匹配来选取文档中与问句最相关的部分作为上下文与问题组合生成LLM的输入。因此需要准备一个合适的embedding model用于匹配过程中的文本/问题向量化。 部署 conda create -n langchain3 python3.8 conda activate langchain3 git clone https://github.com/ymcui/Chinese-LLaMA-Alpaca-2.git pip install langchain pip install sentence_transformers2.2.2 pip install pydantic1.10.8 pip install faiss-gpu1.7.1 pip install protobuf pip install accelerate python langchain_qa.py --embedding_path /path/to/text2vec-large-chinese --model_path /path/to/chinese-alpaca-2-7b --file_path doc.txt --chain_type refine2.3 Colab demo 参考链接https://colab.research.google.com/drive/1yu0eZ3a66by8Zqm883LLtRQrguBAb9MR?uspsharing 部署 conda create -n colab python3.8 conda activate colab # 然后按照链接步骤来即可 git clone https://github.com/ymcui/Chinese-LLaMA-Alpaca-2.git pip install -r Chinese-LLaMA-Alpaca-2/requirements.txt pip install gradio # 下载模型 git clone https://huggingface.co/ziqingyang/chinese-alpaca-2-7b python Chinese-LLaMA-Alpaca-2/scripts/inference/gradio_demo.py --base_model /content/chinese-alpaca-2-7b --load_in_8bit报错 Could not create share link. Please check your internet Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 2. Rename the downloaded file to: frpc_linux_amd64_v0.2 3. Move the file to this location: /home/gykj/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio解决方案 如果这个报错则去https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64下载再重命名frpc_linux_amd64_v0.2再放入/home/gykj/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio内即可。 然后特别注意需要修改权限 chmod x /home/gykj/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio/frpc_linux_amd64_v0.22.3 text-generation-webui 参考链接https://github.com/ymcui/Chinese-LLaMA-Alpaca-2/wiki/text-generation-webui_zh 安装text-generation-webui 参考https://github.com/oobabooga/text-generation-webui#installation git clone https://github.com/oobabooga/text-generation-webui.git cd text-generation-webui用手动安装的方式 conda create -n textgen python3.11 conda activate textgen # 我用的cuda11.8 NVTITAN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118看是否has AVX2 apt install cpuid cpuid | grep AVX2然后安装对应reqirements我这边装这个报错没走这步下一步缺少什么安装什么也可包不多 然后 python server.py缺什么pip install什么就可以。 运行 参考https://github.com/ymcui/Chinese-LLaMA-Alpaca-2/wiki/text-generation-webui_zh 准备模型权重 ls models/chinese-alpaca-2-7b config.json generation_config.json pytorch_model-00001-of-00002.bin pytorch_model-00002-of-00002.bin pytorch_model.bin.index.json special_tokens_map.json tokenizer_config.json tokenizer.json tokenizer.model加载命令 python server.py --model chinese-alpaca-2-7b --chat --share也可以是 python server.py --model /home/gykj/thomascai/models/chinese-alpaca-2-13b --chat --share报错 Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:4. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 5. Rename the downloaded file to: frpc_linux_amd64_v0.2 6. Move the file to this location: /home/gykj/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio解决方案 如果这个报错则去https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64下载再重命名frpc_linux_amd64_v0.2再放入/home/gykj/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio内即可。 然后特别注意需要修改权限 sudo chmod x /home/gykj/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio/frpc_linux_amd64_v0.2三、国内项目实践langchain-chatchat 比较好用的国内项目 按照 https://github.com/chatchat-space/Langchain-Chatchat/wiki/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E9%83%A8%E7%BD%B2 的本地部署环境安装即可记得预先下载好模型放在对应位置 有专门的wiki比较详细如有问题可以讨论他们也有群也可以加群讨论~ 整理资料不易请一键三连支持感谢~ ∼ O n e p e r s o n g o f a s t e r , a g r o u p o f p e o p l e c a n g o f u r t h e r ∼ \sim_{One\ person\ go\ faster,\ a\ group\ of\ people\ can\ go\ further}\sim ∼One person go faster, a group of people can go further​∼
http://www.dnsts.com.cn/news/41839.html

相关文章:

  • 网站设计步骤有哪些备案关闭网站
  • 网站咋建立网站建设构架
  • 企业网站的设计你好南京网站
  • c#网站开发工具网上接活的平台有哪些
  • 中国建设银行网站首页u盾登入济宁网站建设怎么样
  • 外贸网站建设渠道飞翔时代 网站建设
  • 淮安市做网站知名的传媒行业网站开发
  • 潍坊尚呈网站建设公司怎么样东营 网站建设
  • 南宁网站开发外包性价比58同城推广是怎么做推广的
  • dede网站首页加悬浮广告小制作手工小学生
  • 深度网营销型网站建设湖南哪里有做网站的
  • 教做布艺的网站在西宁做网站可以吗
  • 体育直播网站开发数据源获取怎么把产品快速宣传并推广
  • 在哪里可以做个人网站广州 做网站
  • 百度seo网站优化百度助手
  • 0基础如何做网站做目录右内容网站
  • 怎么做公司网站公司网站手机版设计
  • 网站备案ip查询网站免费建站系统对比
  • 做网站的公司哪家石家庄关键词优化软件
  • 阿里巴巴网站icp编号怎么查实木家具全屋定制十大名牌
  • 网站不收录深圳摇号申请网站
  • 免费网站建设好不好南昌整站优化
  • 怎么自己设计网站企业网页建设
  • 网站关键词是什么意思虚拟主机 网站镜像
  • 网站策划案内容企业网站 优秀
  • 网站制作国际连锁门户网站建设会议纪要
  • php网站中水印怎么做的公司网站备案
  • 学做烘培的网站加外链网站
  • 网站建设与单位干部作风的关系手机百度下载免费
  • 男人和女人做羞羞的事情网站做橱窗设计的网站