alt.freeweights.text / TRELLIS.2-4B
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject:

TRELLIS.2-4B

Date: 2026-11-15Commit: af44b45Signed: 2DC28CC7B26A283B ✓

Image to 3d model. Safetensors weights, 16.2 GB in all. Published by microsoft under MIT.

text16.2GBTRELLIS.2-4Bsafetensorspermissive
FactsParamsnot statedSize16.2 GBFormatssafetensorsTaskimage to 3dLicenseMITFrom sourcepermissive
$ fw get microsoft/TRELLIS.2-4B
# manifest sha256 6ad2b6a4b929… · 16.2 GB · 22 files
$ fw verify ./TRELLIS.2-4B microsoft/TRELLIS.2-4B
From sourceHosted (signed)microsoft/TRELLIS.2-4BLast check: 2026-11-15 02:25 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Overview

Size
16.2 GB
Weights
16.2 GB (safetensors)
Parameters
not stated
Formats
safetensors
Task
image to 3d
License
MIT (permissive)
Files
22, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:25 UTCpassed

Model card

From the publisher at commit af44b45. Shown as plain text with links; images open at the publisher.

TRELLIS.2: Native and Compact Structured Latents for 3D Generation#

Model Name: TRELLIS.2-4B

Paper: https://arxiv.org/abs/2512.14692

Repository: https://github.com/microsoft/TRELLIS.2

Project Page: https://microsoft.github.io/trellis.2

Introduction#

TRELLIS.2 is a state-of-the-art large 3D generative model designed for high-fidelity image-to-3D generation. It leverages a novel "field-free" sparse voxel structure termed O-Voxel and a large-scale flow-matching transformer (4 Billion parameters).

Unlike previous methods that rely on iso-surface fields (e.g., SDF, Flexicubes) which struggle with open surfaces or non-manifold geometry, TRELLIS can reconstruct and generate arbitrary 3D assets with complex topologies, sharp features, and full Physical-Based Rendering (PBR) materials—including transparency/translucency.

Model Details#

  • Developed by: Jianfeng Xiang, Xiaoxue Chen, Sicheng Xu, Ruicheng Wang, Zelong Lv, Yu Deng, Hongyuan Zhu, Yue Dong, Hao Zhao, Nicholas Jing Yuan, Jiaolong Yang
  • Model Type: Flow-Matching Transformers with Sparse Voxel based 3D VAE
  • Parameters: 4 Billion
  • Input: Single Image
  • Output: 3D Asset (Mesh with PBR Materials)
  • Resolution: Varies from 512³ to 1536³ (Voxel Grid Resolution)

Key Features#

  • O-Voxel Representation: An omni-voxel structure that encodes both geometry and appearance. It supports:
    • Arbitrary Topology: Handles open surfaces, non-manifold geometry, and fully-enclosed structures without lossy conversion.
    • Rich Appearance: Captures PBR attributes (including opacity for translucent surfaces) aligned with geometry.
    • Efficiency: Instant optimization-free bidirectional conversion between meshes and O-Voxels (ms to seconds).
  • High-Resolution Generation: The model is trained to generate fully textured assets at up to 1536³ resolution.
  • High-Fidelity while Compact Latent Space: Utilizes a Sparse 3D VAE with 16× spatial downsampling, encoding a 1024³ asset into only ~9.6K latent tokens with negligible perceptual degradation.
  • Shape-conditioned Texture Generation: Generates textures for input 3D meshes and reference images.
  • State-of-the-Art Speed: Inference is highly efficient; see table below.

Inference Speed (NVIDIA H100 GPU)#

ResolutionTime
512³~3 seconds
1024³~17 seconds
1536³~60 seconds

Requirements#

  • System: The model is currently tested only on Linux.
  • Hardware: An NVIDIA GPU with at least 24GB of memory is necessary. The code has been verified on NVIDIA A100 and H100 GPUs.
  • Software:
    • The CUDA Toolkit is needed to compile certain packages. Recommended version is 12.4.
    • Conda is recommended for managing dependencies.
    • Python version 3.8 or higher is required.

Known Limitations#

  • Geometric Artifacts (Small Holes): While O-Voxels handle complex topology well, the generated raw meshes may occasionally contain small holes or minor topological discontinuities. For applications requiring strictly watertight geometry (e.g., 3D printing), we provide accompanying mesh post-processing scripts, such as hole-filling algorithms.
  • Base Model w/o Alignment: TRELLIS.2-4B is a pre-trained foundation model. It has not been aligned with human preferences (e.g., via RLHF) or fine-tuned for specific aesthetic standards. Consequently, the outputs reflect the distribution of the training data and may vary in style; users may need to experiment with inputs to achieve the desired artistic result.

We are actively working on improving the model and addressing these limitations.

Usage#

Note: Please refer to the official GitHub Repository for installation instructions and dependencies.

import os
os.environ['OPENCV_IO_ENABLE_OPENEXR'] = '1'
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"  # Can save GPU memory
import cv2
import imageio
from PIL import Image
import torch
from trellis2.pipelines import Trellis2ImageTo3DPipeline
from trellis2.utils import render_utils
from trellis2.renderers import EnvMap
import o_voxel

# 1. Setup Environment Map
envmap = EnvMap(torch.tensor(
    cv2.cvtColor(cv2.imread('assets/hdri/forest.exr', cv2.IMREAD_UNCHANGED), cv2.COLOR_BGR2RGB),
    dtype=torch.float32, device='cuda'
))

# 2. Load Pipeline
pipeline = Trellis2ImageTo3DPipeline.from_pretrained("microsoft/TRELLIS.2-4B")
pipeline.cuda()

# 3. Load Image & Run
image = Image.open("assets/example_image/T.png")
mesh = pipeline.run(image)[0]
mesh.simplify(16777216) # nvdiffrast limit

# 4. Render Video
video = render_utils.make_pbr_vis_frames(render_utils.render_video(mesh, envmap=envmap))
imageio.mimsave("sample.mp4", video, fps=15)

# 5. Export to GLB
glb = o_voxel.postprocess.to_glb(
    vertices            =   mesh.vertices,
    faces               =   mesh.faces,
    attr_volume         =   mesh.attrs,
    coords              =   mesh.coords,
    attr_layout         =   mesh.layout,
    voxel_size          =   mesh.voxel_size,
    aabb                =   [[-0.5, -0.5, -0.5], [0.5, 0.5, 0.5]],
    decimation_target   =   1000000,
    texture_size        =   4096,
    remesh              =   True,
    remesh_band         =   1,
    remesh_project      =   0,
    verbose             =   True
)
glb.export("sample.glb", extension_webp=True)

Citation#

If you find this model useful for your research, please cite our work:

@article{
    xiang2025trellis2,
    title={Native and Compact Structured Latents for 3D Generation},
    author={Xiang, Jianfeng and Chen, Xiaoxue and Xu, Sicheng and Wang, Ruicheng and Lv, Zelong and Deng, Yu and Zhu, Hongyuan and Dong, Yue and Zhao, Hao and Yuan, Nicholas Jing and Yang, Jiaolong},
    journal={Tech report},
    year={2025}
}

License#

This model is released under the MIT License. The code and dataset are publicly released to facilitate reproduction and further research.

Files

