COMET icon indicating copy to clipboard operation
COMET copied to clipboard

I see Unbabel comet is downloading models--xlm-roberta-large folder every time, is there any way to load it from local, if yes please share the hack.[QUESTION]

Open atuad7535 opened this issue 1 year ago • 3 comments

❓ Questions and Help

Before asking:

  1. Search for similar issues.
  2. Search the docs.

What is your question?

Code

What have you tried?

What's your environment?

  • OS: [e.g. iOS, Linux, Win]
  • Packaging [e.g. pip, conda]
  • Version [e.g. 0.5.2.1]

atuad7535 avatar Jun 27 '24 15:06 atuad7535

I see Unbabel comet is downloading models--xlm-roberta-large folder every time, is there any way to load it from local, if yes please share the hack, because I am not allowed to hit hugging face in production environment.

atuad7535 avatar Jun 27 '24 15:06 atuad7535

if there's a way, it will be helpful

flashbear avatar Oct 22 '24 06:10 flashbear

rewrite the reload_hparams.yaml: pretrained_model: (your model path)

and

in the code,you should write like: model = load_from_checkpoint( CHECKPOINT_PATH, reload_hparams=True, strict=False
)

everythingez avatar Oct 01 '25 13:10 everythingez