* support loading model without config.json file * fix condition * update tests * add test * ruff * ruff * ruff