Unanswered
Hi Guys
Hello 🙂
This is the snipper using Click
@define()
class ClearMLConfig:
task_name: str = "First experiment"
task_type: Task.TaskTypes = Task.TaskTypes.training
reuse_last_task_id: bool = True
output_uri: Optional[str] = None
clearml_config = ClearMLConfig()
task = Task.init(project_name='Illuin Emotions',
task_name=clearml_config.task_name,
reuse_last_task_id=clearml_config.reuse_last_task_id,
task_type=clearml_config.task_type,
output_uri=clearml_config.output_uri)
@click.group()
def cli() -> None:
if os.path.isfile(".env"):
logger.info("Loading .env file")
load_dotenv(".env")
cli.add_command(lightning_cli, name="lightning")
cli.add_command(huggingface_cli, name="huggingface")
And to log it we use:Task.current_task().connect(attrs.asdict(config))
145 Views
0
Answers
one year ago
one year ago