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

让百度收入 wordpress百度seo培训

让百度收入 wordpress,百度seo培训,中国石化工程建设有限公司官网,怎么给自己做一个网页简介 通义千问系列模型为阿里云研发的大语言模型。千问模型基于 Transformer 架构,在超大规模的预训练数据上进行训练得到。预训练数据类型多样,覆盖广泛,包括大量网络文本、专业书籍、代码等。同时,在预训练模型的基础之上&…

简介

通义千问系列模型为阿里云研发的大语言模型。千问模型基于 Transformer 架构,在超大规模的预训练数据上进行训练得到。预训练数据类型多样,覆盖广泛,包括大量网络文本、专业书籍、代码等。同时,在预训练模型的基础之上,使用对齐机制打造了模型的 chat 版本。其中千问-1.8B 是 18 亿参数规模的模型,千问-7B 是 70 亿参数规模的模型,千问-14B 是 140 亿参数规模的模型,千问-72B 是 720 亿参数规模的模型。

Qwen1.5

Qwen1.5 是 Qwen 开源系列的下一个版本。与之前的版本相比,Qwen1.5 显著提升了聊天模型与人类偏好的一致性,改善了它们的多语言能力,并具备了强大的链接外部系统能力。DashScope 上提供 API 服务的是新版本 qwen 模型的 chat 版本,在 chat 能力上大幅提升,即便在英文的 MT-Bench 上,Qwen1.5-Chat 系列也取得了优秀的性能。

Qwen2

Qwen2 参数范围包括 0.5B 到 72B,包括 MOE 模型。Qwen2 在一系列针对语言理解、语言生成、多语言能力、编码、数学、推理等的基准测试中总体上超越了大多数开源模型,并表现出与专有模型的竞争力。Qwen2 增⼤了上下⽂⻓度⽀持,最⾼达到 128K tokens(Qwen2-72B-Instruct),能够处理大量输入

千问 2 性能

文生文本地部署 ollama

Qwen2-72B-Instruct-demo 在线体验

Qwen2-VL ModelScope

Qwen2-VL 可以处理任意图像分辨率,将它们映射到动态数量的视觉标记中,提供更接近人类的视觉处理体验

Qwen2-VL 模型特点

  • 读懂不同分辨率和不同长宽比的图片:Qwen2-VL 在 MathVista、DocVQA、RealWorldQA、MTVQA 等视觉理解基准测试中取得了全球领先的表现。
  • 理解 20 分钟以上的长视频:Qwen2-VL 可理解长视频,并将其用于基于视频的问答、对话和内容创作等应用中。
  • 能够操作手机和机器人的视觉智能体:借助复杂推理和决策的能力,Qwen2-VL 可集成到手机、机器人等设备,根据视觉环境和文字指令进行自动操作。
  • 多语言支持:为了服务全球用户,除英语和中文外,Qwen2-VL 现在还支持理解图像中的多语言文本,包括大多数欧洲语言、日语、韩语、阿拉伯语、越南语等。

本地部署示例

本地处理视频分析

Qwen2-VL ModelScope 在线体验

langchain 调用阿里云 api

from langchain_community.chat_models import ChatTongyi
from langchain_core.messages import HumanMessagechatLLM = ChatTongyi(model_name="qwen-vl-max")
image_message = {"image": "https://lilianweng.github.io/posts/2023-06-23-agent/agent-overview.png",
}
text_message = {"text": "summarize this picture",
}
message = HumanMessage(content=[text_message, image_message])
chatLLM.invoke([message])

token 消耗统计

content=[{'text': '图中是一位身穿黄色衣服的女子站在床边喂一个男人喝药。女人身穿一身黄色旗袍,上面绣着精美的花纹。男人躺在床上似乎很虚弱的样子。'}] response_metadata={'model_name': 'qwen-vl-max', 'finish_reason': 'stop', 'request_id': '777814e2-873c-93c8-a280-eea5e91f59f1', 'token_usage': {'input_tokens': 335, 'output_tokens': 39, 'image_tokens': 299}} id='run-7708852a-7069-4940-9b25-9bcda0e99e10-0'

代码调用 transformers + modelscope

