Instructions to use bn22/experimental-te-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bn22/experimental-te-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="bn22/experimental-te-ft")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("bn22/experimental-te-ft") model = AutoModel.from_pretrained("bn22/experimental-te-ft") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse files- config.json +5 -21
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -1,39 +1,23 @@
|
|
| 1 |
{
|
| 2 |
-
"add_cross_attention": false,
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 49406,
|
| 8 |
-
"cross_attention_hidden_size": null,
|
| 9 |
-
"decoder_start_token_id": null,
|
| 10 |
-
"dropout": 0.0,
|
| 11 |
"dtype": "float32",
|
| 12 |
"eos_token_id": 49407,
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
-
"hidden_size": 512,
|
| 16 |
"initializer_factor": 1.0,
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
-
"intermediate_size":
|
| 19 |
-
"is_decoder": false,
|
| 20 |
"layer_norm_eps": 1e-05,
|
| 21 |
"max_position_embeddings": 77,
|
| 22 |
"model_type": "clip_text_model",
|
| 23 |
"num_attention_heads": 8,
|
| 24 |
"num_hidden_layers": 12,
|
| 25 |
-
"pad_token_id":
|
| 26 |
-
"prefix": null,
|
| 27 |
"projection_dim": 512,
|
| 28 |
-
"pruned_heads": {},
|
| 29 |
-
"sep_token_id": null,
|
| 30 |
-
"task_specific_params": null,
|
| 31 |
-
"tie_encoder_decoder": false,
|
| 32 |
-
"tie_word_embeddings": true,
|
| 33 |
-
"tokenizer_class": null,
|
| 34 |
-
"torchscript": false,
|
| 35 |
"transformers_version": "5.0.0",
|
| 36 |
-
"use_bfloat16": false,
|
| 37 |
-
"use_cache": false,
|
| 38 |
"vocab_size": 49408
|
| 39 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
+
"CLIPTextModel"
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
"bos_token_id": 49406,
|
|
|
|
|
|
|
|
|
|
| 7 |
"dtype": "float32",
|
| 8 |
"eos_token_id": 49407,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_size": 384,
|
|
|
|
| 11 |
"initializer_factor": 1.0,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 1536,
|
|
|
|
| 14 |
"layer_norm_eps": 1e-05,
|
| 15 |
"max_position_embeddings": 77,
|
| 16 |
"model_type": "clip_text_model",
|
| 17 |
"num_attention_heads": 8,
|
| 18 |
"num_hidden_layers": 12,
|
| 19 |
+
"pad_token_id": 1,
|
|
|
|
| 20 |
"projection_dim": 512,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
"transformers_version": "5.0.0",
|
|
|
|
|
|
|
| 22 |
"vocab_size": 49408
|
| 23 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8faf29a17f2c92bdbbfd87fe6ba1b632277c964713d9828547e999182f90b8c6
|
| 3 |
+
size 161209440
|