It seems like the "descriptor" protobuf file has become too large, which I don't understand why. I have checked and I have a 29 long list with my custom dataclass as output:
Copy code
@dataclass_json
@dataclass
class AUResultsWrapperPerSegment:
segment_id: int
preds: Dict[str, List[float]]
Can you tell me what to do otherwise? I don't want to change the limit since the max allowed [10485760] bytes is already large.
f
freezing-airport-6809
06/17/2024, 2:19 PM
You can use files
For example a list of dataclass and instead of dictionary use a dataframe?
freezing-airport-6809
06/17/2024, 2:19 PM
Or you can create list of files
freezing-airport-6809
06/17/2024, 2:20 PM
We are working on an auto offload feature. Would love to discuss usecase
b
bored-needle-72209
06/17/2024, 3:25 PM
Daraframe could work, but why does it result in a large output protobuf file with a dictionary inside a dataclass?
f
freezing-airport-6809
06/17/2024, 3:25 PM
It’s serializing all of the data to proto
freezing-airport-6809
06/17/2024, 3:27 PM
Sadly proto does not support streaming so Flyte propeller has to materialize everything to memory. To prevent instability or high memory this limit is introduced, though I think you can raise it to 20MB there is a point at which it becomes too much