You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot train with offline mode as it errors out with ValueError: Unsupported keyword arguments: force. When not using offline mode, the training starts just fine.
"""Demonstrate how training can be done in a simple fashion."""
from pathlib import Path
from clearml import Task
import hydra
from hydra.core.config_store import ConfigStore
import os
ConfigStore.instance().store(name="base_config", node=TrainConfiguration)
@hydra.main(version_base=None, config_path="conf", config_name="sweep")
def main(cfg: ScriptConfiguration):
"""Run."""
Task.set_offline(offline_mode=True)
task = Task.init(
project_name="Test",
task_name="debugtask",
tags=['debug']
)
trainer = Trainer(config=cfg)
train_loss = trainer.train()
task.close()
# Set offline to false and upload task to server
Task.set_offline(False)
if __name__ == "__main__":
main()
Expected behaviour
It should have trained normally, like when offline mode is not on.
Environment
Server type (both self hosted and on app.clear.ml)
ClearML SDK Version 1.14.3
ClearML Server Version (Only for self hosted). Can be found on the bottom right corner of the settings screen.: 1.14.1-451
Python Version 3.10.8
OS (Windows \ Linux \ Macos)
The text was updated successfully, but these errors were encountered:
@eugen-ajechiloae-clearml while waiting for the release, would dropping the force argument in the cls._current_task.delete_parameter function in the PatchHydra class from hydra_bind.py fix the issue?
Describe the bug
I cannot train with offline mode as it errors out with
ValueError: Unsupported keyword arguments: force
. When not using offline mode, the training starts just fine.Stacktrace
To reproduce
Expected behaviour
It should have trained normally, like when offline mode is not on.
Environment
The text was updated successfully, but these errors were encountered: