Instructions to use imnbharath/IndicTransLoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use imnbharath/IndicTransLoRA with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="imnbharath/IndicTransLoRA")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("imnbharath/IndicTransLoRA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_indictrans.IndicTransTokenizer", | |
| null | |
| ] | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "do_lower_case": false, | |
| "eos_token": "</s>", | |
| "model_max_length": 256, | |
| "pad_token": "<pad>", | |
| "src_vocab_file": "/media/bigdata/71ec9ff9-bdc2-410a-bfcb-1a3e24aaf8f7/sagar/legal_language_translation/codes/experimentation/MoE_Inclusion_2/outputs_indictrans2_finetune/best/dict.SRC.json", | |
| "tgt_vocab_file": "/media/bigdata/71ec9ff9-bdc2-410a-bfcb-1a3e24aaf8f7/sagar/legal_language_translation/codes/experimentation/MoE_Inclusion_2/outputs_indictrans2_finetune/best/dict.TGT.json", | |
| "tokenizer_class": "IndicTransTokenizer", | |
| "unk_token": "<unk>" | |
| } | |