Translation
Transformers
Inference Endpoints

How to use IndicComet

#8
by sofia100 - opened

https://github.com/AI4Bharat/IndicMT-Eval/tree/master?tab=readme-ov-file

This uses IndicComet in MQM and DA. On using the URLs for checkpoints, I'm getting ERROR:

KeyError: "Model 'https://objectstore.e2enetworks.net/indic-trans/Indic-COMET-MQM/checkpoints/epoch=2-step=939.ckpt' not supported by COMET."

What to do? How to use IndicCOMET in python?

Thanks in advance

you need to download hparams.yaml file and create directory structure as

indic_comet/
β”œβ”€β”€ checkpoints
β”‚   └── model.ckpt
└── hparams.yaml

and then use the following snippet

from comet import load_from_checkpoint
model_path = "./indic_comet/checkpoints/model.ckpt" #it should be .ckpt file
model = load_from_checkpoint(model_path)

Sign up or log in to comment