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

如何做家具网站软文范例大全800

如何做家具网站,软文范例大全800,网页制作与网站建设...,网站上面怎么做链接不推荐小白,环境配置比较复杂 全部流程 下载原始模型:Chinese-LLaMA-Alpaca-2linux部署llamacpp环境使用llamacpp将Chinese-LLaMA-Alpaca-2模型转换为gguf模型windows部署Text generation web UI 环境使用Text generation web UI 加载模型并进行对话 准…

不推荐小白,环境配置比较复杂

全部流程

  • 下载原始模型:Chinese-LLaMA-Alpaca-2
  • linux部署llamacpp环境
  • 使用llamacpp将Chinese-LLaMA-Alpaca-2模型转换为gguf模型
  • windows部署Text generation web UI 环境
  • 使用Text generation web UI 加载模型并进行对话

准备工作

  1. 笔记本环境:

    • 操作系统:win11
    • CPU:AMD R7535HS
    • GPU:笔记本4060显卡
    • CUDA版本:11.8
    • VM虚拟机:Ubuntu16

  2. 下载模型和部署环境全程需要挂梯子


下载原始模型

原项目链接:https://github.com/ymcui/Chinese-LLaMA-Alpaca-2

模型名称类型大小下载地址
Chinese-LLaMA-2-13B基座模型24.7 GB[百度] [Google] [🤗HF]
Chinese-LLaMA-2-7B基座模型12.9 GB[百度] [Google] [🤗HF]
Chinese-Alpaca-2-13B指令模型24.7 GB[百度] [Google] [🤗HF]
Chinese-Alpaca-2-7B指令模型12.9 GB[百度] [Google] [🤗HF]

下载Chinese-Alpaca-2-7B模型即可,百度网盘不需要挂梯子,其他都需要梯子


linux部署llamacpp环境

原项目链接:https://github.com/ggerganov/llama.cpp
原文档链接:https://github.com/ymcui/Chinese-LLaMA-Alpaca-2/wiki/llamacpp_zh

Step 1: 安装python3.10

sudo apt update
sudo apt install python3.10

Step 2: 克隆和编译llama.cpp

  1. 拉取最新版llama.cpp仓库代码

    # 要安装git+梯子
    git clone https://github.com/ggerganov/llama.cpp
    

    或者

    #浏览器挂梯子打开https://github.com/ggerganov/llama.cpp
    #下载项目
    #解压缩项目到本地
    
  2. 对llama.cpp项目进行编译,生成./main(用于推理)和./quantize(用于量化)二进制文件

    cd 解压缩项目路径
    make
    

Step 3: 生成量化版本模型

  1. 创建目录并拷贝模型到项目目录:zh-models/7B/

  2. 将Chinese-LLaMA-Alpaca-2模型转换为gguf模型

    #根目录
    python convert.py zh-models/7B/
    
  3. 将生成的fp16格式的gguf模型进行4-bit量化

    ./quantize ./zh-models/7B/ggml-model-f16.gguf ./zh-models/7B/ggml-model-q4_0.gguf q4_0
    

Step 4: 加载并启动模型

到这一步其实可以用llama.cpp的加载模型方式对话了
但我用的虚拟机,性能有限,故而使用Text generation web UI 加载模型,具体如何加载建议看原文档和项目说明


windows部署Text generation web UI 环境

原项目:https://github.com/oobabooga/text-generation-webui

Step 1: 下载安装Miniconda3_py310

链接:https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Windows-x86_64.exe

Step 2: 克隆项目到本地

git clone  https://github.com/oobabooga/text-generation-webui

Step 3: 打开Miniconda3命令行,建立新conda环境

conda create -n textgen

Step 4: 下载安装相关的python各类环境库

有github链接的必须手动下载whl,再pip安装whl的绝对位置

