unilm README

The project's README from github.com/microsoft/unilm. As one markdown file: README.md.

aka.ms/GeneralAI

Hiring

We are hiring at all levels (including FTE researchers and interns)! If you are interested in working with us on Foundation Models (aka large-scale pre-trained models) and General AI, NLP, MT, Speech, Document AI and Multimodal AI, please send your resume to [email protected].

Foundation Architecture

TorchScale - A Library of Foundation Architectures (repo)

Fundamental research to develop new architectures for foundation models and AI, focusing on modeling generality and capability, as well as training stability and efficiency.

Stability - DeepNet: scaling Transformers to 1,000 Layers and beyond

Generality - Foundation Transformers (Magneto): towards true general-purpose modeling across tasks and modalities (including language, vision, speech, and multimodal)

Capability - A Length-Extrapolatable Transformer

Efficiency & Transferability - X-MoE: scalable & finetunable sparse Mixture-of-Experts (MoE)

The Revolution of Model Architecture

BitNet: 1-bit Transformers for Large Language Models

RetNet: Retentive Network: A Successor to Transformer for Large Language Models

LongNet: Scaling Transformers to 1,000,000,000 Tokens

Foundation Models

The Evolution of (M)LLM (Multimodal LLM)

Kosmos-2.5: A Multimodal Literate Model

Kosmos-2: Grounding Multimodal Large Language Models to the World

Kosmos-1: A Multimodal Large Language Model (MLLM)

MetaLM: Language Models are General-Purpose Interfaces

The Big Convergence - Large-scale self-supervised pre-training across tasks (predictive and generative), languages (100+ languages), and modalities (language, image, audio, layout/format + language, vision + language, audio + language, etc.)

Language & Multilingual

UniLM: unified pre-training for language understanding and generation

InfoXLM/XLM-E: multilingual/cross-lingual pre-trained models for 100+ languages

DeltaLM/mT6: encoder-decoder pre-training for language generation and translation for 100+ languages

MiniLM: small and fast pre-trained models for language understanding and generation

AdaLM: domain, language, and task adaptation of pre-trained models

EdgeLM(NEW): small pre-trained models on edge/client devices

SimLM (NEW): large-scale pre-training for similarity matching

E5 (NEW): text embeddings

MiniLLM (NEW): Knowledge Distillation of Large Language Models

Vision

BEiT/BEiT-2: generative self-supervised pre-training for vision / BERT Pre-Training of Image Transformers

DiT: self-supervised pre-training for Document Image Transformers

TextDiffuser/TextDiffuser-2 (NEW): Diffusion Models as Text Painters

Speech

WavLM: speech pre-training for full stack tasks

VALL-E: a neural codec language model for TTS

Multimodal (X + Language)

LayoutLM/LayoutLMv2/LayoutLMv3: multimodal (text + layout/format + image) Document Foundation Model for Document AI (e.g. scanned documents, PDF, etc.)

LayoutXLM: multimodal (text + layout/format + image) Document Foundation Model for multilingual Document AI

MarkupLM: markup language model pre-training for visually-rich document understanding

XDoc: unified pre-training for cross-format document understanding

UniSpeech: unified pre-training for self-supervised learning and supervised learning for ASR

UniSpeech-SAT: universal speech representation learning with speaker-aware pre-training

SpeechT5: encoder-decoder pre-training for spoken language processing

SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data

VLMo: Unified vision-language pre-training

VL-BEiT (NEW): Generative Vision-Language Pre-training - evolution of BEiT to multimodal

BEiT-3 (NEW): a general-purpose multimodal foundation model, and a major milestone of The Big Convergence of Large-scale Pre-training Across Tasks, Languages, and Modalities.

Toolkits

s2s-ft: sequence-to-sequence fine-tuning toolkit

Aggressive Decoding (NEW): lossless and efficient sequence-to-sequence decoding algorithm

Applications

TrOCR: transformer-based OCR w/ pre-trained models

LayoutReader: pre-training of text and layout for reading order detection

XLM-T: multilingual NMT w/ pretrained cross-lingual encoders

LLMOps (repo)

General technology for enabling AI capabilities w/ LLMs and MLLMs.

RedStone (repo)

Curating General, Code, Math, and QA Data for Large Language Models.

News

License

This project is licensed under the license found in the LICENSE file in the root directory of this source tree. Portions of the source code are based on the transformers project.

Microsoft Open Source Code of Conduct

Contact Information

For help or issues using the pre-trained models, please submit a GitHub issue.

For other communications, please contact Furu Wei ([email protected]).

unilm (microsoft/unilm)

Searching Database…

22.2K ·GitHub
这是什么?这是微软面向大规模自监督预训练的研究中心:一系列覆盖自然语言处理、视觉、语音和多模态任务、支持 100 多种语言的基础模型,包括 BEiT、LayoutLM、Kosmos、MiniLM、TrOCR 和 WavLM。
这是可以安装的一个库,还是一组各自独立的模型?它更像一个总仓库,而不是一个可直接安装的包:每个模型(BEiT、LayoutLM、Kosmos、TrOCR 等)都是独立的项目,有自己的代码和 README,其中很多也发布在 HuggingFace 上。
我想用其中一个模型,该怎么上手?整个中心没有一个统一的安装步骤——打开你想用的模型的 README,按上面的说明操作即可。很多模型也放在 HuggingFace 上,所以通常可以直接从那里加载预训练好的模型权重。
我的电脑上需要准备什么才能运行这些模型?这些模型是 Python 研究代码,每个子项目自带各自的依赖清单;部分源代码基于 HuggingFace 的 transformers 体系构建,所以有一个能正常运行的 Python 环境是基本前提。
有什么要注意的地方——有没有一个统一入口能搞定所有事?没有:根目录的 README 基本上只是索引和新闻列表,各个模型放在不同的子仓库里,各自有依赖和安装方式,所以请按模型分别查阅文档,而不是指望一套统一的 API。
TrOCR 是什么?TrOCR 是一种基于 transformer 的 OCR 方法,构建在预训练的 BEiT 和 RoBERTa 模型之上。BASE 和 LARGE 版本面向场景文字识别,面向手写和印刷文字的小模型还带来 3 倍的推理加速;TrOCR 也可以在 HuggingFace 上找到。
Kosmos 是什么?一系列多模态大语言模型:Kosmos-1 能感知多种通用模态,支持上下文学习(少样本)并遵循指令(零样本);Kosmos-2 把多模态大模型与真实世界关联起来;Kosmos-2.5 是一个面向文字密集图片机器阅读的多模态识字模型。
BEiT-3 是什么?它是一个通用的多模态基础模型,是跨任务、跨语言、跨模态“大融合”(Big Convergence)方向的重要里程碑;按照 README 的说法,它在视觉和视觉-语言任务上都达到了当前最先进的迁移性能。预训练模型和代码已于 2023 年 3 月发布。
这个仓库还在更新吗?是的——最新的新闻条目是 2024 年 12 月(RedStone,面向大语言模型的精选训练数据),而且自 2019 年以来发布从未间断,2023 年就包括 Kosmos-2.5、TextDiffuser-2 和 LongNet。
Creator
microsoft
Size
75.4 MB
Stars
22.2K
Age
7y
Commits · 90 Days