魔搭社区模型速递(3.23-3.29)

简介: 🙋魔搭ModelScope本期社区进展:619个模型,93个数据集,151个创新应用,7篇内容。

🙋魔搭ModelScope本期社区进展:

📟619个模型:DeepSeek-V3-0324、通义千问2.5-Omni-7B全模态、通义千问2.5-VL-32B-Instruct、InfiniteYou等;

📁93个数据集:HQ-Edit、EconomicIndex、AM-DeepSeek-R1-Distilled-1.4M等;

🎨151个创新应用:美声唱法判别器、IndexTTS-Demo、超强文档转文本等;

📄 7篇内容:

  • WritingBench:阿里最新大模型写作能力多维测评工具,开源32B深度思考写作模型
  • 看听说写四维突破:Qwen2.5-Omni 端到端多模态模型开源!
  • Qwen2.5-VL-32B: 更聪明、更轻量!
  • DeepSeek-V3小版本升级,非推理模型王者归来
  • 今日论文推荐:MAPS、RoboFactory、OpenVLThinker等
  • 4G显存部署Flux,2分钟Wan2.1-14B视频生成,DiffSynth-Engine推理引擎开源!
  • 上周多模态论文推荐:MAPS、MapGlue、OmniGeo、OThink-MR1

01.精选模型

DeepSeek-V3-0324

DeepSeek-V3-0324是DeepSeek V3 模型的小版本升级,新版 V3 模型借鉴 DeepSeek-R1 模型训练过程中所使用的强化学习技术,大幅提高了在推理类任务上的表现水平,在数学、代码类相关评测集上均超过 GPT-4.5。同时,在前端网页开发、中文写作能力、中文搜索能力、函数调用上均有增强。

模型链接:

https://modelscope.cn/models/deepseek-ai/DeepSeek-V3-0324

示例代码:

使用SGLang进行推理(官方推荐)

# Installation
pip install "sglang[all]>=0.4.3" --find-links https://flashinfer.ai/whl/cu124/torch2.5/flashinfer-python
# Launch
python3 -m sglang.launch_server --model /Your_Model_Path/DeepSeek-V3-0324 --tp 8 --trust-remote-code

通义千问2.5-Omni-7B

Qwen2.5-Omni 是通义千问团队推出的Qwen新一代端到端多模态旗舰模型,支持文本、图像、音频和视频的跨模态理解,并以流式方式生成文本和自然语音响应,通过TMRoPE技术实现音视频精准同步,具备实时交互、自然流畅的语音生成、卓越的全模态性能以及强大的端到端语音指令跟随能力。在同等规模的单模态模型进行基准测试时,表现出卓越的性能。Qwen2.5-Omni在音频能力上优于类似大小的Qwen2-Audio,并与Qwen2.5-VL-7B保持同等水平。

模型地址:

https://modelscope.cn/models/Qwen/Qwen2.5-Omni-7B

示例代码:

使用transformers推理模型,环境安装:

pip uninstall transformers
pip install git+https://github.com/huggingface/transformers@3a1ead0aabed473eafe527915eea8c197d424356
pip install accelerate
pip install qwen-omni-utils[decord]

推理代码(25G显存):

