Skip to content

Conversation

@SUNMMIO
Copy link
Owner

@SUNMMIO SUNMMIO commented Jan 6, 2026

  1. Implement MeshTensor and MeshShardingPolicy in tilelang language v2 interface. MeshShardingPolicy denotes how to shard a multi-dimensional tensor on a mesh device. With the policy, MeshTensor computes the sharded shape for a tensor based on the given mesh device configuration. Also, to keep track of the original tensor shape, MeshTensor curates some meta data and attaches them to the func_attr when building prim_func. Note that the buffer created by MeshTensor is based on sharded shape, so we can directly get the buffer shape to get the sharded shape.
  2. Add unit test and mesh tensor examples. We can reuse the pytest setting in testing/python/language to perform unit-test.

xiaoyao-NKU and others added 8 commits December 9, 2025 15:39
add mesh_tensor functions: annotate_mesh_tensor_info, mesh_tensor_copy
For many NMP, memory is often distributed. To support distributed memory, we add a set of helper functions for working with mesh-distributed tensors. With this, we can let users to control the layout of tiles over distributed memory (cores) and add annotations for the compiling passes about the layout. Then, compiler can optimize the computing performance by utilizing the distributed properties of memory and the layout tiles.
* Update README.md

* Update README.md

* Configure docker

* Update docker

* Fix pre-commit

---------

Co-authored-by: Jiaqi Guo <guojiaqi@sunmmio.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] [Language] Get Sharded Tensor Shape [Feature Request] [Language] Refine Tensor Sharding Definition

5 participants