Skip to content

UniLM

Microsoft's collection of research models and code for language, vision, speech and document AI.

Stars
22.2k
Forks
2.7k
Licence
MIT
Language
Python
Last update
2 months ago
Type
Other

What it is

unilm is a large research repository from Microsoft's GeneralAI group that gathers many pre-trained AI models and their code under one roof. The models cover text in 100+ languages, images, speech, documents with layout, and combined multimodal inputs such as BEiT-3 and Kosmos. It is mainly a research resource, and the README is largely a directory of named projects, each linking to its own subfolder.

  • Browse the BEiT, LayoutLM, or TrOCR folders to find a pre-trained model for a specific task
  • Use MiniLM-style small models as a starting point for fine-tuning on a language task
  • Read the Kosmos or BEiT-3 entries to understand current multimodal research directions

Great for

  • Researchers comparing pre-trained model families such as MiniLM, BEiT, or LayoutLM
  • Document AI developers looking at LayoutLM, LayoutXLM, or TrOCR
  • Teams needing small pre-trained language models like MiniLM for limited hardware
  • People exploring multilingual models such as InfoXLM or DeltaLM

Not ideal for

  • Anyone wanting a single ready-to-use app; the README is a catalog of separate research projects, not one product
  • Non-technical users, since most entries assume machine learning knowledge
  • Those needing a single install path, because each subproject has its own setup described in its own folder
Step-by-step guide: how to use UniLMInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Clone and build from source

    Clone the repository

    git clone https://github.com/microsoft/unilm.git
  2. 2

    Run it

    • Clone the repository and open the subfolder for the project you want, such as minilm, beit, or layoutlm.
    • Read that subfolder's own README for its dependencies and setup steps.
    • Install the listed dependencies and follow the example or fine-tuning instructions in that folder.
  3. 3

    Get the most out of it

    • Start from the project closest to your task (for example, LayoutLM for documents or TrOCR for OCR).
    • Check the News section for recent model releases and their links.
    • Use the linked arXiv papers to understand each model before fine-tuning it.

Downloads

Strengths

  • Covers many modalities (text, vision, speech, documents) in one organized repository
  • Includes well-known research lines with linked papers
  • Released under the MIT license

Trade-offs

  • The top-level README does not give one install or quick-start path; setup depends on each subproject
  • Some entries are marked NEW or are research prototypes whose maturity is not stated here
  • Many named projects can be hard to navigate for newcomers

How it compares

ProjectStarsTypeLevelUpdatedBest for
unilm (this)22.2kOtheradvanced2 months agoResearchers comparing pre-trained model families such as MiniLM, BEiT, or LayoutLM
AI-For-Beginners70.5kLearning resourcebeginner13 days agoBeginners who want a structured, self-paced introduction to AI
storm31.8kAI model / agentintermediate1.1 years agoDevelopers who want to build a customizable research or report-writing pipeline
FinGPT21.5kAI model / agentadvanced12 days agoDevelopers who want to experiment with finance-tuned LLMs for sentiment analysis
nlp-tutorial14.9kLearning resourceintermediate2.7 years agoStudents who want to see how classic NLP models work in code
Transformers-Tutorials11.8kLearning resourceintermediate2 months agoDevelopers learning how to use Hugging Face Transformers models in PyTorch

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.