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

做网站调用无广告视频营销型网站建设ppt

做网站调用无广告视频,营销型网站建设ppt,江西省城乡建设培训网 官方网站,河南网络推广培训开始使用Gemini 目录 开始使用Gemini Gemini简介 Gemini实验结果 Gemini的多模态推理能力 文本摘要 信息提取 验证和纠错 重新排列图表 视频理解 图像理解 模态组合 Gemini多面手编程助理 库的使用 引用 本文概述了Gemini模型和如何有效地提示和使用这些模型。本…

开始使用Gemini

目录

开始使用Gemini

Gemini简介

Gemini实验结果

Gemini的多模态推理能力

文本摘要

信息提取

验证和纠错

重新排列图表

视频理解

图像理解

模态组合

Gemini多面手编程助理

库的使用

引用


本文概述了Gemini模型和如何有效地提示和使用这些模型。本章也包括了有关Gemini模型的功能,技巧,应用,限制,论文和其他阅读材料。

Gemini简介

Gemini是Google Deepmind最新、最强大的AI模型。它原生支持多模态,具备跨模态推理能力,包括文本,图像,视频,音频和代码。

Gemini分为三个版本:

  • Ultra - 三个模型版本中功能最强大,适用于高度复杂的任务
  • Pro - 适用于广泛任务的最佳模型
  • Nano - 性能最佳的模型,适用于终端设备和内存有限的任务;包括1.8B参数(Nano-1)和3.25B参数(Nano-2)两个版本,从较大的Gemini模型中蒸馏训练得到,采用4位量化。

根据随附的技术报告(opens in a new tab),Gemini在32个基准测试中的30个上取得了领先,涵盖了语言、编码、推理和多模态推理等任务。

Gemini是第一个在MMLU(opens in a new tab)(大规模多任务语言理解)上超越人类专家的模型,声称在20项多模态测试基准处于领先水平。Gemini Ultra在MMLU上达到90.0%准确率,在MMMU基准(opens in a new tab)上达到62.4%准确率,相当于大学水平的学科知识和推理能力。

Gemini模型在32K的序列长度上进行训练,并建立在具有高效注意力机制(例如, multi-query attention(opens in a new tab))的Transformer解码器之上,在跨越上下文长度进行查询时表现出98%的准确率。这个重要的功能支撑了新的应用场景如文档检索和视频理解。

Gemini模型基于多模态和多语言数据进行训练,例如网络文档,书籍和代码数据,包括图像,音频和视频数据。这些模型经过所有模态数据的联合训练,展现出强大的跨模态推理能力,甚至在每个领域都具有强大的能力。

Gemini实验结果

Gemini Ultra在与思维链提示(chain-of-thought (CoT) prompting)(opens in a new tab)和自洽性(self-consistency)(opens in a new tab)等有助于处理模型不确定性的方法相结合时,达到了最高的准确率。

技术报告中提到,Gemini Ultra在32个样本上的MMLU测试效果,从贪婪采样(greedy sampling)方法的84.0%提高到不确定性路由思维链(uncertainty-routed chain-of-thought)方法(包括CoT和多数投票(majority voting))的90.0%,如果仅使用32个思维链样本,则略微提高到85.0%。类似地,思维链(CoT)和自洽性(self-consistency)在GSM8K小学数学基准上实现了94.4%的准确率。此外,Gemini Ultra正确地实现了74.4%的HumanEval(opens in a new tab)代码补全问题。下表总结了Gemini的测试结果以及与其他著名模型的结果对比。

Gemini Nano模型在事实性(即检索相关任务),推理,STEM(科学、技术、工程、数学),编码,多模态和多语言任务方面也表现出强大的性能。

除了标准的多语言功能之外,Gemini在多语言数学和摘要基准(例如MGSM(opens in a new tab)和XLSum(opens in a new tab))上分别表现出了出色的效果。

Gemini模型在32K的序列长度上进行训练,在跨越上下文长度进行查询时表现出98%的准确率。这个重要的功能支持了新的应用场景如文档检索和视频理解。

在遵循指令,创意写作和安全等重要能力方面,经过指令调整的Gemini模型受到人类评估者的一致青睐。

Gemini的多模态推理能力

