xlm.commands.cli_demo
replace_model(cfg)
Legacy +hub/checkpoint=* path: swap model to hub from_pretrained target.
instantiate_model(cfg, datamodule, tokenizer)
Instantiate a model from checkpoint / Hub for interactive CLI demo.
generate(cfg)
Generate text using the CLI demo interface.
main(cfg)
Main function for CLI demo.