Top Tweets for #streamingdata
Day 206 : Data Science Journey
More Robustness in Model Training and Deployment
Yesterday, we covered the initial setup and basic architecture. Today, we're diving into some key fixes that addressed crashes, compatibility issues, and deployment headaches. These changes made the code more reliable across different environments, especially when working with remote GPUs.
-Pooling Layer Definition :
The original code was crashing because of how the "Pooling Layer" was defined.
Before (Broken):
were trying to call a function directly inside the forward pass (e.g., torch.adaptive_avg_pool2d), which caused import and attribute errors. This approach isn't modular.
After (Fixed):
We moved the pooling layer into the __init__ function as a proper class layer using nn.AdaptiveAvgPool2d. This is the standard, bulletproof PyTorch method; it ensures the layer is initialized correctly and integrated into the model's module hierarchy for better traceability and optimization.
-Changes to Training Script (Data Loading) :
The remote machine had an older version of PyTorch that did not support the "Generator" shortcut we tried to use.
Before (Broken):
Used IterableDataset.from_generator(...). This function did not exist on the remote GPU's PyTorch version, leading to attribute errors during data loading.
After (Fixed):
We wrote a custom class StreamingDataset that manually handles the streaming. This is compatible with all PyTorch versions (even older ones) and allows for efficient loading of large datasets without loading everything into memory at once. It uses an __iter__ method to yield transformed samples on-the-fly, which is great for datasets like CIFAR-10 or custom image folders.
We'll hit the gpu and test the optimizations, till then signing off!!
#Datascience #ML


@streamingdataok y blender??
@streamingdataok No tengo pruebas pero tampoco dudas

@streamingdataok El arquero, puesto solo.
Una defensa que pega.
El medio juega de memoria, como en el programa.
El 9? Se los come crudos como aquellos que cruzaron los andes.
El DT? sabio, con experiencia, metรณdico.
La dupla del respeto esperando el momento.

@streamingdataok Abz.

@streamingdataok Tenemos que ganar, demostrar que PLM es lo mรกs grande que hay, para eso hay que salir con este equipo

Last Seen Hashtags on Sotwe
เนเธเธตเนเธขเธเธเธงเธขเธเนเธณเนเธเธ
Seen from Thailand
bbw hijab
Seen from Qatar
minichat((((((()))))))*
Seen from Sweden
KiNGiNG
Seen from United States
wedgie
Seen from United States
่ๅคงๅ
Seen from Germany
locktobercontest
Seen from Italy
ํํ
Seen from Korea
sexogrupal
Seen from Spain
ไธ้
Seen from United States
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.8M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers









