Instructions to use AdapterHub/xmod-base-hi_IN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use AdapterHub/xmod-base-hi_IN with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("AdapterHub/xmod-base") model.load_adapter("AdapterHub/xmod-base-hi_IN", set_active=True) - Notebooks
- Google Colab
- Kaggle
Upload model
Browse filesFiles changed (3)
- README.mdAdded+66
- adapter_config.jsonAdded+40
- pytorch_adapter.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566---tags:- adapterhub:hi/cc100- adapters- xmodlanguage:- hilicense: "mit"---
# Adapter `AdapterHub/xmod-base-hi_IN` for AdapterHub/xmod-base
An [adapter](https://adapterhub.ml) for the `AdapterHub/xmod-base` model that was trained on the [hi/cc100](https://adapterhub.ml/explore/hi/cc100/) dataset.
This adapter was created for usage with the **[Adapters](https://github.com/Adapter-Hub/adapters)** library.
## Usage
First, install `adapters`:
```pip install -U adapters```
Now, the adapter can be loaded and activated like this:
```pythonfrom adapters import AutoAdapterModel
model = AutoAdapterModel.from_pretrained("AdapterHub/xmod-base")adapter_name = model.load_adapter("AdapterHub/xmod-base-hi_IN", source="hf", set_active=True)```
## Architecture & Training
This adapter was extracted from the original model checkpoint [facebook/xmod-base](https://huggingface.co/facebook/xmod-base) to allow loading it independently via the Adapters library.For more information on architecture and training, please refer to the original model card.
## Evaluation results
<!-- Add some description here -->
## Citation
[Lifting the Curse of Multilinguality by Pre-training Modular Transformers (Pfeiffer et al., 2022)](http://dx.doi.org/10.18653/v1/2022.naacl-main.255)
```@inproceedings{pfeiffer-etal-2022-lifting, title = "Lifting the Curse of Multilinguality by Pre-training Modular Transformers", author = "Pfeiffer, Jonas and Goyal, Naman and Lin, Xi and Li, Xian and Cross, James and Riedel, Sebastian and Artetxe, Mikel", booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies", month = jul, year = "2022", address = "Seattle, United States", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2022.naacl-main.255", doi = "10.18653/v1/2022.naacl-main.255", pages = "3479--3495"}```12345678910111213141516171819202122232425262728293031323334353637383940{ "config": { "adapter_residual_before_ln": false, "cross_adapter": false, "factorized_phm_W": true, "factorized_phm_rule": false, "hypercomplex_nonlinearity": "glorot-uniform", "init_weights": "bert", "inv_adapter": null, "inv_adapter_reduction_factor": null, "is_parallel": false, "learn_phm": true, "leave_out": [], "ln_after": false, "ln_before": false, "mh_adapter": false, "non_linearity": "gelu", "original_ln_after": false, "original_ln_before": true, "output_adapter": true, "phm_bias": true, "phm_c_init": "normal", "phm_dim": 4, "phm_init_range": 0.0001, "phm_layer": false, "phm_rank": 1, "reduction_factor": 2, "residual_before_ln": false, "scaling": 1.0, "shared_W_phm": false, "shared_phm_rule": true, "use_gating": false }, "hidden_size": 768, "model_class": "XmodAdapterModel", "model_name": "AdapterHub/xmod-base", "model_type": "xmod", "name": "hi_IN", "version": "0.0.0"}123version https://git-lfs.github.com/spec/v1oid sha256:da6d0ab806f3fe894d32d168be37ef95a15f73bac343d7bc2c60c4d8f9aa91cdsize 28383333README.mdAdded+66
adapter_config.jsonAdded+40
pytorch_adapter.binAdded+3