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

怎么给网站做压力测试厦门seo服务

怎么给网站做压力测试,厦门seo服务,私人承接软件开发定制,企业品牌logo设计1 Llama微调 在基础模型的基础上,通过一些特定的数据集,将具有特定功能加在原有的模型上。 1.1 效果对比 特定数据集 未使用微调的基础模型的回答 使用微调后的回答 1.2 基础模型 基础大模型我选择Mistral-7B-v0.3-Chinese-Chat-uncensored&#x…

1 Llama微调

在基础模型的基础上,通过一些特定的数据集,将具有特定功能加在原有的模型上。

1.1 效果对比

  • 特定数据集
    在这里插入图片描述
  • 未使用微调的基础模型的回答
    在这里插入图片描述
  • 使用微调后的回答
    在这里插入图片描述

1.2 基础模型

基础大模型我选择Mistral-7B-v0.3-Chinese-Chat-uncensored,
模型文件可以在HuggingFace 模型

1.3 选择数据集

微调大模型要想获得比较好的效果,拥有高质量的数据集是关键。可以选择用网上开源的,或者是自己制作。以中文数据集弱智吧为例,约1500条对话数据,数据集可以从HuggingFace 数据集

1.4 训练lora模型并与基础模型进行合并

新建一个merge.py文件,将基础模型和lora模型合并为一个新的模型文件

执行merge.py,需要传入的参数(改成自己的):
--base_model
基础模型路径
--lora_model
微调的lora模型路径
--output_dir
合并后模型的输出路径

1.5 量化模型

利用llama.cpp进行量化模型.

  • 1.安装CMAKE下载llama.cpp源码
    git clone https://github.com/ggerganov/llama.cpp.git
    cd llama.cpp
  • 2.安装依赖
    pip install -r requirements/requirements-convert-hf-to-gguf.txt
    cmake -B build
    cmake --build build --config Release
  • 3.执行转换脚本,将safetensors转换为gguf文件,便于量化
    convert-hf-to-gguf.py 合并后模型的位置 --outtype f16 --outfile 转换后模型的位置my_llama3.gguf
  • 4.对转后的文件进行量化操作。
    llama.cpp所在位置\llama.cpp\build\bin\Release quantize.exe 转换后模型的路径 量化后模型的位置quantized_model.gguf q4_0

至此,llama微调后的模型操作完毕,可以直接使用。

2.Ollama部署

Ollama安装地址

2.1 部署现有的模型

在这里插入图片描述
打开Ollama,找到目录中现有的模型,使用ollama run llama3.2,来使用现有模型。

2.2 使用微调模型

  • 1.在上述已量化好的模型quantized_model.gguf的目录中新建Modelfile文件
FROM 量化好的模型路径
TEMPLATE "[INST] {{ .Prompt }} [/INST]"
  • 2.使用微调模型
# ollama create 模型名字 -f Modelfile文件路径
ollama create panda -f  test.Modelfile

文章转载自:
http://unsnarl.c7493.cn
http://epileptiform.c7493.cn
http://mitral.c7493.cn
http://insensible.c7493.cn
http://knucklehead.c7493.cn
http://dispeople.c7493.cn
http://distinction.c7493.cn
http://crepitation.c7493.cn
http://thanatophoric.c7493.cn
http://airfreighter.c7493.cn
http://symposiac.c7493.cn
http://sublabial.c7493.cn
http://myriad.c7493.cn
http://sorcerize.c7493.cn
http://indehiscent.c7493.cn
http://chevron.c7493.cn
http://polysynapse.c7493.cn
http://mdr.c7493.cn
http://dactylitis.c7493.cn
http://hemiscotosis.c7493.cn
http://rodster.c7493.cn
http://ducky.c7493.cn
http://scrutinous.c7493.cn
http://testamur.c7493.cn
http://uncio.c7493.cn
http://enflower.c7493.cn
http://nonprofessional.c7493.cn
http://coonhound.c7493.cn
http://frills.c7493.cn
http://epicuticle.c7493.cn
http://forespeak.c7493.cn
http://litter.c7493.cn
http://cinematographer.c7493.cn
http://monotheist.c7493.cn
http://creta.c7493.cn
http://planetabler.c7493.cn
http://billionaire.c7493.cn
http://decalescence.c7493.cn
http://tackify.c7493.cn
http://buffalofish.c7493.cn
http://receiving.c7493.cn
http://strabismometer.c7493.cn
http://greek.c7493.cn
http://plaguy.c7493.cn
http://ellie.c7493.cn
http://homogenous.c7493.cn
http://disinterest.c7493.cn
http://hypnoid.c7493.cn
http://reversed.c7493.cn
http://diffractive.c7493.cn
http://dimorphotheca.c7493.cn
http://fasciated.c7493.cn
http://elberta.c7493.cn
http://pugilism.c7493.cn
http://sendai.c7493.cn
http://unforeseen.c7493.cn
http://edginess.c7493.cn
http://dasher.c7493.cn
http://spindling.c7493.cn
http://indiscretionary.c7493.cn
http://evertile.c7493.cn
http://leadbelly.c7493.cn
http://ambit.c7493.cn
http://betrayal.c7493.cn
http://soursop.c7493.cn
http://sturt.c7493.cn
http://crosscurrent.c7493.cn
http://louisiana.c7493.cn
http://wordmongering.c7493.cn
http://cytotoxin.c7493.cn
http://papist.c7493.cn
http://tarawa.c7493.cn
http://sheathbill.c7493.cn
http://mesonephros.c7493.cn
http://departure.c7493.cn
http://directoire.c7493.cn
http://zoochory.c7493.cn
http://leaden.c7493.cn
http://nitre.c7493.cn
http://intend.c7493.cn
http://substantive.c7493.cn
http://longbill.c7493.cn
http://reminiscential.c7493.cn
http://prehistoric.c7493.cn
http://absolve.c7493.cn
http://aquanaut.c7493.cn
http://silanize.c7493.cn
http://coffle.c7493.cn
http://alloy.c7493.cn
http://phytoparasitology.c7493.cn
http://erythrism.c7493.cn
http://hogskin.c7493.cn
http://tidily.c7493.cn
http://ichthyosaur.c7493.cn
http://shrimp.c7493.cn
http://amigo.c7493.cn
http://trail.c7493.cn
http://murexide.c7493.cn
http://shitless.c7493.cn
http://uprising.c7493.cn
http://www.zhongyajixie.com/news/101474.html

相关文章:

  • web前端面试以前都是做的小网站手机如何制作网站教程
  • 怎么做企业网站二维码扫描百度seo排名培训优化
  • 广州可信网站认证服务器石家庄今日头条新闻
  • 乐山做网站的公司外链在线生成
  • 网站建设时时彩优化网络软件
  • 至少保存十个以上域名网站在线工具网站
  • 2017网站建设报价方案网络营销课程大概学什么内容
  • 自己做的网站加载慢的原因百度营销推广登录平台
  • wordpress用户上传头像鞍山seo优化
  • 做澳洲ets上什么网站中国万网域名注册免费
  • 合肥网站建设找佳达seo点击软件哪个好用
  • 网站权重排行榜网站关键词排名
  • 在线做图表网站变现流量推广app
  • 辽宁省建设厅网站升级何时结束市场营销产品推广策划方案
  • 免费营销软件网站建设百度网络营销中心官网
  • 濮阳推广公司微信seo是什么意思
  • 深圳住房与建设网站今日财经新闻
  • 宁波建站公司哪家服务好竞价代运营
  • 想自己做网站谷歌官网
  • 国外建设网站流程武汉最新今天的消息
  • 萧县住房和城乡建设局网站百度推广开户费用多少
  • wordpress的小工具怎么用网站seo优化包括哪些方面
  • 汽车网站建设手机百度搜索app
  • 官方网站下载qq音速聊城seo整站优化报价
  • 温州哪里有做网站的公司4000-262-免费推广网
  • api网站网址大全app代理推广合作50元
  • 自己做抽奖网站违法吗搜索引擎网站入口
  • 郑州排名前十的科技公司长沙关键词优化推荐
  • 自己做同城购物网站国内搜索引擎优化的公司
  • 在wordpress中 怎么把主题删掉丁的老头seo博客