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
Create config.json
Browse files- config.json +22 -0
config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"CaptionBertV2Model"
|
| 4 |
+
],
|
| 5 |
+
"model_type": "captionbert_v2",
|
| 6 |
+
"auto_map": {
|
| 7 |
+
"AutoConfig": "modeling_captionbert.CaptionBertV2Config",
|
| 8 |
+
"AutoModel": "modeling_captionbert.CaptionBertV2Model"
|
| 9 |
+
},
|
| 10 |
+
"vocab_size": 30522,
|
| 11 |
+
"hidden_size": 512,
|
| 12 |
+
"num_hidden_layers": 12,
|
| 13 |
+
"num_attention_heads": 8,
|
| 14 |
+
"intermediate_size": 2048,
|
| 15 |
+
"output_dim": 768,
|
| 16 |
+
"max_position_embeddings": 8192,
|
| 17 |
+
"hidden_dropout_prob": 0.1,
|
| 18 |
+
"pad_token_id": 0,
|
| 19 |
+
"pooling": "mean",
|
| 20 |
+
"torch_dtype": "float32",
|
| 21 |
+
"tokenizer_class": "BertTokenizerFast"
|
| 22 |
+
}
|