/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
3,8 млрд
Размер весов
18,6 ГБ
Лицензия
Своя лицензия
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B
Опубликована
28 сен 2026

SPAC-4B

Генерация текстаТекст → текст3 профессии
93скачиваний за 30 дней1лайквеса обновлены9 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

SPAC-4B — дообученная модель Qwen3-4B для описания 3D-сеток и генерации их геометрии по тексту.

SPAC-4B — модель для понимания 3D-геометрии и генерации сеток по тексту, разработанная автором репозитория Jack04810. Она объединяет языковую модель Qwen3-4B с разреженным SDF VQ-VAE, геометрически ориентированной токенизацией 3D-BPE и пространственным позиционным кодированием. Модель поддерживает два направления: описание 3D-сетки словами и генерацию геометрии по текстовому запросу.

Чекпойнт содержит 3,8 млрд параметров, использует архитектуру Qwen3ForCausalLM и контекст до 40 960 токенов. Веса представлены в PyTorch; для запуска автор рекомендует Linux x86_64, CUDA 12.4 и видеокарту NVIDIA A100 с 40 ГБ памяти. Генерируемая сетка не содержит текстур и материалов. Указана лицензия other; README сообщает, что лицензия унаследована от исходного чекпойнта, но её условия здесь не раскрыты.

Сценарии применения

  • генерация геометрии 3D-сетки по текстовому описанию
  • создание не текстурированных 3D-моделей из запросов
  • словесное описание геометрии 3D-сетки

Ограничения

Модель генерирует геометрию без текстур и материалов; для запуска требуется CUDA-совместимая среда, автор рекомендует A100 с 40 ГБ памяти. Приведённые в README результаты относятся к экспериментам статьи и не являются свежими измерениями этого чекпойнта.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

One language model, two directions: describe a 3D mesh in words, or generate a mesh from a text description. SPAC combines a sparse SDF VQ-VAE, geometry-aware 3D-BPE, and a Qwen3-4B backbone with explicit spatial positional encoding.

Why sparse 3D tokens?

  • Compute near the surface. Encode a narrow SDF band instead of an entire dense voxel volume. Under the paper's fixed voxel-band assumptions, active inputs grow approximately with surface area, O(R²).
  • Compress in 3D. Merge recurring face-adjacent patterns using token pairs and their relative offsets. 3D-BPE is reversible at the discrete VQ-token level.
  • Keep coordinates explicit. Serialize geometry with Morton-coordinate tokens and Spatial-PE so the language model can consume and predict 3D structure.

From text to meshes

Qualitative examples from the manuscript. SPAC predicts SDF geometry; colored appearances in the paper are visualization/postprocessing, while the standalone demo exports an untextured mesh.

Paper highlights

At an equal merge budget, 3D-BPE reduces the leaf-token sequence by approximately 24.6%:

TokenizerRemaining sequence length ↓Bigram entropy ↓
3D-BPE0.7540.972
1D Morton BPE0.8031.092
1D Hilbert BPE0.8201.220
1D Random BPE0.9982.167

See the merge-budget sweep for additional compression and dependency measurements.

At R = 256, the manuscript reports 137.98 GFLOPs and 85.04 ms for the SPAC encoder, versus 41.38 TFLOPs and 4227.84 ms for the dense ShapeLLM encoder, under its reported protocol.

MethodCLIP ↑FD ↓KID ×100 ↓
SAR3D23.927.20.28
TRELLIS30.818.30.10
ShapeLLM-Omni26.725.90.25
SPAC24.423.70.22

These figures and tables describe the paper's experimental models and protocols. They are not fresh benchmark measurements of the checkpoint distributed on this page. In particular, the latest Toy4k training-overlap replay is a different experiment.

Run SPAC-4B

Requires Linux x86_64, CUDA Toolkit 12.4 (nvcc), a C++ compiler, Google SparseHash headers, and a compatible NVIDIA driver. An A100 40 GB is recommended. Both the LLM and VQ-VAE run in FP32.