import soundfile as sf
from modelscope import Qwen2_5OmniModel, Qwen2_5OmniProcessor
from qwen_omni_utils import process_mm_info
# default: Load the model on the available device(s)
# model = Qwen2_5OmniModel.from_pretrained("Qwen/Qwen2.5-Omni-7B", torch_dtype="auto", device_map="auto")
# We recommend enabling flash_attention_2 for better acceleration and memory saving.
model = Qwen2_5OmniModel.from_pretrained(
    "Qwen/Qwen2.5-Omni-7B",
    torch_dtype="auto",
    device_map="auto",
    attn_implementation="flash_attention_2",
)
processor = Qwen2_5OmniProcessor.from_pretrained("Qwen/Qwen2.5-Omni-7B")
conversation = [
    {
        "role": "system",
        "content": "You are Qwen, a virtual human developed by the Qwen Team, Alibaba Group, capable of perceiving auditory and visual inputs, as well as generating text and speech.",
    },
    {
        "role": "user",
        "content": [
            {"type": "video", "video": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen2.5-Omni/draw.mp4"},
        ],
    },
]
# Preparation for inference
text = processor.apply_chat_template(conversation, add_generation_prompt=True, tokenize=False)
audios, images, videos = process_mm_info(conversation, use_audio_in_video=True)
inputs = processor(text=text, audios=audios, images=images, videos=videos, return_tensors="pt", padding=True)
inputs = inputs.to(model.device).to(model.dtype)
# Inference: Generation of the output text and audio
text_ids, audio = model.generate(**inputs, use_audio_in_video=True)
text = processor.batch_decode(text_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)
print(text)
sf.write(
    "output.wav",
    audio.reshape(-1).detach().cpu().numpy(),
    samplerate=24000,
)

更多部署实战详见:

看听说写四维突破:Qwen2.5-Omni 端到端多模态模型开源!

通义千问2.5-VL-32B-Instruct

在 Qwen2.5-VL 系列的基础上,通义千问团队使用强化学习持续优化模型,并使用 Apache 2.0 协议开源备受喜爱的32B参数规模的新 VL 模型 Qwen2.5-VL-32B-Instruct,该版本模型表现回复更符合人类主观偏好、数学推理能力、图像细粒度理解与推理更强。同步官方还提供了AWQ量化版本。

模型地址:

Qwen2.5-VL-32B-Instructhttps://modelscope.cn/models/Qwen/Qwen2.5-VL-32B-Instruct

Qwen2.5-VL-32B-Instruct-AWQ

https://modelscope.cn/models/Qwen/Qwen2.5-VL-32B-Instruct-AWQ

示例代码:

使用 Transformers

from modelscope import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor
from qwen_vl_utils import process_vision_info
# default: Load the model on the available device(s)
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
 "Qwen/Qwen2.5-VL-32B-Instruct", torch_dtype="auto", device_map="auto"
)
# We recommend enabling flash_attention_2 for better acceleration and memory saving, especially in multi-image and video scenarios.
# model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
# "Qwen/Qwen2.5-VL-32B-Instruct",
# torch_dtype=torch.bfloat16,
# attn_implementation="flash_attention_2",
# device_map="auto",
# )
# default processer
processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-32B-Instruct")
# The default range for the number of visual tokens per image in the model is 4-16384.
# You can set min_pixels and max_pixels according to your needs, such as a token range of 256-1280, to balance performance and cost.
# min_pixels = 256*28*28
# max_pixels = 1280*28*28
# processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-32B-Instruct", min_pixels=min_pixels, max_pixels=max_pixels)
messages = [
 {
 "role": "user",
 "content": [
 {
 "type": "image",
 "image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",
 },
 {"type": "text", "text": "Describe this image."},
 ],
 }
]
# Preparation for inference
text = processor.apply_chat_template(
 messages, tokenize=False, add_generation_prompt=True
)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
 text=[text],
 images=image_inputs,
 videos=video_inputs,
 padding=True,
 return_tensors="pt",
)
inputs = inputs.to("cuda")
# Inference: Generation of the output
generated_ids = model.generate(**inputs, max_new_tokens=128)
generated_ids_trimmed = [
 out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
 generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
)
print(output_text)

更多部署、微调实战教程详见:

Qwen2.5-VL-32B: 更聪明、更轻量!

InfiniteYou

InfiniteYou是由字节跳动研究团队开源的一个照片重塑框架,可实现灵活且高保真的身份保持的图像生成。InfU 的核心是 InfuseNet 组件,它通过残差连接将身份特征注入到 DiT 基础模型中,从而增强身份相似度,同时保持生成能力。多阶段训练策略,包括预训练和使用合成单人多样本(SPMS)数据进行监督微调(SFT),进一步改善了文本-图像对齐,提高了图像质量,并减轻了面部复制粘贴的问题,研究团队开源了 InfiniteYou-FLUX v1.0 的两个模型变体。

模型地址:

https://www.modelscope.cn/models/ByteDance/InfiniteYou

代码:

https://github.com/bytedance/InfiniteYou

02.数据集推荐

HQ-Edit

HQ-Edit 是一个专为修图打造的高清图片库,包含各种美化前后的对比图,能帮AI学会修人像、换背景、做特效,让修图变得更智能简单!

数据集链接:

https://modelscope.cn/datasets/AI-ModelScope/HQ-Edit

EconomicIndex

EconomicIndex 是一个基于Claude.ai真实对话数据的经济研究数据集,通过分析AI在不同职业任务中的使用情况(如增强vs.自动化),揭示AI对劳动力市场的影响,并开源供政策制定和研究参考。

数据集链接:

https://modelscope.cn/datasets/Anthropic/EconomicIndex

AM-DeepSeek-R1-Distilled-1.4M

AM-DeepSeek-R1-Distilled-1.4M 是一个由 AI-ModelScope 团队提供的数据集,包含约140万条经过蒸馏处理的数据,可能用于相关模型的训练和验证。

数据集链接:

https://modelscope.cn/datasets/AI-ModelScope/AM-DeepSeek-R1-Distilled-1.4M

03.精选应用

美声唱法判别器

体验直达:

https://modelscope.cn/studios/ccmusic-database/bel_canto

  • 小程序:

IndexTTS-Demo

体验直达:

https://modelscope.cn/studios/IndexTeam/IndexTTS-Demo

超强文档转文本

体验直达:

https://modelscope.cn/studios/ds4sd/SmolDocling-256M-Demo

04.社区精选文章

目录
相关文章
|
人工智能 IDE API
白板秒变IDE,草图直接生成可运行代码!Pad.ws:白板+代码编辑器深度结合,创意到实现无缝衔接
Pad.ws是一款创新的在线开发环境,将交互式白板与完整IDE工具深度结合,支持多人实时协作和多种编程语言,无需安装即可通过浏览器访问。
1207 1
白板秒变IDE,草图直接生成可运行代码!Pad.ws:白板+代码编辑器深度结合,创意到实现无缝衔接
|
11月前
|
人工智能 自然语言处理 搜索推荐
AI数字人解锁数字展厅的“智慧大脑”,展厅互动体验焕新升级
在数字化转型浪潮中,波塔AI数字人系统以AI技术重塑展厅体验,破解传统展厅人力成本高、交互单一等痛点。支持24小时智能讲解、多模态互动、个性化推荐、多语种服务,并联动灯光、大屏等设备打造沉浸式空间。兼具品牌代言人、智能导览员与数据分析师多重角色,助力企业实现从“展示”到“服务”的智慧升级,开启展厅新时代。
455 0
|
网络协议 开发工具 C#
RTSP协议探究和RTSP播放器技术实现
RTSP播放器可广泛应用于对延迟要求比较高的场景下,比如协同操控相关的智能机器人或无人机、实时视频监控、远程视频会议、网络电视等。通过控制信令实现对流媒体数据的远程控制和传输管理。
1828 0
|
SQL 存储 JSON
MySQL 8.0新特性
MySQL 8.0新特性
1347 0
|
存储 人工智能 弹性计算
通义万相AI绘画创作评测及图文搭建教程
【7月更文挑战第4天】阿里云的通义万相是AI绘画模型,结合ECS、OSS和API服务,提供无缝创作环境。用户上传图片至OSS,模型通过签名URL下载图片,然后生成AI艺术作品。模型服务具有高性能、易集成的特点,适用于多种场景如设计、广告等。用户可按指示在阿里云官网注册、充值、开通服务并部署。项目评测显示,其集成便捷、响应快、泛化能力强,但仍有改进空间,如增加图像控制选项和批量处理能力。相对于竞品,通义万相在成本、易用性和应用场景上有竞争力,值得推荐。
12972 9
|
存储 安全 API
在ModelScope中,访问令牌通常用于身份验证和授权
随着人工智能技术的发展,ModelScope(魔搭)作为开放的模型即服务(MaaS)平台,提供了丰富的预训练模型资源。本文介绍了如何在ModelScope中使用访问令牌进行身份验证和授权,包括获取和使用访问令牌的详细步骤及示例代码,确保用户安全地访问模型资源。
692 3
|
人工智能 语音技术 决策智能
魔搭社区每周速递(9.28-10.12)
503个模型、189个数据集、82个创新应用、9篇应用文章
|
测试技术 PyTorch 算法框架/工具
魔搭开源推理引擎 DashInfer,助力CPU服务器解锁大模型超强推理
ModelScope推出了预训练大语言模型(LLM)推理引擎DashInfer,采用C++ Runtime编写,提供C++和Python语言接口,具有生产级别的高性能表现,适用于多种CPU架构,包括x86和ARMv9。DashInfer支持连续批处理(Continuous Batching)和多NUMA推理(NUMA-Aware),能够充分利用服务器级CPU的算力,为推理14B及以下的LLM模型提供更多的硬件选择。该项工作已开源。
|
C# C++
halcon联合c#、WPF学习笔记一(WPF配置halcon)
halcon联合c#、WPF学习笔记一(WPF配置halcon)
2207 1