https://flyte.org logo
#ask-the-community
Title
# ask-the-community
f

Fabio Grätz

05/11/2023, 1:31 PM
Is there a way, in a task, to make a deck appear in the Flyte console before the task has finished? And potentially update it several times as training progresses?
k

Ketan (kumare3)

05/11/2023, 1:38 PM
Not today
f

Felix Ruess

05/12/2023, 6:39 AM
That would be super cool!
f

Fabio Grätz

05/12/2023, 7:58 AM
@Niels Bantilan in your eager mode demo you listed the tasks that were executed as subtasks. Did this list appear after the eager task was done or have you figured out a way to continuously update the deck?
k

Ketan (kumare3)

05/12/2023, 1:05 PM
After. The reason is it assembled in the end
n

Niels Bantilan

05/12/2023, 1:12 PM
yeah, would be awesome to render flyte decks during the execution of a task… another RFC? 😃
k

Ketan (kumare3)

05/12/2023, 1:20 PM
Does anyone have an idea how to? Without overwriting the decks file?
k

Kevin Su

05/13/2023, 12:00 AM
For now, deck is only persisted after task completes. how about
Copy code
@task(disable_deck=True)
def t1(epoch: int) -> int:
    for i in range(epoch):
        tf.train(...)
        flytekit.Deck.persist()
    return b
@Ketan (kumare3) why can’t we overwrite the deck file?
k

Ketan (kumare3)

05/13/2023, 4:22 AM
You are right most blob stores are strongly consistent now, so we can
f

Fabio Grätz

05/15/2023, 8:24 AM
flytekit.Deck.persist()
this would be super cool.
3 Views