TripoSR MLX weights (Swift)
Converted TripoSR weights for
the MLX Swift runtime in
apple-mlx-foundations.
This is a format/layout conversion of the upstream checkpoint — no training
or fine-tuning. Conversion pins upstream revision 5b521936b01fbe1890f6f9baed0254ab6351c04a.
Files
| File | Role |
|---|---|
triposr_swift_ready.safetensors | Canonical artifact. The only file the Swift runtime loads (keys/layouts remapped for the Swift modules; the loader verifies shapes and rejects unused keys). |
provenance.json | Upstream checkpoint, intermediate pack, and derived file hashes; code commits; environment. |
checksums.sha256 | SHA-256 for every bundle file except itself. Verify before use. |
licenses/TripoSR.txt, LICENSE, NOTICE | Upstream and bundle license texts and attribution. |
validation/ | Parity and mesh-smoke summaries for this bundle. |
reproduce_export.py | How to regenerate the canonical file from the upstream checkpoint. |
The intermediate triposr_mlx.safetensors pack (upstream keys, pre-remap)
exists only between the two conversion scripts; it is recorded in
provenance.json and is not published.
Usage (Swift)
import RuntimeWrapper
let runtime = try ThreeDGenerationRuntime(
configuration: .tripoSR(weightsURL: tripoSRWeightsURL)
)
let meshes = try await runtime.generate(image: cgImage)
Or load the query-only runtime directly via TripoSRModel.loadWeights(from:)
in the TripoSR Swift package.
Validation scope
- Python↔Swift tensor parity (tokens, backbone, triplanes, density, color):
high correlation, not bit-exact — see
validation/parity-summary.json. - End-to-end Swift mesh smoke with these weights: see
validation/mesh-smoke.json. - Swift texture baking and background removal are not included; the Python
run.pypath covers those.
License
MIT (see LICENSE). The upstream TripoSR release — source code and
pretrained models — is MIT, Copyright (c) 2024 Tripo AI & Stability AI;
see licenses/TripoSR.txt and NOTICE.