Views
No views yet
robbyant/lingbot-vision-vit-large,
re-laid-out for the
MLXLingBotVision Swift
package.model.safetensors (fp32, ~1.13 GB) + config.json (architecture
parameters read by the Swift loader).scripts/convert.py)
is numerically neutral — it only re-lays-out the weights for MLX Swift:_orig_mod. / backbone.
key prefixes.bias_mask into attn.qkv.bias (zeroing the K third of
the bias) and dropped the mask buffer, so the Swift side is a plain fused
Linear.mask_token (a no-op at eval time — the forward uses
cls_token + 0 * mask_token).safetensors with keys matching the Swift module tree, plus a
config.json.0.9999987, maxAbs 0.010, meanAbs 0.0004; CLS-token cosine 0.99999624.1import MLXLingBotVision
2
3let session = try LingBotVisionSession.load(
4 SessionConfig(modelDirectory: URL(fileURLWithPath: "/path/to/lingbot-vision-vit-large-mlx"),
5 dtype: .float16))
6
7let out = try session.features(imageURL: imageURL, size: 512) // cls / storage / patch tokens
8let cg = try session.pcaCGImage(imageURL: imageURL, size: 512) // PCA RGB visualizationlbv-tool --model /path/to/lingbot-vision-vit-large-mlx --image example.png --out pca.png --size 5121@article{lingbot-vision2026,
2 title={Vision Pretraining for Dense Spatial Perception},
3 author={Fu, Zelin and Tan, Bin and Sun, Changjiang and Liu, Shaohui and Zheng, Kecheng and Xu, Yinghao and Zhu, Xing and Shen, Yujun and Xue, Nan},
4 year={2026}
5}LICENSE.