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)