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.

test_trainer_base.py 410 B

12345678910111213141516171819
  1. # Copyright (c) Alibaba, Inc. and its affiliates.
  2. import unittest
  3. from modelscope.trainers import build_trainer
  4. class DummyTrainerTest(unittest.TestCase):
  5. def test_dummy(self):
  6. default_args = dict(cfg_file='configs/examples/train.json')
  7. trainer = build_trainer('dummy', default_args)
  8. trainer.train()
  9. trainer.evaluate()
  10. if __name__ == '__main__':
  11. unittest.main()