Skip to content

Check valid destination of trainings API before executing training #117

@mrb

Description

@mrb

Ran into an issue where the training was successful but the job failed because the status didn't get transmitted along with the python data for some reason:

>>> training.destination
>>> training = replicate.trainings.create(
...   destination="mrb/zimm2",
...   version="replicate/flan-t5-xl:7a216605843d87f5426a10d2cc6940485a232336ed04d655ef86b91e020e9210",
...   input={
...     "train_data": "https://gist.githubusercontent.com/mrb/5a704562c19ddb59c9654f55f7cfc382/raw/bf4a0d79e510bddbf552128844626b6f9df70168/zimm.jsonl",
...   },
... )
>>> training
Training(id='nee5zglb7i4ragkhzfomng3bsu', completed_at=None, created_at='2023-07-07T18:42:37.915023137Z', destination=None, error=None, input={'train_data': 'https://gist.githubusercontent.com/mrb/5a704562c19ddb59c9654f55f7cfc382/raw/bf4a0d79e510bddbf552128844626b6f9df70168/zimm.jsonl'}, logs='', output=None, started_at=None, status='starting', version=No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions