Feature Extraction
Transformers
TensorBoard
Safetensors
English
captionbert_v2
sentence-similarity
consensus-distillation
geometric-deep-learning
amoe
custom_code
Instructions to use AbstractPhil/captionbert-8192-v2-b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbstractPhil/captionbert-8192-v2-b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="AbstractPhil/captionbert-8192-v2-b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AbstractPhil/captionbert-8192-v2-b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
modeling: AMOE_REPO resolves from config._name_or_path, not a hardcoded v2 - anchors are TRUNK-BOUND (v2 arms lose 31%% of their gain on the -B trunk, .7287 -> .6863; key realignment recovers 29%%). Dispatch is now the first candidate PRESENT in the loaded repo, with a local-dir hint on miss.
Browse files- modeling_captionbert.py +1 -1
modeling_captionbert.py
CHANGED
|
@@ -492,4 +492,4 @@ CaptionBertV2Model.detach_amoe = _detach_amoe
|
|
| 492 |
CaptionBertV2Model.amoe_arms = property(_amoe_arms)
|
| 493 |
|
| 494 |
CaptionBertV2Config.register_for_auto_class()
|
| 495 |
-
CaptionBertV2Model.register_for_auto_class("AutoModel")
|
|
|
|
| 492 |
CaptionBertV2Model.amoe_arms = property(_amoe_arms)
|
| 493 |
|
| 494 |
CaptionBertV2Config.register_for_auto_class()
|
| 495 |
+
CaptionBertV2Model.register_for_auto_class("AutoModel")
|