프로젝트
GitHub에서 보기
lucidrains/worldparticle
소개
Implementation of WorldParticle, Unified World Simulation of Lagrangian Particle Dynamics via Transformer
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
WorldParticle
Implementation of WorldParticle, Unified Simulation of Lagrangian Particle Dynamics via Transformer
Install
$ pip install worldparticle
Usage
import torch
from worldparticle import WorldParticle, ParticleTokenizer
tokenizer = ParticleTokenizer(
dim = 64,
dim_attr = 1,
grid_res = 5,
spatial_radius = 2.0,
boundary_radius = 2.0
)
model = WorldParticle(
predictor = dict(
delta_time = 0.01
),
corrector = dict(
dim = 64,
enc_depth = 4,
dec_depth = 4,
enc_dim_head = 96,
enc_heads = 8,
dec_dim_head = 96,
dec_heads = 8
),
tokenizer = tokenizer
)
pos = torch.randn(2, 512, 3)
vel = torch.randn(2, 512, 3)
forces = torch.randn(2, 512, 3)
mass = torch.ones(2, 512)
boundary_pos = torch.randn(2, 128, 3)
# forward 1 step
out = model(
pos = pos,
vel = vel,
mass = mass,
forces = forces,
attrs = mass,
boundary_pos = boundary_pos
)
# out.pos (2, 512, 3)
# out.vel (2, 512, 3)
# or multi-step rollout
out_trajectory = model(
num_steps = 10,
pos = pos,
vel = vel,
mass = mass,
forces = forces,
return_initial_state = True,
attrs = mass,
boundary_pos = boundary_pos
)
# out_trajectory.pos (2, 11, 512, 3)
# out_trajectory.vel (2, 11, 512, 3)
Citations
@misc{wang2026unifiedsimulationlagrangianparticle,
title = {Unified Simulation of Lagrangian Particle Dynamics via Transformer},
author = {Caoliwen Wang and Minghao Guo and Siyuan Chen and Heng Zhang and Mengdi Wang and Xingyu Ni and Hanson Sun and Kunyi Wang and Zherong Pan and Kui Wu and Lingjie Liu and Yin Yang and Chenfanfu Jiang and Taku Komura and Wojciech Matusik and Peter Yichen Chen},
year = {2026},
eprint = {2605.15305},
archivePrefix = {arXiv},
primaryClass = {cs.GR},
url = {https://arxiv.org/abs/2605.15305},
}
@misc{teoh2026nextlatentpredictiontransformerslearn,
title = {Next-Latent Prediction Transformers Learn Compact World Models},
author = {Jayden Teoh and Manan Tomar and Kwangjun Ahn and Edward S. Hu and Tim Pearce and Pratyusha Sharma and Akshay Krishnamurthy and Riashat Islam and Alex Lamb and John Langford},
year = {2026},
eprint = {2511.05963},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2511.05963},
}
관련 프로젝트 살펴보기
불러오는 중…