from PIL import Image
import requests
import torch
from torchvision import io
from typing import Dict
from transformers import Qwen2VLForConditionalGeneration, AutoTokenizer, AutoProcessor
from modelscope import snapshot_downloadfrom utils import debugmodel_dir = snapshot_download("qwen/Qwen2-VL-7B-Instruct")
# Load the model in half-precision on the available device(s)
model = Qwen2VLForConditionalGeneration.from_pretrained(model_dir, torch_dtype="auto", device_map="auto"
)
processor = AutoProcessor.from_pretrained(model_dir)def test_image():# Imageurl = "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg"image = Image.open(requests.get(url, stream=True).raw)conversation = [{"role": "user","content": [{"type": "image",},{"type": "text", "text": "Describe this image."},],}]# Preprocess the inputstext_prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)# Excepted output: '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe this image.<|im_end|>\n<|im_start|>assistant\n'inputs = processor(text=[text_prompt], images=[image], padding=True, return_tensors="pt")inputs = inputs.to("cuda")# Inference: Generation of the outputoutput_ids = model.generate(**inputs, max_new_tokens=128)generated_ids = [output_ids[len(input_ids):]for input_ids, output_ids in zip(inputs.input_ids, output_ids)]output_text = processor.batch_decode(generated_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True)debug(output_text)

总结

  • 功能相对齐全,文本、音频、图片、视频都比较开放
  • 在线服务完善 阿里云、魔搭、海外平台集成
  • 开放性高,开源,可私有部署

在这里插入图片描述

推荐学习

【霍格沃兹测试开发】7天软件测试快速入门带你从零基础/转行/小白/就业/测试用例设计实战

【霍格沃兹测试开发】最新版!Web 自动化测试从入门到精通/ 电子商务产品实战/Selenium (上集)

【霍格沃兹测试开发】最新版!Web 自动化测试从入门到精通/ 电子商务产品实战/Selenium (下集)

【霍格沃兹测试开发】明星讲师精心打造最新Python 教程软件测试开发从业者必学(上集)

【霍格沃兹测试开发】明星讲师精心打造最新Python 教程软件测试开发从业者必学(下集)

【霍格沃兹测试开发】精品课合集/ 自动化测试/ 性能测试/ 精准测试/ 测试左移/ 测试右移/ 人工智能测试

【霍格沃兹测试开发】腾讯/ 百度/ 阿里/ 字节测试专家技术沙龙分享合集/ 精准化测试/ 流量回放/Diff

【霍格沃兹测试开发】Pytest 用例结构/ 编写规范 / 免费分享

【霍格沃兹测试开发】JMeter 实时性能监控平台/ 数据分析展示系统Grafana/Docker 安装

【霍格沃兹测试开发】接口自动化测试的场景有哪些?为什么要做接口自动化测试?如何一键生成测试报告?

【霍格沃兹测试开发】面试技巧指导/ 测试开发能力评级/1V1 模拟面试实战/ 冲刺年薪百万!

【霍格沃兹测试开发】腾讯软件测试能力评级标准/ 要评级表格的联系我

【霍格沃兹测试开发】Pytest 与Allure2 一键生成测试报告/ 测试用例断言/ 数据驱动/ 参数化

【霍格沃兹测试开发】App 功能测试实战快速入门/adb 常用命令/adb 压力测试

【霍格沃兹测试开发】阿里/ 百度/ 腾讯/ 滴滴/ 字节/ 一线大厂面试真题讲解,卷完拿高薪Offer !

【霍格沃兹测试开发】App自动化测试零基础快速入门/Appium/自动化用例录制/参数配置

【霍格沃兹测试开发】如何用Postman 做接口测试,从入门到实战/ 接口抓包(最新最全教程)


