Skip to content

Artifacts and Allegro Trains #1334

@sdesrozis

Description

@sdesrozis

❓ Questions/Help/Support

I have my own local trains server. It works perfectly well to log scalars and log history. However, I don’t catch how to upload models on the server. It seems models of examples on demo server are not uploaded.

I use the following code from documentation

trains_logger = TrainsLogger(
                project_name="pytorch-ignite-integration",
                task_name="cnn-mnist"
            )
to_save = {"model": model}
handler = Checkpoint(
                to_save,
                TrainsSaver(),
                n_saved=1,
                score_function=lambda e: 123,
                score_name="acc",
                filename_prefix="best",
                global_step_transform=global_step_from_engine(trainer)
            )
validation_evaluator.add_event_handler(Events.EVENT_COMPLETED, handler)

Models are referenced as local files on computing server... I surely missed something, some help is needed.

I don’t see any task.upload_artifact(...) in code. I thought it was the way to upload. If I use official example of the ˋtrains documentation, the call of ˋtorch.save(...) does not upload model 😔

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions