From 764ae3faf5731bdf25e3a63d04cb90e4766b3a1a Mon Sep 17 00:00:00 2001 From: MODELBEAST Date: Mon, 13 Jul 2026 09:44:13 +1000 Subject: [PATCH] =?UTF-8?q?trellis=5Fmac:=20unblock=20=E2=80=94=20dinov3?= =?UTF-8?q?=20lvd1689m=20granted;=20add=20HF=5FHUB=5FDISABLE=5FXET=20+=20O?= =?UTF-8?q?MP=20guards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dinov3-vitl16-pretrain-lvd1689m access granted (the natural-image variant TRELLIS.2 needs — note the approval email named the sat493m satellite variant, but lvd1689m came through too). Added HF_HUB_DISABLE_XET=1 (same xet download bug as flux) + KMP_DUPLICATE_LIB_OK/OMP_NUM_THREADS=1 guards (torch + Metal-kernel omp). First local TRELLIS.2 generation now running. Co-Authored-By: Claude Opus 4.8 --- server/operators/trellis_mac/run.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/operators/trellis_mac/run.py b/server/operators/trellis_mac/run.py index 1c92c19..bb2b8ba 100644 --- a/server/operators/trellis_mac/run.py +++ b/server/operators/trellis_mac/run.py @@ -1,5 +1,6 @@ import argparse import json +import os import subprocess import sys from pathlib import Path @@ -34,8 +35,18 @@ cmd = [ if p.get("no_texture"): cmd.append("--no-texture") +env = os.environ.copy() +# xet chunked downloader fails on these BFL/Meta repos ("Unable to parse string +# as hex hash value") — force the reliable HTTP path (same fix as flux_local). +env["HF_HUB_DISABLE_XET"] = "1" +# guard the torch + compiled-kernel OpenMP collision like sf3d does. +env["KMP_DUPLICATE_LIB_OK"] = "TRUE" +env.setdefault("OMP_NUM_THREADS", "1") +env.setdefault("MKL_NUM_THREADS", "1") + print("+", " ".join(cmd), flush=True) -res = subprocess.run(cmd, cwd=str(VENDOR), stdout=sys.stdout, stderr=subprocess.STDOUT) +print("(first run downloads TRELLIS.2-4B + dinov3 + RMBG-2.0 weights)", flush=True) +res = subprocess.run(cmd, cwd=str(VENDOR), stdout=sys.stdout, stderr=subprocess.STDOUT, env=env) if res.returncode != 0: sys.exit(res.returncode)