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.
- {fluidflow-0.2.0 → fluidflow-0.2.2}/PKG-INFO +1 -1
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/trainer.py +2 -3
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidflow.egg-info/PKG-INFO +1 -1
- {fluidflow-0.2.0 → fluidflow-0.2.2}/pyproject.toml +1 -1
- {fluidflow-0.2.0 → fluidflow-0.2.2}/LICENSE +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/README.md +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/__init__.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/attention.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/basic_modules.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/dit.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/flow_matching/__init__.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/flow_matching/integrators.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/flow_matching/path.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/flow_matching/transport.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/moe.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidFlow/unet.py +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidflow.egg-info/SOURCES.txt +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidflow.egg-info/dependency_links.txt +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidflow.egg-info/requires.txt +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/fluidflow.egg-info/top_level.txt +0 -0
- {fluidflow-0.2.0 → fluidflow-0.2.2}/setup.cfg +0 -0
|
@@ -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.
|
|
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()
|
|
@@ -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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|