# Ubuntu build prerequisites
sudo apt-get install -y git build-essential libsparsehash-dev
export CUDA_HOME=/usr/local/cuda-12.4  # use your CUDA 12.4 installation
export PATH="$CUDA_HOME/bin:$PATH"

git clone https://github.com/yangjj007/SPAC-main.git
cd SPAC-main
bash install.sh --dependencies-only
.venv/bin/python download_weights.py
CUDA_VISIBLE_DEVICES=0 .venv/bin/python check_model_compatibility.py --check-vae

TorchSparse is built from source following Direct3D-S2. The installer runs the upstream clone-and-install recipe automatically, pinned to TorchSparse 2.1.0; SPAC retains its tested PyTorch 2.6.0 / torchvision 0.21.0 / CUDA 12.4 stack.

git clone https://github.com/mit-han-lab/torchsparse.git .cache/torchsparse
git -C .cache/torchsparse checkout 385f5ce8718fcae93540511b7f5832f4e71fd835
.venv/bin/python -m pip install --no-build-isolation .cache/torchsparse

The downloader pins a compatible release and installs/verifies the LLM, VQ-VAE, BPE merge table, and Spatial-PE manifest at their explicit runtime paths. It disables proxy use. To download through a mirror, append --endpoint https://hf-mirror.com. Repository authentication may be required when cloning the code.

# Text → untextured mesh, token sequence, and runtime settings
.venv/bin/python infer.py generate "A wooden barrel with metal hoops." --output outputs/barrel

# Mesh → caption, using live mesh encoding
.venv/bin/python infer.py understand examples/barrel/reference.glb --encode-mesh

# Interactive interface
CUDA_VISIBLE_DEVICES=0 bash run.sh --host 127.0.0.1 --port 7860

The interface opens at http://localhost:7860. Packaged examples can reuse their saved input tokens; --encode-mesh runs the complete mesh-to-SDF-to-token path.

Runtime file mapping

Hugging Face pathLocal runtime path
Four pytorch_model-*.bin shards, index, config and tokenizermodels/llm/
merge_table.jsonmodels/merge_table.json
spatial_pe_manifest.jsonmodels/spatial_pe_manifest.json
vqvae/model.pt, vqvae/config.jsonmodels/vqvae/

The downloader records these mappings and SHA-256 checksums in models/asset_manifest.json. The VQ-VAE filename change preserves the checkpoint bytes.

Inference defaults

SettingReleased demo
Precision / attentionFP32 / SDPA; TF32 and AMP disabled
Spatial-PE / RoPE theta0.08 / 1,000,000
GenerationGreedy; temperature 0, top-k 1, top-p 1; up to 8192 new tokens
UnderstandingGreedy; up to 256 new tokens
GeometrySDF resolution 256; explicit coordinate grid 32³

The release config declares FP32, RoPE theta 1,000,000, and independent input/output embeddings. The loader also handles the original export's stale tied-embedding flag without overwriting the learned lm_head. Geometry inference requires the SPAC wrapper and matching spatial manifest / merge table; standard text-only AutoModel.generate() does not add Spatial-PE. An output that reaches the token limit can be incomplete; the demo records ended_normally in result.json.

Checkpoint provenance

SPAC-4B uses the LLM checkpoint originally released as Jack04810/SPAC-4B-toy4k, revision de08d429d2910e784b7ca0a22731246e26649c06 (checkpoint-20352). It is a Toy4k-continuation checkpoint exported with FP32 weights and a 200,832-token vocabulary. Renaming the release does not change its training history. The repository also provides the matching VQ-VAE under vqvae/.

The method is described in “From Dense to Sparse: Morton-Ordered Sparse Mapping for Efficient 3D Mesh Generation.” The model generates geometry without native textures or materials. License metadata is retained from the source checkpoint.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
396a50b

0 моделей