Instructions to use ArthurSynthia/clap1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ArthurSynthia/clap1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ArthurSynthia/clap1")# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("ArthurSynthia/clap1") model = AutoModel.from_pretrained("ArthurSynthia/clap1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "/home/yoach/tmp/clap/larger_clap_music_speech_general", | |
| "architectures": [ | |
| "ClapModel" | |
| ], | |
| "audio_config": { | |
| "depths": [ | |
| 2, | |
| 2, | |
| 12, | |
| 2 | |
| ], | |
| "hidden_size": 1024, | |
| "model_type": "clap_audio_model", | |
| "patch_embeds_hidden_size": 128 | |
| }, | |
| "hidden_size": 768, | |
| "initializer_factor": 1.0, | |
| "logit_scale_init_value": 14.285714285714285, | |
| "model_type": "clap", | |
| "num_hidden_layers": 16, | |
| "projection_dim": 512, | |
| "projection_hidden_act": "relu", | |
| "text_config": { | |
| "model_type": "clap_text_model" | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.35.0.dev0" | |
| } | |