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

Taeef Najib

10/17/2022, 12:56 AM
I was told that we can use regular Python type hinting for files. But in the example: https://docs.flyte.org/projects/cookbook/en/latest/auto/case_studies/ml_training/mnist_classifier/pytorch_single_node_and_gpu.html I see
Copy code
from flytekit.types.file import PythonPickledFile
and in the example: https://docs.flyte.org/projects/cookbook/en/latest/auto/case_studies/ml_training/house_price_prediction/house_price_predictor.html I see
Copy code
from flytekit.types.file import JoblibSerializedFile
These are used to output the model state. Couldn’t we use regular Python type hints for these? May I know why
PythonPickedFile
and
JoblibSerializedFile
were used in the examples?
k

Ketan (kumare3)

10/17/2022, 3:27 AM
This is just metadata, this adds a format field to the information so that it’s easier for The user to see it in the ui
t

Taeef Najib

10/17/2022, 5:02 PM
Oh I see! The user can change it in the UI as per the requirement. Correct?
s

Samhita Alla

10/18/2022, 4:29 AM
@Taeef Najib, sorry change what?
t

Taeef Najib

10/18/2022, 9:53 PM
@Samhita Alla I got it resolved. Thanks