Gemini经过原生多模态训练,表现出了将跨模态能力与大语言模型的推理能力相结合的能力。它的功能包括但不限于从表格,图表和图形中提取信息。还有其他有趣的功能,例如从输入中辨别细粒度的细节,跨空间和时间聚合上下文以及跨不同模态组合信息。

Gemini在图像理解任务,例如高级目标检测(high-level object recognition),细粒度语音识别(fine-grained transcription),图表理解和多模态推理方面始终优于现有方法。一些图像理解和生成功能还可以跨多种全球语言进行传输(例如,使用印地语和罗马尼亚语等语言生成图像描述)。

文本摘要

虽然Gemini是作为多模态系统进行训练的,但它拥有现代大语言模型(如GPT-3.5、Claude和Llama)中存在的许多功能。以下是使用Gemini Pro实现简单文本摘要任务的示例。本例中我们使用Google AI Studio(opens in a new tab),温度值(temperature)为0。

提示:

Your task is to summarize an abstract into one sentence.Avoid technical jargon and explain it in the simplest of words.Abstract: Antibiotics are a type of medication used to treat bacterial infections. They work by either killing the bacteria or preventing them from reproducing, allowing the body’s immune system to fight off the infection. Antibiotics are usually taken orally in the form of pills, capsules, or liquid solutions, or sometimes administered intravenously. They are not effective against viral infections, and using them inappropriately can lead to antibiotic resistance.

Gemini Pro输出:

Antibiotics are medicines used to kill or stop the growth of bacteria causing infections, but they don't work against viruses.

Google AI Studio里的任务和模型响应(高亮)截图

信息提取

接下来的示例是一个分析一段文本并提取所需信息的任务。注意,本例使用零样本提示,因此结果并不完美,但模型的性能相对较好。

提示:

