Instructions to use AstraMindAI/Clap_modified with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AstraMindAI/Clap_modified with Transformers:
# Load model directly from transformers import AutoTokenizer, ClapTextModelWithProjection tokenizer = AutoTokenizer.from_pretrained("AstraMindAI/Clap_modified") model = ClapTextModelWithProjection.from_pretrained("AstraMindAI/Clap_modified", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 838 Bytes
fea9a16 210a7bd fea9a16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | {
"architectures": [
"ClapTextModelWithProjection"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"classifier_dropout": null,
"eos_token_id": 2,
"fusion_hidden_size": 768,
"fusion_num_hidden_layers": 2,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 3072,
"layer_norm_eps": 1e-12,
"max_position_embeddings": 514,
"model_type": "clap_text_model",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 1,
"position_embedding_type": "absolute",
"projection_dim": 512,
"projection_hidden_act": "relu",
"projection_hidden_size": 768,
"torch_dtype": "float32",
"transformers_version": "4.51.3",
"type_vocab_size": 1,
"use_cache": true,
"vocab_size": 50279
}
|