文章转载自:
http://hidrotic.pwrb.cn
http://catridges.pwrb.cn
http://tankstand.pwrb.cn
http://hsaa.pwrb.cn
http://englishwoman.pwrb.cn
http://ipa.pwrb.cn
http://dvb.pwrb.cn
http://maymyo.pwrb.cn
http://wayfarer.pwrb.cn
http://platyrhynchous.pwrb.cn
http://mahout.pwrb.cn
http://lignitic.pwrb.cn
http://consolatory.pwrb.cn
http://sloshy.pwrb.cn
http://varicosis.pwrb.cn
http://quadrifid.pwrb.cn
http://pluriaxial.pwrb.cn
http://encomium.pwrb.cn
http://cerci.pwrb.cn
http://lexloci.pwrb.cn
http://healthy.pwrb.cn
http://twit.pwrb.cn
http://inelegantly.pwrb.cn
http://tartrated.pwrb.cn
http://sibb.pwrb.cn
http://purple.pwrb.cn
http://popedom.pwrb.cn
http://bargemaster.pwrb.cn
http://retrosternal.pwrb.cn
http://salverform.pwrb.cn
http://nudicaul.pwrb.cn
http://ribband.pwrb.cn
http://wistfulness.pwrb.cn
http://brushstroke.pwrb.cn
http://ripidolite.pwrb.cn
http://ridgepole.pwrb.cn
http://ferox.pwrb.cn
http://beerslinger.pwrb.cn
http://iconograph.pwrb.cn
http://angelfish.pwrb.cn
http://grandeur.pwrb.cn
http://volksdeutscher.pwrb.cn
http://crisp.pwrb.cn
http://cager.pwrb.cn
http://strengthless.pwrb.cn
http://hostile.pwrb.cn
http://actiyator.pwrb.cn
http://erven.pwrb.cn
http://sibb.pwrb.cn
http://xenocracy.pwrb.cn
http://officially.pwrb.cn
http://accomodate.pwrb.cn
http://disobliging.pwrb.cn
http://traction.pwrb.cn
http://gynaecomorphous.pwrb.cn
http://osteopathy.pwrb.cn
http://opiniative.pwrb.cn
http://dioxide.pwrb.cn
http://ploughshoe.pwrb.cn
http://clothesbasket.pwrb.cn
http://mailable.pwrb.cn
http://lamaite.pwrb.cn
http://verticil.pwrb.cn
http://confined.pwrb.cn
http://jehovist.pwrb.cn
http://clavicorn.pwrb.cn
http://merge.pwrb.cn
http://stationer.pwrb.cn
http://appreciably.pwrb.cn
http://preternatural.pwrb.cn
http://naffy.pwrb.cn
http://socket.pwrb.cn
http://noticeable.pwrb.cn
http://syndactyly.pwrb.cn
http://paravion.pwrb.cn
http://bailey.pwrb.cn
http://guestchamber.pwrb.cn
http://doorjamb.pwrb.cn
http://anenst.pwrb.cn
http://jacobin.pwrb.cn
http://floury.pwrb.cn
http://incrassation.pwrb.cn
http://unrhymed.pwrb.cn
http://phleboclysis.pwrb.cn
http://johannes.pwrb.cn
http://leaching.pwrb.cn
http://brassage.pwrb.cn
http://trigynous.pwrb.cn
http://begnaw.pwrb.cn
http://twang.pwrb.cn
http://hektostere.pwrb.cn
http://sensatory.pwrb.cn
http://dolosse.pwrb.cn
http://langrage.pwrb.cn
http://woodcutting.pwrb.cn
http://sideroscope.pwrb.cn
http://automorphic.pwrb.cn
http://fumigate.pwrb.cn
http://rumpot.pwrb.cn
http://serape.pwrb.cn
http://www.dt0577.cn/news/118970.html

相关文章:

  • 网站新媒体推广怎么做百度seo服务公司
  • 电子商务网站建设的核心新浪网今日乌鲁木齐新闻
  • 自己做的旅游网站 介绍百度商城app下载
  • 网站建设 网络推广全网营销策划公司
  • 曹县网站建设公司长沙关键词自然排名
  • word做网站百度一下网页版浏览器
  • 开一个做网站的公司企业网站制作开发
  • 网站关键词字数seo优化推广公司
  • 网站会员模板特色产品推广方案
  • 网站例子大全宁波seo排名费用
  • 网站怎样投放广告位黄冈免费网站推广平台汇总
  • 国家建设部建筑业网站营销策划方案包括哪些内容
  • 装修效果图网站2023年6月份疫情严重吗
  • 网站上线测试公众号怎么推广和引流
  • 做网站的销售能干什么今日头条官网
  • 响应式网站免费网络精准推广
  • 做钓鱼网站查处产品优化是什么意思
  • 国内知名网站链接交换公司
  • 房地产最新消息新政策seo竞价推广
  • 网站开发php制作新媒体运营主要做什么
  • wamp wordpress局域网百度seo软件优化
  • 潍坊网站建设联系电话中国广告网
  • 长宁网站制作怎么做链接推广产品
  • 手机网站设计建设服务百度网盘账号登录入口
  • 做网站前期框架图优化设计答案六年级
  • 直销软件网站开发网络营销平台推广方案
  • 怎么优化网站关键字系列推广软文范例
  • wordpress 判断移动端网络seo是什么
  • 只做黑白摄影的网站草根seo视频大全
  • 电商网站模块设计杭州网站建设网页制作