fluidflow 0.2.0__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fluidflow
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: FluidFlow: models and training utilities for flow matching and diffusion
5
5
  Author-email: David Ramos <david.ramos.archilla@upm.es>
6
6
  Requires-Python: >=3.8
@@ -10,7 +10,6 @@ from torch.profiler import profile, ProfilerActivity, schedule
10
10
 
11
11
  from accelerate import Accelerator, DataLoaderConfiguration
12
12
  from accelerate import FullyShardedDataParallelPlugin
13
- from torch.distributed.fsdp import ShardingStrategy
14
13
  from torch.distributed.fsdp import MixedPrecisionPolicy
15
14
  from ema_pytorch import EMA
16
15
 
@@ -142,7 +141,7 @@ class Trainer(object):
142
141
  # Separate parameters for Muon (2D) and AdamW (1D)
143
142
  neural_net = diffusion_model.neural_net if hasattr(diffusion_model, "neural_net") else diffusion_model
144
143
  muon_params = neural_net.get_2d_params()
145
- adam_params = neural_net.get_1d_params()
144
+ adam_params = neural_net.get_not_2d_params()
146
145
  self.opt_muon = torch.optim.Muon(muon_params, lr=train_lr, weight_decay=1e-3)
147
146
  self.opt_adam = AdamW(adam_params, lr=train_lr, betas=adam_betas, weight_decay=1e-2, fused=True, eps=eps)
148
147
  self.opts = [self.opt_muon, self.opt_adam]
@@ -442,4 +441,4 @@ class Trainer(object):
442
441
  plt.title('Training Loss Evolution')
443
442
  plt.legend()
444
443
  plt.savefig(self.results_folder / "loss_evolution.png", bbox_inches="tight", pad_inches=0)
445
- plt.close()
444
+ plt.close()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fluidflow
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: FluidFlow: models and training utilities for flow matching and diffusion
5
5
  Author-email: David Ramos <david.ramos.archilla@upm.es>
6
6
  Requires-Python: >=3.8
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  name = "fluidflow"
7
7
  authors = [{ name = "David Ramos", email = "david.ramos.archilla@upm.es" }]
8
- version = "0.2.0"
8
+ version = "0.2.2"
9
9
  description = "FluidFlow: models and training utilities for flow matching and diffusion"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.8"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes