nshtrainer 1.0.0b20__py3-none-any.whl → 1.0.0b21__py3-none-any.whl

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.
@@ -602,6 +602,10 @@ class TrainerConfig(C.Config):
602
602
  :meth:`~lightning.pytorch.core.LightningModule.log_dict`.
603
603
  """
604
604
 
605
+ experimental_barebones_profiler_enabled: bool = False
606
+ """If enabled, will enable the profiler in barebones mode.
607
+ The implementation of this is very hacky and may not work as expected."""
608
+
605
609
  precision: (
606
610
  Literal[
607
611
  "64-true",
@@ -249,8 +249,6 @@ class Trainer(LightningTrainer):
249
249
  if logger_config is not None
250
250
  and (logger := logger_config.create_logger(hparams)) is not None
251
251
  ]
252
- if not hparams.barebones
253
- else None
254
252
  )
255
253
 
256
254
  if hparams.auto_determine_num_nodes:
@@ -280,6 +278,12 @@ class Trainer(LightningTrainer):
280
278
  _update_kwargs(**hparams.lightning_kwargs)
281
279
  _update_kwargs(**kwargs_ctor)
282
280
 
281
+ # Handle barebones mode
282
+ if kwargs.get("barebones"):
283
+ # Remove the logger if it's an empty list
284
+ if (logger := kwargs.get("logger")) is not None and not logger:
285
+ kwargs["logger"] = None
286
+
283
287
  return kwargs
284
288
 
285
289
  if TYPE_CHECKING:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nshtrainer
3
- Version: 1.0.0b20
3
+ Version: 1.0.0b21
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -119,10 +119,10 @@ nshtrainer/profiler/advanced.py,sha256=XrM3FX0ThCv5UwUrrH0l4Ow4LGAtpiBww2N8QAU5N
119
119
  nshtrainer/profiler/pytorch.py,sha256=8K37XvPnCApUpIK8tA2zNMFIaIiTLSoxKQoiyCPBm1Q,2757
120
120
  nshtrainer/profiler/simple.py,sha256=PimjqcU-JuS-8C0ZGHAdwCxgNLij4x0FH6WXsjBQzZs,1005
121
121
  nshtrainer/trainer/__init__.py,sha256=MmoydVS6aYeav7zgDAUHxAQrV_PMQsbnZTCuPnLH9Wk,128
122
- nshtrainer/trainer/_config.py,sha256=I6DBPnkveBTZOL01a8be5VK1YL-k6h3ubEwJi7FxKlk,33912
122
+ nshtrainer/trainer/_config.py,sha256=xd80gDFSj5QvRIZ_2t15PN397akpXX8VUazeivS8kV0,34112
123
123
  nshtrainer/trainer/_runtime_callback.py,sha256=T3epaj1YeIN0R8CS2cg5HNJIB21TyaD_PVNNOPJ6nJs,4200
124
124
  nshtrainer/trainer/signal_connector.py,sha256=YMJf6vTnW0JcnBkuYikm9x_9XscaokrCEzCn4THOGao,10776
125
- nshtrainer/trainer/trainer.py,sha256=LYOjvonQ6_F9thFuOpVKRBUf2V6gQltW8NmbwkiNbXA,19590
125
+ nshtrainer/trainer/trainer.py,sha256=WydBYDuRpGFGkl180Wss6ADIu-fo_kQeDi-0LI64OyM,19770
126
126
  nshtrainer/util/_environment_info.py,sha256=MT8mBe6ZolRfKiwU-les1P-lPNPqXpHQcfADrh_A3uY,24629
127
127
  nshtrainer/util/_useful_types.py,sha256=dwZokFkIe7M5i2GR3nQ9A1lhGw06DMAFfH5atyquqSA,8000
128
128
  nshtrainer/util/bf16.py,sha256=9QhHZCkYSfYpIcxwAMoXyuh2yTSHBzT-EdLQB297jEs,762
@@ -135,6 +135,6 @@ nshtrainer/util/seed.py,sha256=diMV8iwBKN7Xxt5pELmui-gyqyT80_CZzomrWhNss0k,316
135
135
  nshtrainer/util/slurm.py,sha256=HflkP5iI_r4UHMyPjw9R4dD5AHsJUpcfJw5PLvGYBRM,1603
136
136
  nshtrainer/util/typed.py,sha256=Xt5fUU6zwLKSTLUdenovnKK0N8qUq89Kddz2_XeykVQ,164
137
137
  nshtrainer/util/typing_utils.py,sha256=MjY-CUX9R5Tzat-BlFnQjwl1PQ_W2yZQoXhkYHlJ_VA,442
138
- nshtrainer-1.0.0b20.dist-info/METADATA,sha256=Sk2yjQENY7vB9ZzMtUTXJAcPEOmlDX0RaaGQUSQHn28,937
139
- nshtrainer-1.0.0b20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
140
- nshtrainer-1.0.0b20.dist-info/RECORD,,
138
+ nshtrainer-1.0.0b21.dist-info/METADATA,sha256=PwOjPxm1i_uXzfl6QBdjHcNnbwtbbXwgoIFxkBg7PFU,937
139
+ nshtrainer-1.0.0b21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
140
+ nshtrainer-1.0.0b21.dist-info/RECORD,,