Instructions to use IbrahimAmin/hubert-arabic-spoken-dialect-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IbrahimAmin/hubert-arabic-spoken-dialect-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="IbrahimAmin/hubert-arabic-spoken-dialect-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForAudioClassification processor = AutoProcessor.from_pretrained("IbrahimAmin/hubert-arabic-spoken-dialect-classifier") model = AutoModelForAudioClassification.from_pretrained("IbrahimAmin/hubert-arabic-spoken-dialect-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from IbrahimAmin/hubert-arabic-spoken-dialect-classifier: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/IbrahimAmin/hubert-arabic-spoken-dialect-classifier/resolve/main/config.json
- Command line
-
hf download hf://IbrahimAmin/hubert-arabic-spoken-dialect-classifier/config.json
-
curl -L -o config.json https://huggingface.co/IbrahimAmin/hubert-arabic-spoken-dialect-classifier/resolve/main/config.json
2.18 kB
| { | |
| "_name_or_path": "facebook/hubert-base-ls960", | |
| "activation_dropout": 0.1, | |
| "apply_spec_augment": true, | |
| "architectures": [ | |
| "HubertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "bos_token_id": 1, | |
| "classifier_proj_size": 256, | |
| "conv_bias": false, | |
| "conv_dim": [ | |
| 512, | |
| 512, | |
| 512, | |
| 512, | |
| 512, | |
| 512, | |
| 512 | |
| ], | |
| "conv_kernel": [ | |
| 10, | |
| 3, | |
| 3, | |
| 3, | |
| 3, | |
| 2, | |
| 2 | |
| ], | |
| "conv_stride": [ | |
| 5, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "ctc_loss_reduction": "sum", | |
| "ctc_zero_infinity": false, | |
| "do_stable_layer_norm": false, | |
| "eos_token_id": 2, | |
| "feat_extract_activation": "gelu", | |
| "feat_extract_dropout": 0.0, | |
| "feat_extract_norm": "group", | |
| "feat_proj_dropout": 0.1, | |
| "feat_proj_layer_norm": true, | |
| "final_dropout": 0.1, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout": 0.1, | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "MSA", | |
| "1": "IRA", | |
| "2": "EGY", | |
| "3": "MAU", | |
| "4": "KSA", | |
| "5": "UAE", | |
| "6": "SYR", | |
| "7": "PAL", | |
| "8": "LEB", | |
| "9": "LIB", | |
| "10": "KUW", | |
| "11": "ALG", | |
| "12": "OMA", | |
| "13": "QAT", | |
| "14": "YEM", | |
| "15": "SUD", | |
| "16": "MOR", | |
| "17": "JOR" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "ALG": 11, | |
| "EGY": 2, | |
| "IRA": 1, | |
| "JOR": 17, | |
| "KSA": 4, | |
| "KUW": 10, | |
| "LEB": 8, | |
| "LIB": 9, | |
| "MAU": 3, | |
| "MOR": 16, | |
| "MSA": 0, | |
| "OMA": 12, | |
| "PAL": 7, | |
| "QAT": 13, | |
| "SUD": 15, | |
| "SYR": 6, | |
| "UAE": 5, | |
| "YEM": 14 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "layerdrop": 0.1, | |
| "mask_feature_length": 10, | |
| "mask_feature_min_masks": 0, | |
| "mask_feature_prob": 0.0, | |
| "mask_time_length": 10, | |
| "mask_time_min_masks": 2, | |
| "mask_time_prob": 0.05, | |
| "model_type": "hubert", | |
| "num_attention_heads": 12, | |
| "num_conv_pos_embedding_groups": 16, | |
| "num_conv_pos_embeddings": 128, | |
| "num_feat_extract_layers": 7, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "tokenizer_class": "Wav2Vec2CTCTokenizer", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.34.1", | |
| "use_weighted_layer_sum": false, | |
| "vocab_size": 32 | |
| } | |