Upload small.yaml with huggingface_hub
Browse files- small.yaml +87 -0
small.yaml
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Small config: fast experiments, single GPU
|
| 2 |
+
input:
|
| 3 |
+
num_surface_points: 4096
|
| 4 |
+
|
| 5 |
+
tokenizer:
|
| 6 |
+
latent:
|
| 7 |
+
latent_shape: [24, 24, 24]
|
| 8 |
+
token_dim: 128
|
| 9 |
+
neighbor:
|
| 10 |
+
multiscale_radii: [0.05, 0.1, 0.2]
|
| 11 |
+
agno:
|
| 12 |
+
num_heads: 4
|
| 13 |
+
|
| 14 |
+
processor:
|
| 15 |
+
hidden_size: 128
|
| 16 |
+
num_layers: 3
|
| 17 |
+
num_heads: 4
|
| 18 |
+
num_kv_heads: 2
|
| 19 |
+
patch_size: 6
|
| 20 |
+
|
| 21 |
+
heads:
|
| 22 |
+
embedding_dim: 128
|
| 23 |
+
pooling: attention
|
| 24 |
+
symmetry:
|
| 25 |
+
hidden_dim: 128
|
| 26 |
+
primitive:
|
| 27 |
+
hidden_dim: 128
|
| 28 |
+
part:
|
| 29 |
+
hidden_dim: 128
|
| 30 |
+
caption:
|
| 31 |
+
hidden_dim: 128
|
| 32 |
+
reduction:
|
| 33 |
+
hidden_dim: 128
|
| 34 |
+
|
| 35 |
+
train:
|
| 36 |
+
epochs: 50
|
| 37 |
+
batch_size: 16
|
| 38 |
+
gradient_accumulation_steps: 2
|
| 39 |
+
mixed_precision: bf16
|
| 40 |
+
num_workers: 4
|
| 41 |
+
pin_memory: true
|
| 42 |
+
# Heavy outputs live on /data to keep the root disk free.
|
| 43 |
+
# Can also be overridden via SHAPE_CHECKPOINT_DIR / SHAPE_LOG_DIR env vars.
|
| 44 |
+
checkpoint_dir: /data/shape-v2/checkpoints
|
| 45 |
+
log_dir: /data/shape-v2/runs
|
| 46 |
+
optimizer:
|
| 47 |
+
lr: 3.0e-4
|
| 48 |
+
warmup_steps: 500
|
| 49 |
+
loss:
|
| 50 |
+
inpainting:
|
| 51 |
+
enabled: false
|
| 52 |
+
# Regression loss used by masked-token reconstruction, inpainting
|
| 53 |
+
# reconstruction, and symmetry plane/axis regression heads.
|
| 54 |
+
# Classification losses (symmetry class, primitive, part, reduction)
|
| 55 |
+
# are unaffected.
|
| 56 |
+
regression:
|
| 57 |
+
kind: smooth_l1 # "mse" | "smooth_l1"
|
| 58 |
+
beta: 1.0
|
| 59 |
+
# Self-supervised only. Supervised heads inherit weight=0.0 from the
|
| 60 |
+
# defaults because the stock synthetic labels overfit catastrophically
|
| 61 |
+
# (val/symmetry ≈ 2.5 while train/symmetry ≈ 1e-4). Re-enable in a
|
| 62 |
+
# follow-up config once the labels in data/synthetic_labels.py are
|
| 63 |
+
# fixed to generalize across unseen meshes.
|
| 64 |
+
weights:
|
| 65 |
+
masked_token: 1.0
|
| 66 |
+
contrastive: 0.2
|
| 67 |
+
inpainting: 0.0
|
| 68 |
+
wandb:
|
| 69 |
+
enabled: true
|
| 70 |
+
project: shape-foundation
|
| 71 |
+
tags: [small, pretrain, v1-fix]
|
| 72 |
+
|
| 73 |
+
data:
|
| 74 |
+
# Deterministic hash-based train/val split applied across every source.
|
| 75 |
+
# Every file's assignment is stable across runs and ranks (md5 of path).
|
| 76 |
+
# Set to 0.0 to opt out and fall back to per-source `split:` entries.
|
| 77 |
+
val_fraction: 0.05
|
| 78 |
+
sources:
|
| 79 |
+
- name: thingi10k
|
| 80 |
+
root: data_cache/thingi10k/thingi10k
|
| 81 |
+
weight: 1.0
|
| 82 |
+
- name: mfcad
|
| 83 |
+
root: data_cache/mfcad/mfcad
|
| 84 |
+
weight: 1.0
|
| 85 |
+
- name: fusion360
|
| 86 |
+
root: data_cache/fusion360/fusion360
|
| 87 |
+
weight: 0.5
|