New RunLLM response generated: >>>*# Question* Is...
# runllm-flyte-trial
a
New RunLLM response generated: >>>*# Question* Is there a recommended resources standard for a flyte-binary install? I've it up and running, but executing a simple workflow fails immediately with a OOMKilled error. I currently am using the default values.yaml file. I also see some past threads where memory wasn't always the actual cause. Looking for any sort of direction, thanks. # Answer To address the OOMKilled error in a Flyte-binary installation, you should adjust the resource requests and limits for your tasks. The default values might be insufficient for your workflows. According to this discussion, you can specify resource requests and limits directly in the task definition using the
@task
decorator. Additionally, you can configure default task resources in the Flyte configuration. Here is an example of how to set resource requests and limits in a task:
Copy code
from flytekit import task, Resources

@task(
    requests=Resources(mem="1000Mi"),
    limits=Resources(mem="2000Mi")
)
def my_task():
    # Task implementation
    pass
For setting default task resources in the Flyte configuration, you can modify the
values.yaml
file as follows:
Copy code
configuration:
  inline:
    task_resources:
      defaults:
        cpu: "500m"
        memory: "500Mi"
      limits:
        cpu: "2"
        memory: "2Gi"
Would you like more details on how to implement these changes or further troubleshooting steps? Sources: - Flyte Discussion - Flyte Configuration Slack Link https://flyte-org.slack.com/archives/CP2HDHKE1/p1723217965.492619 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.