COMET
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]
❓ Questions and Help
Before asking:
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]
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.
if there's a way, it will be helpful
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
)