Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

taichi

> 编程语言
Open source

Productive, portable, and performant GPU programming in Python.

28.3K stars0 likes0 views
WebsiteGitHub

About

Productive, portable, and performant GPU programming in Python.


bash
pip install taichi  # Install Taichi Lang
ti gallery          # Launch demo gallery

What is Taichi Lang?

Taichi Lang is an open-source, imperative, parallel programming language for high-performance numerical computation. It is embedded in Python and uses just-in-time (JIT) compiler frameworks, for example LLVM, to offload the compute-intensive Python code to the native GPU or CPU instructions.

The language has broad applications spanning real-time physical simulation, numerical computation, augmented reality, artificial intelligence, vision and robotics, visual effects in films and games, general-purpose computing, and much more.

...More

Why Taichi Lang?

  • Built around Python: Taichi Lang shares almost the same syntax with Python, allowing you to write algorithms with minimal language barrier. It is also well integrated into the Python ecosystem, including NumPy and PyTorch.
  • Flexibility: Taichi Lang provides a set of generic data containers known as SNode (/ˈsnoʊd/), an effective mechanism for composing hierarchical, multi-dimensional fields. This can cover many use patterns in numerical simulation (e.g. spatially sparse computing).
  • Performance: With the @ti.kernel decorator, Taichi Lang's JIT compiler automatically compiles your Python functions into efficient GPU or CPU machine code for parallel execution.
  • Portability: Write your code once and run it everywhere. Currently, Taichi Lang supports most mainstream GPU APIs, such as CUDA and Vulkan.
  • ... and many more features! A cross-platform, Vulkan-based 3D visualizer, differentiable programming, quantized computation (experimental), etc.

Getting Started

Installation

Prerequisites
  • Operating systems
    • Windows
    • Linux
    • macOS
  • Python: 3.6 ~ 3.10 (64-bit only)
  • Compute backends
    • x64/ARM CPUs
    • CUDA
    • Vulkan
    • OpenGL (4.3+)
    • Apple Metal
    • WebAssembly (experiemental)

Use Python's package installer pip to install Taichi Lang:

bash
pip install --upgrade taichi

We also provide a nightly package. Note that nightly packages may crash because they are not fully tested. We cannot guarantee their validity, and you are at your own risk trying out our latest, untested features. The nightly packages can be installed from our self-hosted PyPI (Using self-hosted PyPI allows us to provide more frequent releases over a longer period of time)

bash
pip install -i https://pypi.taichi.graphics/simple/ taichi-nightly

Run your "Hello, world!"

Here is how you can program a 2D fractal in Taichi:

…

If Taichi Lang is properly installed, you should get the animation below 🎉:

See Get started for more information.

Build from source

If you wish to try our experimental features or build Taichi Lang for your own environments, see Developer installation.

Documentation

  • Technical documents
  • API Reference
  • Blog

Community activity

Contributing

Kudos to all of our amazing contributors! Taichi Lang thrives through open-source. In that spirit, we welcome all kinds of contributions from the community. If you would like to participate, check out the Contribution Guidelines first.

Contributor avatars are randomly shuffled.

License

Taichi Lang is distributed under the terms of Apache License (Version 2.0).

See Apache License for details.

Community

For more information about the events or community, please refer to this page

Join our discussions

  • Discord
  • GitHub Discussions
  • 太极编程语言中文论坛

Report an issue

  • If you spot an technical or documentation issue, file an issue at GitHub Issues
  • If you spot any security issue, mail directly to [email protected].

Contact us

  • Discord
  • WeChat

Reference

Demos

  • Nerf with Taichi
  • Taichi Lang examples
  • Advanced Taichi Lang examples
  • Awesome Taichi
  • DiffTaichi
  • Taichi elements
  • Taichi Houdini
  • More...

AOT deployment

  • Taichi AOT demos & tutorial

Lectures & talks

  • SIGGRAPH 2020 course on Taichi basics: YouTube, Bilibili, slides (pdf).
  • Chinagraph 2020 用太极编写物理引擎: 哔哩哔哩
  • GAMES 201 高级物理引擎实战指南 2020: 课件
  • 太极图形课第一季:课件
  • TaichiCon: Taichi Developer Conferences
  • More to come...

Citations

If you use Taichi Lang in your research, please cite the corresponding papers:

  • (SIGGRAPH Asia 2019) Taichi: High-Performance Computation on Sparse Data Structures [Video] [BibTex] [Code]
  • (ICLR 2020) DiffTaichi: Differentiable Programming for Physical Simulation [Video] [BibTex] [Code]
  • (SIGGRAPH 2021) QuanTaichi: A Compiler for Quantized Simulations [Video] [BibTex] [Code]

Issues· 924 open

View all issuesOpen on GitHub
  • #2730

    Invoke materialize() only before calling a Taichi kernel

    welcome contributiongood first issuerefactorUpdated Sep 24, 2026
  • #2734

    Support setting the random seed during initialization

    feature requestwelcome contributionhardUpdated Sep 24, 2026
  • #8803

    [bug] gfx/Vulkan: f64 field at a 4 mod 8 offset silently aliases the last element of the previous field

    Updated Sep 10, 2026
  • #8802

    ti.ad.Tape(validation=True) misses loop-carried read-after-write, returning a silently wrong gradient

    Updated Aug 29, 2026
  • #8801

    Vulkan backend hangs indefinitely at a precise grid-size threshold on AMD RX 7900 XTX (not a VRAM limit)

    Updated Aug 21, 2026
  • #8800

    There seems to be a bug in the GGUI interface of Taichi

    Updated Aug 4, 2026
  • #8799

    Scikit-build (classic) 1.0 internals

    Updated Jul 20, 2026
  • #8797

    Calling node.place(field_1) after field_2.from_numpy() raises RuntimeError "dense node must have at least one child."

    Updated May 21, 2026
  • #8663

    Invalid Format Specifier for `print_memory_profiler_info()`

    Updated May 18, 2026
  • #8796

    pip install taichi failed on a supercomputer

    Updated May 15, 2026

> Tags

C++computer-graphicsdifferentiable-programminggpugpu-programming

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言