Your task is to extract model names from machine learning paper abstracts. Your response is an array of the model names in the format [\"model_name\"]. If you don't find model names in the abstract or you are not sure, return [\"NA\"]Abstract: Large Language Models (LLMs), such as ChatGPT and GPT-4, have revolutionized natural language processing research and demonstrated potential in Artificial General Intelligence (AGI). However, the expensive training and deployment of LLMs present challenges to transparent and open academic research. To address these issues, this project open-sources the Chinese LLaMA and Alpaca…

Gemini Pro输出:

[\"LLMs\", \"ChatGPT\", \"GPT-4\", \"Chinese LLaMA\", \"Alpaca\"]

验证和纠错

Gemini模型展示了令人印象深刻的跨模态推理能力。例如,下图(左)是一个物理问题的解答,该问题是由一位物理老师画的。然后,Gemini被提示对该问题进行推理,并解释该学生在答案中出错的地方(如果有错误)。该模型还被指示解决问题并使用LaTeX来完成数学部分。右图是模型的响应,详细解释了问题和答案。

重新排列图表

以下是技术报告中的另一个有趣的示例,展示了基于Gemini的多模态推理能力生成用于重新排列subplots的matplotlib代码。左上角展示的是多模态提示,生成的代码显示在右侧,代码渲染显示在左下角。该模型利用多种功能来解决任务,例如,识别,代码生成,subplot位置的抽象推理以及按照指示以将subplot重新排列在所需位置。

视频理解

Gemini Ultra在各种少样本(few-shot)视频字幕生成任务和零样本(zero-shot)视频问答任务中取得了最先进的结果。下面的示例展示了为模型提供了一个视频和文本指令作为输入。它可以分析视频并对情况进行推理,以提供适当的答案,或者,在本示例中,提供了视频中的人物如何改进技术的建议。

图像理解

Gemini Ultra也可以基于少样本(few-shot)提示生成图片。如下例所示,可以使用图像和文本交错的示例提示,其中用户提供了有关两种颜色和图像建议的信息。然后,模型接受提示中的最终指令,然后基于它看到的颜色和一些想法做出响应。

模态组合

Gemini模型还展示了原生支持处理一系列音频和图像的能力。从示例中,我们使用一系列音频和图像来提示模型。然后,该能模型基于每次交互的上下文做出文本响应。

Gemini多面手编程助理

Gemini还被用于构建一个名为AlphaCode 2的多面手助理,它将推理功能与搜索和工具使用相结合,用来解决编程竞赛问题。AlphaCode 2在Codeforces编程竞赛平台的参赛者中名列前15%。

库的使用

下面这个简单的示例演示了如何使用Gemini API提示Gemini Pro模型。你需要安装google-generativeai库并从Google AI Studio获取API密钥。下面的示例是以上章节中提到的信息提取任务的代码。

"""At the command line, only need to run once to install the package via pip: $ pip install google-generativeai""" import google.generativeai as genai genai.configure(api_key="YOUR_API_KEY") # Set up the modelgeneration_config = {  "temperature": 0,  "top_p": 1,  "top_k": 1,  "max_output_tokens": 2048,} safety_settings = [  {    "category": "HARM_CATEGORY_HARASSMENT",    "threshold": "BLOCK_MEDIUM_AND_ABOVE"  },  {    "category": "HARM_CATEGORY_HATE_SPEECH",    "threshold": "BLOCK_MEDIUM_AND_ABOVE"  },  {    "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",    "threshold": "BLOCK_MEDIUM_AND_ABOVE"  },  {    "category": "HARM_CATEGORY_DANGEROUS_CONTENT",    "threshold": "BLOCK_MEDIUM_AND_ABOVE"  }] model = genai.GenerativeModel(model_name="gemini-pro",                              generation_config=generation_config,                              safety_settings=safety_settings) prompt_parts = [  "Your task is to extract model names from machine learning paper abstracts. Your response is an array of the model names in the format [\\\"model_name\\\"]. If you don't find model names in the abstract or you are not sure, return [\\\"NA\\\"]\n\nAbstract: Large Language Models (LLMs), such as ChatGPT and GPT-4, have revolutionized natural language processing research and demonstrated potential in Artificial General Intelligence (AGI). However, the expensive training and deployment of LLMs present challenges to transparent and open academic research. To address these issues, this project open-sources the Chinese LLaMA and Alpaca… [\\\"LLMs\\\", \\\"ChatGPT\\\", \\\"GPT-4\\\", \\\"Chinese LLaMA\\\", \\\"Alpaca\\\"]",] response = model.generate_content(prompt_parts)print(response.text)

引用

  • Introducing Gemini: our largest and most capable AI model(opens in a new tab)
  • How it’s Made: Interacting with Gemini through multimodal prompting(opens in a new tab)
  • Welcome to the Gemini era(opens in a new tab)
  • Gemini: A Family of Highly Capable Multimodal Models - Technical Report(opens in a new tab)
  • Fast Transformer Decoding: One Write-Head is All You Need

文章转载自:
http://dinncokil.knnc.cn
http://dinncosomniloquence.knnc.cn
http://dinncoharmonious.knnc.cn
http://dinncosowback.knnc.cn
http://dinncosemon.knnc.cn
http://dinncoanapest.knnc.cn
http://dinncosoligenous.knnc.cn
http://dinncoallochthon.knnc.cn
http://dinncosextillion.knnc.cn
http://dinncokonak.knnc.cn
http://dinncoischia.knnc.cn
http://dinncotriseptate.knnc.cn
http://dinncoballyhack.knnc.cn
http://dinncopanicum.knnc.cn
http://dinnconaima.knnc.cn
http://dinncostaffer.knnc.cn
http://dinncomelodia.knnc.cn
http://dinncoipa.knnc.cn
http://dinncokilling.knnc.cn
http://dinncowinterthur.knnc.cn
http://dinncodashaveyor.knnc.cn
http://dinncosnarly.knnc.cn
http://dinncororty.knnc.cn
http://dinncosaucisson.knnc.cn
http://dinncobivalent.knnc.cn
http://dinncometamere.knnc.cn
http://dinncomawger.knnc.cn
http://dinncodocumentarist.knnc.cn
http://dinncocontinua.knnc.cn
http://dinncoconcelebration.knnc.cn
http://dinncomaidstone.knnc.cn
http://dinncomicroprocessor.knnc.cn
http://dinncoprostitution.knnc.cn
http://dinnconob.knnc.cn
http://dinncosupramolecular.knnc.cn
http://dinncocrick.knnc.cn
http://dinnconival.knnc.cn
http://dinncosynodic.knnc.cn
http://dinncopem.knnc.cn
http://dinncodisconsolation.knnc.cn
http://dinncomoslemic.knnc.cn
http://dinncoindigestion.knnc.cn
http://dinncopyrolyzate.knnc.cn
http://dinncolatterly.knnc.cn
http://dinncoyodle.knnc.cn
http://dinncoweltschmerz.knnc.cn
http://dinncocardiotomy.knnc.cn
http://dinncorhizopod.knnc.cn
http://dinncogorgonia.knnc.cn
http://dinncotwiformed.knnc.cn
http://dinncoyabber.knnc.cn
http://dinncoemeute.knnc.cn
http://dinncocivil.knnc.cn
http://dinncoaerostatics.knnc.cn
http://dinncobindwood.knnc.cn
http://dinncogerontics.knnc.cn
http://dinncomodification.knnc.cn
http://dinncoisotactic.knnc.cn
http://dinncostanton.knnc.cn
http://dinncoskipjack.knnc.cn
http://dinncoknopkierie.knnc.cn
http://dinncomultiplication.knnc.cn
http://dinncotetanal.knnc.cn
http://dinncofumet.knnc.cn
http://dinncoinscrutably.knnc.cn
http://dinncocircumvolute.knnc.cn
http://dinncogitgo.knnc.cn
http://dinncolaius.knnc.cn
http://dinncocurdy.knnc.cn
http://dinncoarmipotence.knnc.cn
http://dinncocuddle.knnc.cn
http://dinncoklavier.knnc.cn
http://dinncobeating.knnc.cn
http://dinncobondmaid.knnc.cn
http://dinncojewbaiter.knnc.cn
http://dinncobicycle.knnc.cn
http://dinncokabob.knnc.cn
http://dinncoeluviate.knnc.cn
http://dinncoourn.knnc.cn
http://dinncofunipendulous.knnc.cn
http://dinncoquavery.knnc.cn
http://dinncoterga.knnc.cn
http://dinncomineraloid.knnc.cn
http://dinncomaisie.knnc.cn
http://dinncocounterguard.knnc.cn
http://dinncosororize.knnc.cn
http://dinncoems.knnc.cn
http://dinncodutiful.knnc.cn
http://dinncolymphoblast.knnc.cn
http://dinncofishgarth.knnc.cn
http://dinncohypsography.knnc.cn
http://dinncoconfutation.knnc.cn
http://dinncostentorian.knnc.cn
http://dinncotelefacsimile.knnc.cn
http://dinncocounterflow.knnc.cn
http://dinncorepresentative.knnc.cn
http://dinncosultanate.knnc.cn
http://dinncouncombed.knnc.cn
http://dinncoemargination.knnc.cn
http://dinncoputsch.knnc.cn
http://www.dinnco.com/news/97413.html

相关文章:

  • 自己做的网站服务器开了进不去开发新客户的十大渠道
  • 发不了软文的网站怎么做关键词优化什么是搜索引擎优化?
  • 做网站多少钱西宁君博正规软件培训
  • 互诺 网站好吗网络营销软文范例300字
  • 句容建设路幼儿园网站seo网站课程
  • 全国网络推广广州seo公司官网
  • 移动端开发工程师sem和seo有什么区别
  • 郑州网站建设多少钱如何查询关键词的搜索量
  • 专业做网站制作的公司百度退款客服电话
  • 个人网站制作手机版灰色词优化培训
  • 两学一做网站进不去seo排名点击器
  • 东莞虎门二手房价最新消息宁波正规seo推广
  • 传媒网站制作项目营销推广策划
  • 丽水网站建设搜索排名怎么做
  • 今天出京入京最新通知免费检测网站seo
  • 网站上投放广告西安网站seo工作室
  • 百度做的网站字体侵权吗百度指数官方下载
  • 怎样做网站模板百度信息流优化
  • wordpress 添加设置营销网站seo推广
  • 可以访问电脑网页的浏览器保定百度seo排名
  • 南京高端网站设计天津百度seo推广
  • 建设执业资格注册管理中心网站如何做谷歌seo推广
  • 宁波网站推广优化公司怎么样网络营销推广处点
  • 自贡建设专业网站设计百度上如何做优化网站
  • 在线原型设计网站seo优化便宜
  • 网站专题页做多大尺寸快速优化seo软件推广方法
  • 做云词图的网站长沙seo推广公司
  • 企业网站建设河北潍坊网站建设seo
  • 莱芜企业建站公司精准营销系统价值
  • 我要找人做网站的主页网页制作软件推荐