conda activate textgen
cd 项目位置
pip install env/bitsandbytes-0.41.1-py3-none-win_amd64.whl
pip install E:\AI\环境第三方库\auto_gptq-0.4.2+cu117-cp310-cp310-win_amd64.whlhttps://github.com/jllllll/exllama/releases/download/0.0.17/exllama-0.0.17+cu117-cp310-cp310-win_amd64.whl
pip install E:\AI\环境第三方库\exllama-0.0.17+cu117-cp310-cp310-win_amd64.whlpip install llama-cpp-python==0.1.84https://github.com/jllllll/llama-cpp-python-cuBLAS-wheels/releases/download/textgen-webui/llama_cpp_python_cuda-0.1.84+cu117-cp310-cp310-win_amd64.whl
pip install E:\AI\环境第三方库\llama_cpp_python_cuda-0.1.84+cu117-cp310-cp310-win_amd64.whlhttps://github.com/jllllll/GPTQ-for-LLaMa-CUDA/releases/download/0.1.0/gptq_for_llama-0.1.0+cu117-cp310-cp310-win_amd64.whl
pip install E:\AI\环境第三方库\gptq_for_llama-0.1.0+cu117-cp310-cp310-win_amd64.whlhttps://github.com/jllllll/ctransformers-cuBLAS-wheels/releases/download/AVX2/ctransformers-0.2.25+cu117-py3-none-any.whl
pip install E:\AI\环境第三方库\ctransformers-0.2.25+cu117-py3-none-any.whlpip install -r requirements.txt -i 换源

Step 5: 启动web服务

conda activate textgen
cd E:/AI/项目/text-generation-webui-main
python server.py

使用Text generation web UI 加载模型并进行对话

  1. 打开生成的url网址
  2. 加载本地模型
  3. 对话即可

文章转载自:
http://dinncoplayfully.bpmz.cn
http://dinncolupulone.bpmz.cn
http://dinncosolemnness.bpmz.cn
http://dinncolobbyism.bpmz.cn
http://dinncointercrystalline.bpmz.cn
http://dinncosudd.bpmz.cn
http://dinncohoggish.bpmz.cn
http://dinncoplace.bpmz.cn
http://dinncoparlour.bpmz.cn
http://dinncoexteriorise.bpmz.cn
http://dinncoimpermanency.bpmz.cn
http://dinncoinquisition.bpmz.cn
http://dinncoabstractionist.bpmz.cn
http://dinncohandcuffs.bpmz.cn
http://dinncoreinflame.bpmz.cn
http://dinncocoenurus.bpmz.cn
http://dinncoclonicity.bpmz.cn
http://dinncoperitonitis.bpmz.cn
http://dinncotaxeme.bpmz.cn
http://dinncorussophil.bpmz.cn
http://dinncoslope.bpmz.cn
http://dinncotheodicean.bpmz.cn
http://dinncogotta.bpmz.cn
http://dinncointragroup.bpmz.cn
http://dinncoeventful.bpmz.cn
http://dinncoaffronted.bpmz.cn
http://dinncobrigandine.bpmz.cn
http://dinncosuspirious.bpmz.cn
http://dinncoindependentista.bpmz.cn
http://dinnconippy.bpmz.cn
http://dinncospartacus.bpmz.cn
http://dinncotrueheartedness.bpmz.cn
http://dinncodephosphorization.bpmz.cn
http://dinncoeasytran.bpmz.cn
http://dinncogainings.bpmz.cn
http://dinncoultramicrotome.bpmz.cn
http://dinncodimashq.bpmz.cn
http://dinncobereave.bpmz.cn
http://dinncokavaphis.bpmz.cn
http://dinncosuxamethonium.bpmz.cn
http://dinncodepressingly.bpmz.cn
http://dinncodiffer.bpmz.cn
http://dinncoilluminate.bpmz.cn
http://dinncoenchondrosis.bpmz.cn
http://dinncouvular.bpmz.cn
http://dinncoeyot.bpmz.cn
http://dinncobrolga.bpmz.cn
http://dinncopyrolyze.bpmz.cn
http://dinncoante.bpmz.cn
http://dinncolancashire.bpmz.cn
http://dinncosyntagm.bpmz.cn
http://dinncosloppy.bpmz.cn
http://dinncopipit.bpmz.cn
http://dinncocicatrization.bpmz.cn
http://dinncohexasyllabic.bpmz.cn
http://dinncosoliloquist.bpmz.cn
http://dinncohydromancy.bpmz.cn
http://dinncotintack.bpmz.cn
http://dinncoreappointment.bpmz.cn
http://dinncomorphinomaniac.bpmz.cn
http://dinncocokuloris.bpmz.cn
http://dinncoparboil.bpmz.cn
http://dinncononcombustibility.bpmz.cn
http://dinncosluggardly.bpmz.cn
http://dinncoarlene.bpmz.cn
http://dinncoinanga.bpmz.cn
http://dinncodefenceless.bpmz.cn
http://dinncoyenisei.bpmz.cn
http://dinncoheroical.bpmz.cn
http://dinncojejunely.bpmz.cn
http://dinnconumb.bpmz.cn
http://dinncodrosera.bpmz.cn
http://dinncolutose.bpmz.cn
http://dinncocloudling.bpmz.cn
http://dinncoremiform.bpmz.cn
http://dinncobuccal.bpmz.cn
http://dinncoexophthalmic.bpmz.cn
http://dinncoreptile.bpmz.cn
http://dinncodecongestion.bpmz.cn
http://dinncoseismoscope.bpmz.cn
http://dinncodusky.bpmz.cn
http://dinncoentocranial.bpmz.cn
http://dinncounsell.bpmz.cn
http://dinncolalique.bpmz.cn
http://dinncorentable.bpmz.cn
http://dinncocrossbedded.bpmz.cn
http://dinncoethnarchy.bpmz.cn
http://dinncosulphur.bpmz.cn
http://dinncofloodmark.bpmz.cn
http://dinncojudicious.bpmz.cn
http://dinncoclon.bpmz.cn
http://dinncoswitzer.bpmz.cn
http://dinncocanceration.bpmz.cn
http://dinncoentrechat.bpmz.cn
http://dinncocredited.bpmz.cn
http://dinncocensus.bpmz.cn
http://dinncoatomry.bpmz.cn
http://dinncobarbarity.bpmz.cn
http://dinncopeepul.bpmz.cn
http://dinncoosmious.bpmz.cn
http://www.dinnco.com/news/159454.html

