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

Ryuu

12/06/2023, 7:33 AM
@Kevin Su I have question with Image Spec
Copy code
custom_image = ImageSpec(
    name="flyte-kfpytorch-plugin",
    packages=["torch", "torchvision", "flytekitplugins-kfpytorch", "matplotlib", "tensorboardX",
    registry="localhost:30000",
)
some lib is very large such as torch like above, This may reach timeout in pip install when building the image. Formally, how to set timeout for pip in this case
k

Kevin Su

12/06/2023, 9:02 AM
interesting. we didn’t set timeout in the flytekit. seems like the timeout in envd
How long does it take to build this image
r

Ryuu

12/06/2023, 9:11 AM
@Kevin Su The time build image will base on internet speed of user.
In my case, it's time out of pip install when envd was executing
k

Kevin Su

12/06/2023, 10:17 AM
could you give it a try
Copy code
ImageSpec(apt_packages=["git"], packages=["--timeout=1000 numpy"], registry="localhost:30000")
r

Ryuu

12/06/2023, 10:29 AM
@Kevin Su have you just updated it ? =))
or this is trick for write script build before execute
k

Kevin Su

12/06/2023, 10:33 AM
this is trick. envd allows you to do that😂