run.py 393 字节
Newer Older
X
xixiaoyao 已提交
1 2 3 4 5 6 7 8 9 10 11
import paddlepalm as palm

if __name__ == '__main__':
    controller = palm.Controller('config.yaml', task_dir='tasks')
    controller.load_pretrain('../../pretrain_model/ernie/params')
    controller.train()

    controller = palm.Controller(config='config.yaml', task_dir='tasks', for_train=False)
    controller.pred('mrqa', inference_model_dir='output_model/secondrun/mrqa/infer_model')