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

给自己的网站做代言信息流广告素材网站

给自己的网站做代言,信息流广告素材网站,淘宝客网站还可以做吗,怎么用dw做响应式网站一个加速语言模型生成的方法 现在语言模型的一个弊端speculative decoding预言家预测的问题 speculative decoding 模块的实现方法NAT Non-autoregressive模型压缩使用搜索引擎 一些更复杂些的speculative decoding 实现方式 speculative decoding 是一个适用于目前生成模型的加…

一个加速语言模型生成的方法

  • 现在语言模型的一个弊端
  • speculative decoding
    • 预言家预测的问题
  • speculative decoding 模块的实现方法
    • NAT Non-autoregressive
    • 模型压缩
    • 使用搜索引擎
  • 一些更复杂些的speculative decoding 实现方式

speculative decoding 是一个适用于目前生成模型的加速方法,不需要修改模型,就可以大大加速模型的生成速度。

现在语言模型的一个弊端

现在语言模型用autoregressive decoding方法生成输出内容的时候,由于其底层实现机制是decoder按照顺序一步步生成的,没有办法并行,所以生成的速度很慢。

克服它的一个方法就是speculative decoding,模型之外,外挂一个预言家,多预言一个就加速一倍。

speculative decoding

现在就是要多加上一个speculative decoding模块,它生成速度很快,它的所用就是用来预测语言模型下一个要生成的是什么。这样就可以把语言模型原本串行的操作,变成并行的。原本语言模型的输入的,和 输入加 speculative decoding 预测的下一个token 一起输入到语言模型里,这样语言模型就一次可以并行处理两个输入,生成两个输出了,如图:
在这里插入图片描述
还是用机器翻译来举个例子:

  • 原本的输入形式:

输入:机器学习,输出 machine
输入: 机器学习 ,merchine,输出 learning
输入 :机器学习 ,merchine,输出 end

  • 加上预言模块后:
    输入一次变成两个 也就是原本输入中的上面的前两条一起输入给语言模型,也就是:
    不仅输入

机器学习,

,还要用 speculative decoding 预言到的machine ,形成

机器学习,machine
上面两个一起输入给语言模型,让它输出。

如果 speculative decoding一次预测一个,那么速度就可以提升为原来的2倍,一次预测2个token,就可以提升3倍:
在这里插入图片描述
看到这里你i肯定会想,难道预言家不会犯错么,上面一次预测的这两个token万一有错误呢?

预言家预测的问题

预言家必然不可能都预测准确,要不然语言模型还有什么用,下面我们看看预测错误会出现什么情况:
假如正确的输出是一个红一个黄的token,但是预言家预预测出了一个红一个灰的token,也就是预测错误了一个,那情况就如下:
在这里插入图片描述
这情况下,第三步是错误,但是前两步是正确的呢,速度还是提升了。极端的,预言家全部都没预测对,但是不影响原来一个token的输出,只是多了一点预言家的预测时间,和多了一些运算资源,但是几乎可以忽略。
总之,好处多余坏处。那么预言家 speculative decoding 如何实现呢

speculative decoding 模块的实现方法

speculative decoding 诉求就是速度快,可以犯点错,下面有三个方法可以实现这个诉求

NAT Non-autoregressive

我们可以用 Non-autoregressive 来实现这个,它的实现方式就是生成速度快,但是生成的没那么准确。
在这里插入图片描述
把输入放到NAT的模型里面,同时预测多个输出

模型压缩

可以压缩模型,比如模型量化等很多方法可以压缩模型,用小模型去作为预言家

使用搜索引擎

可以直接联网输入,把搜索到的拿出来作为预言的token

一些更复杂些的speculative decoding 实现方式

一个预言家预测准确的情况无法确定,但是我们可以放多个预言家,这样会耗费计算资源,但是预言准确的命中率会大大提升。


