Ryan Delgado
09/04/2022, 11:18 PMflytectl demo start
,
2. I ensured my ~/.flyte/config.yaml
is pointed at my local environment.
3. I started a unionml project by running unionml init mnist
and navigating into the directory.
4. I ran unionml deploy app:model
to deploy a Model object named "model" in the app.py file within the current working directory.
5. I ran unionml train app:model
to train the model.
When I deploy the model, I see these logs:
[unionml] deploying app:model
2022-09-04 19:09:54,211 unionml INFO Building docker container in flyte demo cluster.
2022-09-04 19:09:54,862 unionml INFO unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /root/Dockerfile: no such file or directory
2022-09-04 19:09:54,895 unionml INFO Deploying workflow digits_classifier.train
2022-09-04 19:09:55,230 unionml INFO Deploying workflow digits_classifier.predict
2022-09-04 19:09:55,294 unionml INFO Deploying workflow digits_classifier.predict_from_features
When I train the model, I see that a workflow is triggered in the sandbox Flyte Console, but the workflow fails on the dataset_task
node. The logs for that task are:
[1/1] currentAttempt done. Last Error: USER::containers with unready status: [ffa8038a9524b4920a61-n0-0]|Back-off pulling image "unionml:digits-classifier-a31c8bb4d7f235f31b25a3449e3dcc0c1f82e9be"
It looks like I'm getting an error with finding pulling an image, but I'm not sure what I'm doing wrong 😅. Could you advise on how I can get this working?Ketan (kumare3)
Kevin Su
09/05/2022, 4:55 AMflytectl demo start --source . (in the mnist directory)
flytectl demo exec -- docker build -t mnist:v1 .
Samhita Alla
docker build …
command is required cause it’s automatically handled by model.remote
.Ryan Delgado
09/05/2022, 2:49 PMunionml deploy app:model
Step three takes 5-10 minutes, even for very small code changes. Is there some way I can shorten this to <1 minute? I would assume that Docker would cache pre-built and unchanged layers, but it looks like that's not happening.Ketan (kumare3)
Niels Bantilan
09/06/2022, 7:12 PMRyan Delgado
09/06/2022, 7:12 PMNiels Bantilan
09/06/2022, 7:22 PMflytectl demo
cluster, or a production cluster?Ryan Delgado
09/06/2022, 7:28 PMKetan (kumare3)
Ryan Delgado
09/07/2022, 1:05 AMKetan (kumare3)
Ryan Delgado
09/08/2022, 12:49 AMKetan (kumare3)
Ryan Delgado
09/08/2022, 12:54 AMKetan (kumare3)
Ryan Delgado
09/08/2022, 1:27 AM