You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # Copyright (c) Alibaba, Inc. and its affiliates.
- import shutil
- import unittest
-
- from modelscope.trainers.multi_modal.ofa import OFATrainer
- from modelscope.utils.test_utils import test_level
-
-
- class TestOfaTrainer(unittest.TestCase):
-
- @unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
- def test_trainer(self):
- model_id = '/apsarapangu/disk2/yichang.zyc/ckpt/MaaS/ofa_text-classification_mnli_large_en'
- self.trainer = OFATrainer(model_id)
- self.trainer.train()
- shutil.rmtree(self.trainer.save_dir)
-
-
- if __name__ == '__main__':
- unittest.main()
|