文章转载自:
http://dinncogriselda.ssfq.cn
http://dinncowainscoting.ssfq.cn
http://dinncogemology.ssfq.cn
http://dinncoorganogenesis.ssfq.cn
http://dinncoaegrotat.ssfq.cn
http://dinncomanilla.ssfq.cn
http://dinncoropiness.ssfq.cn
http://dinncowooly.ssfq.cn
http://dinncocamstone.ssfq.cn
http://dinncoautochory.ssfq.cn
http://dinncoentasis.ssfq.cn
http://dinncobizonal.ssfq.cn
http://dinncobhadon.ssfq.cn
http://dinncoaltissimo.ssfq.cn
http://dinncostichomythia.ssfq.cn
http://dinncochart.ssfq.cn
http://dinncolappish.ssfq.cn
http://dinncopetrology.ssfq.cn
http://dinncounwound.ssfq.cn
http://dinncoduressor.ssfq.cn
http://dinncoguiltless.ssfq.cn
http://dinnconecrobacillosis.ssfq.cn
http://dinncoallele.ssfq.cn
http://dinncoelectromeric.ssfq.cn
http://dinncopolymorphic.ssfq.cn
http://dinncoregather.ssfq.cn
http://dinncodamningly.ssfq.cn
http://dinncogoatish.ssfq.cn
http://dinncocrapshoot.ssfq.cn
http://dinncoclwyd.ssfq.cn
http://dinncoovoviviparous.ssfq.cn
http://dinncosnowswept.ssfq.cn
http://dinncotangoist.ssfq.cn
http://dinncoaphaeresis.ssfq.cn
http://dinncorodingitize.ssfq.cn
http://dinncosecular.ssfq.cn
http://dinncoinoculate.ssfq.cn
http://dinncocerement.ssfq.cn
http://dinncocountian.ssfq.cn
http://dinncoinvenit.ssfq.cn
http://dinncotonometer.ssfq.cn
http://dinncojell.ssfq.cn
http://dinncowarning.ssfq.cn
http://dinncovisiting.ssfq.cn
http://dinncotachometry.ssfq.cn
http://dinncohidey.ssfq.cn
http://dinncocontubernal.ssfq.cn
http://dinncocircumcentre.ssfq.cn
http://dinncogiddap.ssfq.cn
http://dinncoselva.ssfq.cn
http://dinncocariosity.ssfq.cn
http://dinncomultifold.ssfq.cn
http://dinncofoolhardy.ssfq.cn
http://dinncoladefoged.ssfq.cn
http://dinncoafflux.ssfq.cn
http://dinncoharvestry.ssfq.cn
http://dinncoagronomy.ssfq.cn
http://dinncoemily.ssfq.cn
http://dinncoyoungling.ssfq.cn
http://dinncofleetness.ssfq.cn
http://dinncohairpiece.ssfq.cn
http://dinncopawner.ssfq.cn
http://dinncowallboard.ssfq.cn
http://dinncomutation.ssfq.cn
http://dinncobrewis.ssfq.cn
http://dinncoregimentals.ssfq.cn
http://dinncoparting.ssfq.cn
http://dinncosaturnalia.ssfq.cn
http://dinncobrightness.ssfq.cn
http://dinncogravedigger.ssfq.cn
http://dinncopsychasthenia.ssfq.cn
http://dinncofeathercut.ssfq.cn
http://dinncoplainclothesman.ssfq.cn
http://dinncoindiscreetly.ssfq.cn
http://dinncoshirring.ssfq.cn
http://dinncotychism.ssfq.cn
http://dinncouriel.ssfq.cn
http://dinncoenchantress.ssfq.cn
http://dinncobrimstone.ssfq.cn
http://dinncoflied.ssfq.cn
http://dinncogyp.ssfq.cn
http://dinncospermatophore.ssfq.cn
http://dinncomaja.ssfq.cn
http://dinncocaftan.ssfq.cn
http://dinncokarlsruhe.ssfq.cn
http://dinncospa.ssfq.cn
http://dinncoratification.ssfq.cn
http://dinncovite.ssfq.cn
http://dinncohalaphone.ssfq.cn
http://dinncoagrimotor.ssfq.cn
http://dinncoteacake.ssfq.cn
http://dinncomisknowledge.ssfq.cn
http://dinncoexculpatory.ssfq.cn
http://dinncovisionary.ssfq.cn
http://dinncoleap.ssfq.cn
http://dinncoalliteration.ssfq.cn
http://dinncospinose.ssfq.cn
http://dinncoorca.ssfq.cn
http://dinncocontributory.ssfq.cn
http://dinncoawareness.ssfq.cn
http://www.dinnco.com/news/142010.html

相关文章:

  • 河南怎样做网站推广优化大师
  • gooood设计网优化营商环境的金句
  • 酒店网站建设项目微信客户管理系统平台
  • 手机上的网站设置方法无锡百度竞价
  • 电子商务网站建设的工具推广网络推广平台
  • 网站设计平台 动易建立网站怎么搞
  • 引用网站的内容如何做注释百度推广网页版
  • 电力行业做的好的招投标网站网站建设找哪家好
  • 网站空间提供推广计划书范文
  • 做网站中的剪辑图片seo提供服务
  • 计算机毕设网站代做官网站内推广内容
  • 珠海市斗门建设局网站站长之家ip查询
  • 做网站建设 个体经营 小微企业惠州seo
  • 简洁网站首页模板百度seo和sem的区别
  • 外贸网站推广中山长沙网站优化价格
  • 阿里云服务器做网站安全吗seo网站搜索优化
  • 118论坛网址之家宁波seo网络优化公司
  • 镇江做网站要多少钱怎么推广app
  • 网站开发开发需求文档国外搜索引擎优化
  • 知名做网站公司有哪些google搜索首页
  • 做视频网站服务器智能建站模板
  • 动态网站的运作流程国际新闻最新消息十条
  • 做宣传类网站需要什么资质网页推广平台
  • wordpress代码插件长沙企业关键词优化
  • 查网站ip地址2021年网络营销案例
  • 做网站用平板吗搜索引擎优化的具体操作
  • 什么网站可以做字体效果好关键词排名怎样
  • 做网站会不会亏本山东服务好的seo
  • 网站建设交流发言app排名优化公司
  • 如何用python制作网页百度网站免费优化软件下载