22 files · 16.2 GBWeights 16.2 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 22 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md6.42 KBab08bd7f555372317d166220dbd2c17c73b5a238d45da018ef301c1e32aec8a8
ckpts/shape_dec_next_dc_f16c32_fp16.json678 B5f1b856dffce79466fb18f5f0eefc08f08c673b24b3c05b20359c0b6d318a209
ckpts/shape_dec_next_dc_f16c32_fp16.safetensors948 MBe3b718d3e43e4f8780e9a24ac6fff231811a67e3b058e336e10fe654c911d581
ckpts/shape_enc_next_dc_f16c32_fp16.json653 B5a960a5c419d70f8d4a7a6b6e52ae689cd948c88bd7ed92346adfbf82cd12007
ckpts/shape_enc_next_dc_f16c32_fp16.safetensors709 MBf37c5ff5b983b68e9946060000f09bc131f3e84318a2c8b7430a81e4b4636c41
ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.json458 B7ebd6d367393f52fee9e92c2b3d727a9026a338549c6a6fa84c7ea122140ffdd
ckpts/slat_flow_img2shape_dit_1_3B_1024_bf16.safetensors2.58 GB07cd0596f634c5adc1890023d16023afc5eed02fb84b22bb23aff5bf0030fbbd
ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.json458 Bddbd7a1d34ce9a8e7af2f6ef9ae686d9ab49f69e62dacb98d8409b511cdbd5e2
ckpts/slat_flow_img2shape_dit_1_3B_512_bf16.safetensors2.58 GBec5e0917ef9b7e25ad51dffc7d19687a42019871f94239f2fa7f86264c55b70f
ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.json458 B31f4fdad9974930e5e9324ac9dfb6ef7de6b30cea51854ba515ef827a8d353b2
ckpts/slat_flow_imgshape2tex_dit_1_3B_1024_bf16.safetensors2.58 GB580401269059a339b8318ab9ced459a13ba63391721c83a6c383198c29e77686
ckpts/slat_flow_imgshape2tex_dit_1_3B_512_bf16.json458 B3093796257a62f838d2e5578ac4580ca3b7d88d10b87d348065d3fdfcc4c2077
ckpts/slat_flow_imgshape2tex_dit_1_3B_512_bf16.safetensors2.58 GB8371aa1c5d13be79dcd5ddfd2cf3835e902e204dc34427169a1c702828e1a94d
ckpts/ss_flow_img_dit_1_3B_64_bf16.json467 B6cdfb636854f60ffcadd8c49244169cd449f34c5ccdb55b5ff7c04678f9c399e
ckpts/ss_flow_img_dit_1_3B_64_bf16.safetensors2.58 GBca01377c485bec418076d38ee80166d32dc776d744f2553b835cba1e97a7abf6
ckpts/tex_dec_next_dc_f16c32_fp16.json705 B22074e4ab5b28e2b72d33a3fe61bf416134b89e12d0fc5c729f37da75da0c4d1
ckpts/tex_dec_next_dc_f16c32_fp16.safetensors948 MB97ea69addea2ecd9312910f5f548234665eef51c088386180b7cd5b258645e3c
ckpts/tex_enc_next_dc_f16c32_fp16.json676 B22d78e219c9df19b00f7f97db5889bafdf18ee57fedf853cd888e5afbfa0ad6c
ckpts/tex_enc_next_dc_f16c32_fp16.safetensors709 MBdd109f75f84b90fa411554ed6b0e4a87f430841163156fc0ebda2ebdc4752493
pipeline.json4.19 KB222c359ab1ed9bc6735a640a34f95d47f8681b9bc4aaa101bfb80274676253c6
texturing_pipeline.json2.96 KB64009974a391fe9c948b2943fd2846dc4526bc569c1d56dafb8f9e5c181fcac3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
af44b45f2e pinned now2026-11-15 02:25 UTC22 files · 16.2 GB

Use it

$ fw get microsoft/TRELLIS.2-4B
# manifest sha256 6ad2b6a4b929… · 16.2 GB · 22 files
$ fw verify ./TRELLIS.2-4B microsoft/TRELLIS.2-4B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/TRELLIS.2-4B.json --dir ./TRELLIS.2-4B $ python3 fw.py verify ./TRELLIS.2-4B ./microsoft__TRELLIS.2-4B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/TRELLIS.2-4B --revision af44b45f2e35a493886929c6d786e563ec68364d --local-dir ./TRELLIS.2-4B

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
ab08bd7f555372317d166220dbd2c17c73b5a238d45da018ef301c1e32aec8a8
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject: TRELLIS.2-4BDate: 2026-11-15Commit: af44b45Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/TRELLIS.2-4B
Pinned commit
af44b45f2e35a493886929c6d786e563ec68364d
Manifest
TRELLIS.2-4B.json · .minisig
Manifest sha256
6ad2b6a4b929e471c6ab196708b0f169de63714b8b06e593fba725850f216fe7
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:25 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/TRELLIS.2-4B.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/TRELLIS.2-4B.json.minisig $ minisign -Vm TRELLIS.2-4B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Fine-tunes
1
Fine-tunes 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/TRELLIS.2-4B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. TRELLIS.2-4B.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B