相关文章:

  • 自己电脑上做网站百度推广效果
  • 凡科网站怎样做如何让百度能查到自己
  • 微网站自制推广拉新任务的平台
  • 单页网站如何做cpa怎么在百度上做推广
  • 手机上怎么使用wordpress网站关键词优化排名
  • wordpress去除google字体福州网站seo
  • 怎样在别人网站做加强链接外包公司排名
  • 专业网站设计的网站最新网络推广平台
  • 网站建设和网站开发搜索引擎优化案例
  • 网站备案还要买幕布批量查询收录
  • 强大的技术团队网站建设专业网络推广软件
  • 外贸开发网站公司太原百度网站快速优化
  • 孵化基地网站怎么建设企业营销策划是做什么的
  • 网站如何做关键词引流北京互联网公司排名
  • 建设网站必须要服务器吗搜索引擎网站推广如何优化
  • 精品网站建设比较好广告软文
  • 做外贸网站服务超级外链发布工具
  • 佛山公益网站制作什么是seo文章
  • 专业沈阳网站制作2023年6月份疫情严重吗
  • 上海英文网站制作谷歌aso优化
  • 网站建设潍坊最近最新新闻
  • 保定网站设计制作需要多少钱免费发广告的软件
  • 网站的权重百度手机app
  • 没网站做推广网络推广引流最快方法
  • 玩具 东莞网站建设 技术支持成功的网络营销案例有哪些
  • 石家庄建工科技学院石家庄做网站网页制作与网站建设实战教程
  • 旅游电网站建设目标重庆百度推广电话
  • flash网站制作下载站长工具怎么关掉
  • 大连专业手机自适应网站建设维护今日重大新闻头条十条
  • wordpress语言包编辑海会网络做的网站怎么做优化