Image Feature Extraction
Transformers
Safetensors
motif_vision
feature-extraction
motif
vision-transformer
self-supervised
video
custom_code
Instructions to use Motif-Technologies/Motif-Vision-Encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Motif-Technologies/Motif-Vision-Encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="Motif-Technologies/Motif-Vision-Encoder", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Motif-Technologies/Motif-Vision-Encoder", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
rename modeling_motif.py -> modeling_motif_vision_encoder.py (update auto_map + README)
Browse filesFiles changed (3)
21 unmodified lines22232425262728293031323321 unmodified lines(`base=100`), SwiGLU FFN, LayerScale, per-head QK-norm, gated attention, 4 register tokens.- **Tokenizer**: `Conv3d(kernel=stride=(tubelet, patch, patch))` — image `(B,3,H,W)` → `T=1`,video `(B,T,3,H,W)`. Token layout `[CLS] + [register × 4] + [patch × N]`.- **This repo**: inference-only. Weights + self-contained `modeling_motif.py` (loaded via`trust_remote_code`). Training/eval code lives in the GitHub repo.## UsageThe model ships a self-contained `modeling_motif.py`, so it loads with `trust_remote_code=True`.### Image21 unmodified lines22232425262728293031323321 unmodified lines(`base=100`), SwiGLU FFN, LayerScale, per-head QK-norm, gated attention, 4 register tokens.- **Tokenizer**: `Conv3d(kernel=stride=(tubelet, patch, patch))` — image `(B,3,H,W)` → `T=1`,video `(B,T,3,H,W)`. Token layout `[CLS] + [register × 4] + [patch × N]`.- **This repo**: inference-only. Weights + self-contained `modeling_motif_vision_encoder.py` (loadedvia `trust_remote_code`). Training/eval code lives in the GitHub repo.## UsageThe model ships a self-contained `modeling_motif_vision_encoder.py`, so it loads with `trust_remote_code=True`.### Image
2 unmodified lines3456789102 unmodified lines"MotifVisionModel"],"auto_map": {"AutoConfig": "modeling_motif.MotifVisionConfig","AutoModel": "modeling_motif.MotifVisionModel"},"depth": 40,"drop_path_rate": 0.0,2 unmodified lines3456789102 unmodified lines"MotifVisionModel"],"auto_map": {"AutoConfig": "modeling_motif_vision_encoder.MotifVisionConfig","AutoModel": "modeling_motif_vision_encoder.MotifVisionModel"},"depth": 40,"drop_path_rate": 0.0,
README.md+3-3
config.json+2-2
modeling_motif.py → modeling_motif_vision_encoder.pyRenamed