<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Surprisingly sparse_logs and tensorboard logfiles in Databricks-Workspace in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/surprisingly-sparse-logs-and-tensorboard-logfiles-in-databricks/m-p/137454#M4405</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/125550"&gt;@steve2&lt;/a&gt;&amp;nbsp;,&amp;nbsp; short answer: these look like TensorBoard event files, likely created by a library that briefly initialized a TensorBoard logger or writer during one of your training/serving runs; the sparse_logs folder naming and “manager stage: Model structure initialized” message strongly suggest a SparseML/Neural Magic integration was present at that time, which also commonly wires up a TensorBoard logger. Once that component stopped initializing, the files stopped appearing.&lt;/P&gt;
&lt;H3 class="paragraph"&gt;What the files are&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;The files named &lt;STRONG&gt;events.out.tfevents.…&lt;/STRONG&gt; are TensorBoard event logs written by TensorFlow, PyTorch’s SummaryWriter, PyTorch Lightning, Hugging Face Trainer, or frameworks that integrate a TensorBoard logger. TensorBoard recursively looks for “tfevents” files under a log directory, and the filenames include a timestamp, host, and process ID.&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;On &lt;STRONG&gt;Databricks Runtime ML&lt;/STRONG&gt;, TensorBoard is preinstalled and commonly used to monitor deep learning runs, which makes it easy for frameworks to emit these event files when a writer/logger is initialized.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;In PyTorch, simply creating a &lt;STRONG&gt;SummaryWriter&lt;/STRONG&gt; is enough to create a tiny tfevents file even if no scalars are written; default logdir is “./runs”.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Why you might see them even if you didn’t explicitly enable TensorBoard&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;Some frameworks auto-create a &lt;STRONG&gt;TensorBoard logger&lt;/STRONG&gt; if TensorBoard is available. For example, SparseML integrations show code wiring a TensorBoardLogger into training (e.g., timm integration: &lt;CODE&gt;TensorBoardLogger(log_path=output_dir)&lt;/CODE&gt;), which will generate “events.out.tfevents.*” in that directory even for short runs or initialization-only stages.&lt;/LI&gt;
&lt;LI&gt;The message you saw in &lt;STRONG&gt;sparse_logs&lt;/STRONG&gt;—“manager stage: Model structure initialized”—is consistent with SparseML’s notion of a “ScheduledModifierManager” that applies recipe-driven sparsification steps during model setup/training. SparseML docs and examples reference this Manager as the component that modifies and finalizes model training loops, and those integrations frequently attach loggers (including TensorBoard).&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Why they disappeared after deletion&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;If the component that previously initialized a TensorBoard writer/logger is no longer invoked (e.g., a package removed, a logger disabled, or code path changed), new tfevents files won’t be created. On Databricks, as soon as a run stops using a TB writer, no new files appear.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Likely origin in your setup Based on your note:&lt;/H3&gt;
&lt;DIV class="paragraph"&gt;Folder name &lt;STRONG&gt;tensorboard/&lt;/STRONG&gt; plus tiny 88-byte tfevents files suggests a writer was opened and closed quickly with minimal or no logged data, perhaps on startup/probing of a training loop or serving component.&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Folder name &lt;STRONG&gt;sparse_logs/&lt;/STRONG&gt; and the line “manager stage: Model structure initialized” are characteristic of &lt;STRONG&gt;Neural Magic’s SparseML/DeepSparse&lt;/STRONG&gt; stack, which uses a “Manager” abstraction and commonly emits framework-stage messages and can include a TensorBoard logger alongside Python logging; this would explain both directories appearing around the same times.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;How to confirm the source Try the following quick checks:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;Search your notebooks/jobs for any of these strings: “SummaryWriter”, “TensorBoardLogger”, “report_to='tensorboard'”, “SparseML”, “ScheduledModifierManager”, “deepsparse”. If any appear in code or dependencies used around Aug 30–Sep 2, that’s likely the origin.&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Check installed packages on the cluster image used then: &lt;CODE&gt;pip list | grep -E 'sparseml|deepsparse|tensorboard|pytorch-lightning'&lt;/CODE&gt;. SparseML/DeepSparse presence would support the sparse_logs link.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;If you used &lt;STRONG&gt;PyTorch Lightning&lt;/STRONG&gt; or &lt;STRONG&gt;Hugging Face Trainer&lt;/STRONG&gt;, verify whether TensorBoard logging was implicitly enabled (PL’s TensorBoardLogger, or HF &lt;CODE&gt;TrainingArguments(report_to=["tensorboard"])&lt;/CODE&gt;). Either can generate tfevents files even with brief runs.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Verify that the &lt;STRONG&gt;tensorboard/&lt;/STRONG&gt; directory was set explicitly by your code/config. By default PyTorch writes to “./runs”; a custom path (like “tensorboard/”) is often set by a logger or training script.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Is this anything to worry about?&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;Not typically. These are benign artifacts of a logger being initialized. If you don’t want them: Disable or remove the TensorBoard logger/writer in the relevant code path. Ensure frameworks don’t auto-wire TB loggers (e.g., adjust SparseML or Lightning logger configs).&lt;/LI&gt;
&lt;LI&gt;If you want to use TensorBoard, you can point TensorBoard to that directory and visualize metrics directly in Databricks notebooks or a separate tab.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="paragraph"&gt;Hope this helps, Louis.&lt;/DIV&gt;</description>
    <pubDate>Mon, 03 Nov 2025 20:59:55 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-11-03T20:59:55Z</dc:date>
    <item>
      <title>Surprisingly sparse_logs and tensorboard logfiles in Databricks-Workspace</title>
      <link>https://community.databricks.com/t5/machine-learning/surprisingly-sparse-logs-and-tensorboard-logfiles-in-databricks/m-p/93237#M3720</link>
      <description>&lt;P&gt;Hi, surprisingly we have found 2 new folders with some short logfiles in our Databricks workspace:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ls -lFr sparse_logs/ tensorboard/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;tensorboard/:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 88 Sep&amp;nbsp; 2 11:26 events.out.tfevents.1725275744.0830-063833-n68nsxoq-10-139-64-10.2071.0*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 88 Sep&amp;nbsp; 2 07:26 events.out.tfevents.1725261966.0830-063833-n68nsxoq-10-139-64-10.2411.0*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 88 Sep&amp;nbsp; 2 06:52 events.out.tfevents.1725259952.0830-063833-n68nsxoq-10-139-64-10.4812.0*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 88 Aug 30 07:34 events.out.tfevents.1725000798.0830-063833-n68nsxoq-10-139-64-12.2804.0*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 88 Aug 30 06:30 events.out.tfevents.1724998741.0828-073605-8ilf5p15-10-139-64-11.121675.0*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 88 Aug 30 06:09 events.out.tfevents.1724997141.0828-073605-8ilf5p15-10-139-64-11.117151.0*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 88 Aug 30 05:41 events.out.tfevents.1724995015.0828-073605-8ilf5p15-10-139-64-11.112695.0*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 88 Aug 30 05:08 events.out.tfevents.1724939336.0828-073605-8ilf5p15-10-139-64-11.4013.0*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;sparse_logs/:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 43 Aug 30 07:34 30-08-2024_06.53.17.log*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 43 Aug 30 06:30 30-08-2024_06.19.01.log*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 43 Aug 30 06:09 30-08-2024_05.52.20.log*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 43 Sep&amp;nbsp; 6 08:49 30-08-2024_05.16.55.log*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 43 Sep 25 12:42 29-08-2024_13.48.55.log*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 43 Sep 25 12:47 02-09-2024_11.15.43.log*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;-rwxrwxrwx 1 root root 43 Sep 25 12:44 02-09-2024_07.26.06.log*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;We do some RAG-developement and thereby we serve an embedding-model (bge_large_en_v1_5-1) and llm (llama_2_7b_chat_hf-3, llama3_70b_endpoint), but actually we can't reproduce, what or which process has created these files. After deleteing them they never appeared again. Has anybody an idea, what it was?&lt;BR /&gt;Content sparse-logs was: &lt;FONT face="courier new,courier" size="2"&gt;manager stage: Model structure initialized&lt;/FONT&gt;&lt;BR /&gt;Thanks &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 07:30:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/surprisingly-sparse-logs-and-tensorboard-logfiles-in-databricks/m-p/93237#M3720</guid>
      <dc:creator>steve2</dc:creator>
      <dc:date>2024-10-09T07:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Surprisingly sparse_logs and tensorboard logfiles in Databricks-Workspace</title>
      <link>https://community.databricks.com/t5/machine-learning/surprisingly-sparse-logs-and-tensorboard-logfiles-in-databricks/m-p/137454#M4405</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/125550"&gt;@steve2&lt;/a&gt;&amp;nbsp;,&amp;nbsp; short answer: these look like TensorBoard event files, likely created by a library that briefly initialized a TensorBoard logger or writer during one of your training/serving runs; the sparse_logs folder naming and “manager stage: Model structure initialized” message strongly suggest a SparseML/Neural Magic integration was present at that time, which also commonly wires up a TensorBoard logger. Once that component stopped initializing, the files stopped appearing.&lt;/P&gt;
&lt;H3 class="paragraph"&gt;What the files are&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;The files named &lt;STRONG&gt;events.out.tfevents.…&lt;/STRONG&gt; are TensorBoard event logs written by TensorFlow, PyTorch’s SummaryWriter, PyTorch Lightning, Hugging Face Trainer, or frameworks that integrate a TensorBoard logger. TensorBoard recursively looks for “tfevents” files under a log directory, and the filenames include a timestamp, host, and process ID.&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;On &lt;STRONG&gt;Databricks Runtime ML&lt;/STRONG&gt;, TensorBoard is preinstalled and commonly used to monitor deep learning runs, which makes it easy for frameworks to emit these event files when a writer/logger is initialized.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;In PyTorch, simply creating a &lt;STRONG&gt;SummaryWriter&lt;/STRONG&gt; is enough to create a tiny tfevents file even if no scalars are written; default logdir is “./runs”.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Why you might see them even if you didn’t explicitly enable TensorBoard&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;Some frameworks auto-create a &lt;STRONG&gt;TensorBoard logger&lt;/STRONG&gt; if TensorBoard is available. For example, SparseML integrations show code wiring a TensorBoardLogger into training (e.g., timm integration: &lt;CODE&gt;TensorBoardLogger(log_path=output_dir)&lt;/CODE&gt;), which will generate “events.out.tfevents.*” in that directory even for short runs or initialization-only stages.&lt;/LI&gt;
&lt;LI&gt;The message you saw in &lt;STRONG&gt;sparse_logs&lt;/STRONG&gt;—“manager stage: Model structure initialized”—is consistent with SparseML’s notion of a “ScheduledModifierManager” that applies recipe-driven sparsification steps during model setup/training. SparseML docs and examples reference this Manager as the component that modifies and finalizes model training loops, and those integrations frequently attach loggers (including TensorBoard).&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Why they disappeared after deletion&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;If the component that previously initialized a TensorBoard writer/logger is no longer invoked (e.g., a package removed, a logger disabled, or code path changed), new tfevents files won’t be created. On Databricks, as soon as a run stops using a TB writer, no new files appear.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Likely origin in your setup Based on your note:&lt;/H3&gt;
&lt;DIV class="paragraph"&gt;Folder name &lt;STRONG&gt;tensorboard/&lt;/STRONG&gt; plus tiny 88-byte tfevents files suggests a writer was opened and closed quickly with minimal or no logged data, perhaps on startup/probing of a training loop or serving component.&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Folder name &lt;STRONG&gt;sparse_logs/&lt;/STRONG&gt; and the line “manager stage: Model structure initialized” are characteristic of &lt;STRONG&gt;Neural Magic’s SparseML/DeepSparse&lt;/STRONG&gt; stack, which uses a “Manager” abstraction and commonly emits framework-stage messages and can include a TensorBoard logger alongside Python logging; this would explain both directories appearing around the same times.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;How to confirm the source Try the following quick checks:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;Search your notebooks/jobs for any of these strings: “SummaryWriter”, “TensorBoardLogger”, “report_to='tensorboard'”, “SparseML”, “ScheduledModifierManager”, “deepsparse”. If any appear in code or dependencies used around Aug 30–Sep 2, that’s likely the origin.&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Check installed packages on the cluster image used then: &lt;CODE&gt;pip list | grep -E 'sparseml|deepsparse|tensorboard|pytorch-lightning'&lt;/CODE&gt;. SparseML/DeepSparse presence would support the sparse_logs link.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;If you used &lt;STRONG&gt;PyTorch Lightning&lt;/STRONG&gt; or &lt;STRONG&gt;Hugging Face Trainer&lt;/STRONG&gt;, verify whether TensorBoard logging was implicitly enabled (PL’s TensorBoardLogger, or HF &lt;CODE&gt;TrainingArguments(report_to=["tensorboard"])&lt;/CODE&gt;). Either can generate tfevents files even with brief runs.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Verify that the &lt;STRONG&gt;tensorboard/&lt;/STRONG&gt; directory was set explicitly by your code/config. By default PyTorch writes to “./runs”; a custom path (like “tensorboard/”) is often set by a logger or training script.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Is this anything to worry about?&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;Not typically. These are benign artifacts of a logger being initialized. If you don’t want them: Disable or remove the TensorBoard logger/writer in the relevant code path. Ensure frameworks don’t auto-wire TB loggers (e.g., adjust SparseML or Lightning logger configs).&lt;/LI&gt;
&lt;LI&gt;If you want to use TensorBoard, you can point TensorBoard to that directory and visualize metrics directly in Databricks notebooks or a separate tab.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="paragraph"&gt;Hope this helps, Louis.&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Nov 2025 20:59:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/surprisingly-sparse-logs-and-tensorboard-logfiles-in-databricks/m-p/137454#M4405</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-11-03T20:59:55Z</dc:date>
    </item>
  </channel>
</rss>

