helpful-van-10149
08/15/2024, 8:56 PMtemplate {
id {
resource_type: TASK
name: "src.python.flyte.fraud_intelligence.utils.railyard.train_dnn_g5"
}
type: "python-task"
metadata {
discoverable: true
runtime {
type: FLYTE_SDK
version: "1.3.2"
flavor: "python"
}
timeout {
seconds: 259200
}
retries {
}
discovery_version: "v0.1"
cache_serializable: true
}
interface {
inputs {
variables {
key: "workflow_name"
value {
type {
simple: STRING
}
description: "workflow_name"
}
}
variables {
key: "train_path"
value {
type {
simple: STRING
}
description: "train_path"
}
}
variables {
key: "submit_train_kwargs"
value {
type {
simple: STRUCT
}
description: "submit_train_kwargs"
}
}
variables {
key: "name"
value {
type {
simple: STRING
}
description: "name"
}
}
variables {
key: "custom_params"
value {
type {
simple: STRUCT
}
description: "custom_params"
}
}
variables {
key: "config"
value {
type {
simple: STRUCT
}
description: "config"
}
}
}
outputs {
variables {
key: "o0"
value {
type {
simple: STRING
}
description: "o0"
}
}
}
}
k8s_pod {
metadata {
}
pod_spec {
fields {
key: "tolerations"
value {
list_value {
values {
struct_value {
fields {
key: "value"
value {
string_value: "true"
}
}
fields {
key: "operator"
value {
string_value: "Equal"
}
}
fields {
key: "key"
value {
string_value: "use-eight-gpu-big"
}
}
fields {
key: "effect"
value {
string_value: "NoSchedule"
}
}
}
}
}
}
}
fields {
key: "nodeSelector"
value {
struct_value {
fields {
key: "stripe.io/host-set"
value {
string_value: "eight-gpu-big"
}
}
}
}
}
fields {
key: "containers"
value {
list_value {
values {
struct_value {
fields {
key: "resources"
value {
struct_value {
fields {
key: "requests"
value {
struct_value {
fields {
key: "memory"
value {
string_value: "5Gi"
}
}
fields {
key: "cpu"
value {
string_value: "10m"
}
}
}
}
}
fields {
key: "limits"
value {
struct_value {
fields {
key: "memory"
value {
string_value: "5Gi"
}
}
fields {
key: "cpu"
value {
string_value: "1"
}
}
}
}
}
}
}
}
fields {
key: "name"
value {
string_value: "primary"
}
}
fields {
key: "image"
value {
string_value: "placeholder.image/docker:latest"
}
}
fields {
key: "env"
value {
list_value {
}
}
}
fields {
key: "command"
value {
list_value {
}
}
}
fields {
key: "args"
value {
list_value {
values {
string_value: "pyflyte-execute"
}
values {
string_value: "--inputs"
}
values {
string_value: "{{.input}}"
}
values {
string_value: "--output-prefix"
}
values {
string_value: "{{.outputPrefix}}"
}
values {
string_value: "--raw-output-data-prefix"
}
values {
string_value: "{{.rawOutputDataPrefix}}"
}
values {
string_value: "--checkpoint-path"
}
values {
string_value: "{{.checkpointOutputPrefix}}"
}
values {
string_value: "--prev-checkpoint"
}
values {
string_value: "{{.prevCheckpointPrefix}}"
}
values {
string_value: "--resolver"
}
values {
string_value: "src.python.flyte.fraud_intelligence.utils.tasks.fi_task_resolver"
}
values {
string_value: "--"
}
values {
string_value: "task-module"
}
values {
string_value: "src.python.flyte.fraud_intelligence.utils.railyard"
}
values {
string_value: "task-name"
}
values {
string_value: "train_dnn_g5"
}
}
}
}
}
}
}
}
}
}
}
config {
key: "primary_container_name"
value: "primary"
}
}
description {
long_description {
format: DESCRIPTION_FORMAT_RST
}
}
helpful-van-10149
08/16/2024, 2:52 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
helpful-van-10149
08/16/2024, 4:56 PMthankful-minister-83577
thankful-minister-83577
helpful-van-10149
08/16/2024, 4:59 PMthankful-minister-83577
thankful-minister-83577
helpful-van-10149
08/16/2024, 5:00 PMhelpful-van-10149
08/16/2024, 5:01 PMhelpful-van-10149
08/16/2024, 5:01 PMthankful-minister-83577
thankful-minister-83577
helpful-van-10149
08/16/2024, 5:09 PMhelpful-van-10149
08/16/2024, 5:10 PMcontainer
field will disappear if we have the pod_template?thankful-minister-83577
target
field is a oneof in the TaskTemplate message)gentle-night-59824
08/21/2024, 5:05 PMtask_config
with flytekitplugins-pod?
I didn't see python_auto_container
referring to it so I assume it's passed directly to configure the plugin but I'm not sure if it causes a pb change some other waygentle-night-59824
08/21/2024, 5:07 PMthat plugin became too unwieldy… forcing people to use a plugin task to do simple k8s constructs.hmm are you recommending against using the plugin? iiuc the
pod_template
is not supported in with_overrides
but task_config
(which I assume you need the plugin for) is supported heregentle-night-59824
08/21/2024, 5:15 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
gentle-night-59824
08/21/2024, 5:39 PMpod_template
but I do see one for task_config
here and I saw a previous thread where a user used the plugin for the same reasongentle-night-59824
08/21/2024, 5:41 PMyou can achieve the same thing with stock flytekit now.I may have misunderstood that thread though - does this mean there's a way to override
pod_template
now or was that feature never possible?thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
gentle-night-59824
08/21/2024, 5:42 PMwith_overrides
herethankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
gentle-night-59824
08/21/2024, 5:44 PMgentle-night-59824
08/21/2024, 5:44 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
gentle-night-59824
08/21/2024, 5:47 PMgentle-night-59824
08/21/2024, 5:48 PMthankful-minister-83577
thankful-minister-83577
gentle-night-59824
08/21/2024, 5:51 PMmake a ticket
as made a ticket
🤦 I'll make one rngentle-night-59824
08/21/2024, 5:59 PM