TripoSG for gufo (single-file BF16/F32)
What this is
The TripoSG image-to-3D model (DINOv2-L image encoder, rectified-flow DiT, shape-VAE decoder)
merged into one safetensors file for the native port in
gufo-studio-windows (gufo serve objekt,
branch feat/triposg-21). gufo turns a single image into a GLB mesh on AMD Strix Halo under
Windows without Python.
Prefixes inside the file: dino.* (image encoder), dit.* (transformer), vae.* (decoder only).
Matrices are BF16, norms, biases and tables F32; the VAE encoder (point-cloud encoding only) is
not included.
Source and licence
- Original: VAST-AI/TripoSG, revision
2c1c516d22d58db486a058d98d31bb6177344e06, by Tripo and VAST AI Research (paper arXiv:2502.06608). - Licence: the model card declares
license: mit; the code repository VAST-AI-Research/TripoSG ships the MIT License, "Copyright (c) 2025 VAST-AI-Research and contributors" (included here asLICENSE). - The image encoder inside is the DINOv2-L snapshot shipped in the TripoSG repository
(
image_encoder_dinov2/), originally facebook/dinov2-large (Apache-2.0, Meta AI). - Not included and not needed by gufo: the original background remover (RMBG, non-commercial licence) and the FlashVDM decoder path; gufo uses the image's alpha channel or its own cut-out instead.
How it was converted
tools/triposg/convert_hf_to_gufo.py from gufo-studio-windows (branch feat/triposg,
commits 6aeaeda9, ba2ee60e, 5ffb65bb; run 12 Nov 2026). The script parses the safetensors
and JSON configs by hand (standard library + numpy, nothing from the model folder is executed),
un-interleaves the head-major q|k|v layout of the TripoSG attention into plain to_q/to_k/to_v,
fuses the DINOv2 q/k/v into one attention.qkv, bakes the 224 px position table, and casts
matrices to BF16. Metadata in the file records the source revision and licence
(gufo.triposg.source, gufo.triposg.license). tools/triposg/verify_gufo_file.py checks the result.
How to use with gufo
[external/triposg]
command = <gufo.exe>
args = serve objekt
model = <this folder>\triposg.safetensors
root = <job folder>
ttl = 86400
served-model-name = triposg
max-request-bytes = 33554432
router-gpu-gb = 8
router-host-gb = 4
router-idle-seconds = 900
API: POST /v1/3d/generations {model: "triposg", image, steps, guidance, seed, resolution, max_faces}
returns a job; GET .../{id}/content is the GLB. Measured on Strix Halo: GPU 1.6 GB after
loading, 6.7 GB peak, host RAM 3.9 GB, about 116 s per object at 512^3.
Files
| File | Size | Content |
|---|---|---|
triposg.safetensors | 3.92 GB | 1128 tensors: 423 BF16, 705 F32; dino.*, dit.*, vae.* |
AI-assistance note
Converted and documented with AI assistance (Claude Code).