<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Romeo Kienzler on Medium]]></title>
        <description><![CDATA[Stories by Romeo Kienzler on Medium]]></description>
        <link>https://medium.com/@romeokienzler?source=rss-67f6fb646ff8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*b5aKGlafdT1TzsHogpVSzQ.jpeg</url>
            <title>Stories by Romeo Kienzler on Medium</title>
            <link>https://medium.com/@romeokienzler?source=rss-67f6fb646ff8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:54:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@romeokienzler/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[FSDP vs DeepSpeed]]></title>
            <link>https://romeokienzler.medium.com/fsdp-vs-deepspeed-9df47ee5ccbb?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9df47ee5ccbb</guid>
            <category><![CDATA[llm-training]]></category>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[fsdp]]></category>
            <category><![CDATA[deepspeed]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Wed, 19 Nov 2025 06:34:26 GMT</pubDate>
            <atom:updated>2025-12-01T14:58:47.090Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Romeo Kienzler in collaboration with Mark Sosman — IBM Research &amp; ETH Zürich</em></p><p>Training today’s foundation models is not a matter of if you distribute across GPUs — it’s how well your system handles the explosion of parameters, activations, optimizer states, and communication overhead. As model sizes surpass the memory capacity of even the latest GPUs, researchers rely on specialized sharding frameworks to squeeze every last bit of performance out of their clusters.</p><p>Two open-source frameworks dominate large-scale training workflows today:</p><ul><li>Meta’s Fully Sharded Data Parallel (FSDP) — now a first-class PyTorch 2.x citizen</li><li>Microsoft’s DeepSpeed — built around the influential ZeRO optimization family</li></ul><p>Both promise to make multi-billion-parameter training feasible — but they achieve that goal with very different trade-offs.</p><p>In collaboration with IBM Research Zurich and ETH Zürich, we benchmarked both frameworks under realistic multi-node conditions using Vision Transformers. This article presents the results, but more importantly:</p><p><em>it explains why the frameworks behave differently, how they scale, and what that means as we march toward trillion-parameter models.</em></p><h3>Why Scaling Large Models Is Harder Than It Looks</h3><p>Every time you double model size, you don’t just double memory — you double:</p><ul><li>parameters</li><li>gradients</li><li>optimizer states</li><li>activation memory</li><li>bandwidth requirements</li><li>synchronization costs</li></ul><p>In a transformer, activation memory alone can exceed parameter memory. And every additional GPU introduces more communication edges: latency grows, bandwidth saturates, and synchronization penalties accumulate.</p><p>This is why naive data parallelism collapses at scale.</p><p>Frameworks like FSDP and DeepSpeed exist to shard all this state across GPUs, turning a fundamentally memory-bound problem into a communication-bound one. And at scale, how you communicate determines who wins.</p><h3>Experimental Setup</h3><p>The experiments ran on IBM Power System AC922 nodes:</p><ul><li>6× NVIDIA V100 (16GB HBM2) per node</li><li>NVLink (intra-node)</li><li>InfiniBand HDR100 (inter-node)</li><li>PyTorch 2.x with NCCL backend</li></ul><p>We trained two Vision Transformers on Flood-101:</p><ul><li>ViT-Large (~304M params) (<a href="https://huggingface.co/ibm-nasa-geospatial/Prithvi-EO-2.0-300M">https://huggingface.co/ibm-nasa-geospatial/Prithvi-EO-2.0-300M</a>)</li><li>ViT-Huge (~631M params) (<a href="https://huggingface.co/ibm-nasa-geospatial/Prithvi-EO-2.0-600M">https://huggingface.co/ibm-nasa-geospatial/Prithvi-EO-2.0-600M</a>)</li></ul><p>Both FP16 and FP32 were tested.<br>We evaluated four configurations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*iYo9tO6DM79fKc67k_ho5w.png" /></figure><p>Experiments used weak scaling — per-GPU batch size constant as GPU count increased.</p><p>This reflects real-world usage, where throughput must scale without breaking memory limits.</p><h3>Results:</h3><p><em>1. FSDP is simply faster — often significantly faster</em></p><p>Across the board:</p><p>FSDP FULL_SHARD ran up to ~5× faster per iteration than DeepSpeed ZeRO-3.</p><p>Why such a gap?</p><ul><li>FSDP is implemented inside PyTorch, avoiding Python-level indirection</li><li>Runtime graph transformations in PyTorch 2.x reduce context switches</li><li>FSDP uses highly optimized parameter flattening + fused reduce-scatter paths</li><li>DeepSpeed’s Python/CPP hybrid architecture incurs additional orchestration overhead</li></ul><p>In summary: FSDP wastes fewer cycles “being a framework,” and more cycles executing kernels.</p><p><em>2. DeepSpeed scales more smoothly as model size increases</em></p><p>DeepSpeed’s slowdown from ViT-Large → ViT-Huge: ~1.26×<br>FSDP’s slowdown: ~1.35×</p><p>This subtly matters.<br>ZeRO-3’s multi-stage partitioning scales favorably as parameter count grows — the more you shard, the less you replicate.</p><p>This is why organizations training 70B+ models often favor DeepSpeed:<br>performance flattens because larger parameter sets amortize communication better.</p><p>FSDP excels in the mid range (100M–1B).<br>DeepSpeed opens its advantage later (10B+), where memory savings become more important than raw iteration speed.</p><p><em>3. Mixed precision helps both — but DeepSpeed can pay an extra tax</em></p><p>Mixed precision (FP16/BF16):</p><ul><li>reduces memory</li><li>speeds up kernels</li><li>reduces all-reduce payload</li></ul><p>But DeepSpeed ZeRO-3 sometimes exhibits FP32 master weight synchronization overhead, especially when optimizer steps require upcasting.</p><p>FSDP evolved rapidly here:<br>PyTorch 2.x’s native mixed-precision stack integrates with FSDP’s sharding logic, reducing redundant casting and synchronizations.</p><p><em>4. Bigger micro-batches = slower iteration (as expected)</em></p><p>Under weak scaling increasing micro-batch size from 4 to16 equals 25–30% longer iteration times</p><p>This reflects the usual transformer reality:</p><ul><li>activation memory dominates</li><li>larger batches amplify all-reduce volume</li><li>pipeline stalls become more visible</li></ul><p>No framework can solve this problem — but the penalty is smaller with FSDP due to more efficient reduce-scatter patterns.</p><h3>Why FSDP Is Faster (The Architecture Advantage)</h3><p>FSDP benefits from several inherent design choices:</p><p><em>1. Native integration in PyTorch</em></p><p>No wrapping. No second execution engine. FSDP manipulates PyTorch’s autograd graph directly.</p><p><em>2. Fused communication patterns</em></p><p>FSDP leverages:</p><ul><li>reduce-scatter + all-gather fusion</li><li>flat parameter tensors</li><li>bucketed communication</li></ul><p>DeepSpeed performs similar operations but with more cross-layer orchestration overhead.</p><p><em>3. Less runtime bookkeeping</em></p><p>DeepSpeed must track partition ownership, scheduler steps, state transitions, optimizer partition metadata — across Python and C++.</p><p>FSDP stores sharding logic in optimized C++ kernels and autograd hooks.</p><h3>Why DeepSpeed Still Matters (Especially at &gt;10B params)</h3><p>DeepSpeed shines when you scale far beyond what these experiments tested.</p><p><em>1. Mature ZeRO-3 and ZeRO-Infinity</em></p><p>ZeRO-Infinity (elastic sharding + NVMe offloading) makes IO-bound training possible for insane model sizes — useful on low-memory GPUs or huge clusters.</p><p><em>2. Optimized CPU/NVMe offload</em></p><p>DeepSpeed pioneered this. FSDP has caught up, but DeepSpeed remains more feature-rich for hybrid CPU/GPU memory architectures.</p><p><em>3. Industry adoption in LLM training</em></p><p>Many GPT-like systems still rely on DeepSpeed:</p><ul><li>ZeRO-3 + pipeline parallelism</li><li>Activation checkpointing</li><li>Load balancing for huge layers</li></ul><p>Btw: DeepSpeed integrates nicely with Megatron-LM and tensor-parallel libraries.</p><h3>Summary</h3><p><em>If your model is under ~1B parameters:</em></p><p>FSDP is the clear winner.<br>It is faster, simpler, integrates beautifully with PyTorch 2.x, and removes layers of complexity.</p><p><em>If your model targets 10B–200B parameters:</em></p><p>DeepSpeed becomes competitive and often preferable<br>once sharding depth, offloading, and extreme memory savings dominate the equation.</p><p>If you’re planning &gt;200B or trillion-scale:</p><p><em>You will almost certainly use:</em></p><ul><li>DeepSpeed ZeRO-3 or ZeRO-Infinity</li><li>Tensor + pipeline parallelism</li><li>Custom fused kernels</li><li>Model/tensor slicing frameworks</li></ul><p>In other words:<br>Above a certain size, no single framework is enough. You stack them.</p><h3>The Future: Beyond FSDP and DeepSpeed</h3><p>Several trends are reshaping large-model training:</p><p><em>1. GPU interconnect bandwidth is becoming the real bottleneck</em></p><p>On V100/NVLink/IB we already see this.<br>On A100/H100 with NVSwitch it’s better, but:</p><blockquote><em>Training speed increasingly depends on network topology, not GPU FLOPs.</em></blockquote><p><em>2. Compiler-level sharding is coming</em></p><p>PyTorch is moving toward Ahead-of-Time graph partitioning:<br>compiler decides how to shard parameters &amp; activations across devices.</p><p><em>3. Activation recomputation will become universal</em></p><p>Large models cannot fit activations at all. FSDP &amp; DeepSpeed already support this, but compilers will fuse it automatically.</p><p><em>4. Hybrid parallelism is now unavoidable</em></p><p>Everyone at scale uses combinations of:</p><ul><li>tensor parallelism</li><li>pipeline parallelism</li><li>sequence parallelism</li><li>expert parallelism (Mixture of Experts, MoE)</li><li>sharding (FSDP/ZeRO)</li></ul><p>The future is systems that blend these automatically.</p><h3>Final Verdict</h3><p>FSDP wins on raw throughput and integration.<br>DeepSpeed wins on scaling and extreme memory savings.</p><p>Full code and thesis:<br><a href="https://github.com/marksosman/ParallelFrameworkComparison">https://github.com/marksosman/ParallelFrameworkComparison</a></p><p><strong>Tags:</strong><br> #PyTorch #DeepSpeed #FSDP #AIInfrastructure #FoundationModels #DistributedTraining</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9df47ee5ccbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitHub, Not Committees: Why Standards Consortia Are Losing Ground]]></title>
            <link>https://romeokienzler.medium.com/github-not-committees-why-standards-consortia-are-losing-ground-93982a0a1739?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/93982a0a1739</guid>
            <category><![CDATA[standardization]]></category>
            <category><![CDATA[gitops]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 09:50:21 GMT</pubDate>
            <atom:updated>2025-08-04T09:50:21.981Z</atom:updated>
            <content:encoded><![CDATA[<p>For decades, standards consortia like W3C, ISO, IEEE, and 3GPP helped define the technical backbone of modern society — from networking protocols to power sockets. They were the guardians of interoperability, the gatekeepers of “official” specs.</p><p>But in 2025, this model is rapidly eroding. Today’s technology landscape moves too fast, too openly, and too pragmatically for old-school standardization to keep up.</p><p>Let’s be blunt: <strong>in most fast-moving fields, traditional standards consortia are losing relevance</strong> — and the industry doesn’t seem to care.</p><h3>What’s Changed?</h3><p>The root cause is simple: <strong>the velocity of innovation has exploded</strong>, while traditional standard-setting processes haven’t evolved meaningfully.</p><ul><li>Development cycles now span <strong>weeks</strong>, not <strong>years</strong>.</li><li>Innovation happens in <strong>public repos</strong>, not behind closed doors.</li><li>Adoption comes from <strong>users and developers</strong>, not from whitepapers or press releases.</li><li>In most cases, <strong>the implementation has become the standard</strong>. Not the other way around.</li></ul><h3>AI: A Case Study in Code-First Standardization</h3><p>Ask yourself: who standardized the formats and tooling in AI and deep learning?</p><p>Not ISO. Not IEEE. Not any formal consortium.</p><p>Instead:</p><ul><li><strong>PyTorch</strong> is the de facto deep learning framework.</li><li><strong>ONNX</strong> gained traction only after real-world adoption — not because a committee said so.</li><li><strong>Hugging Face Transformers</strong> have become <em>the</em> standard NLP interface across academia and industry.</li></ul><p>There are no AI “standards” in the traditional sense. There are only APIs and model formats that developers actually use.</p><p>And that’s the point.</p><h3>Cloud-Native: The CNCF Model</h3><p>The Cloud Native Computing Foundation (CNCF) shows a hybrid path forward: one that blends <strong>governance with code-first pragmatism</strong>.</p><ul><li>Kubernetes, Prometheus, Envoy, Helm — none were “standardized” in the classical sense.</li><li>They earned their place by <strong>being useful</strong>, <strong>reliable</strong>, and <strong>open</strong>.</li><li>CNCF acts more like an <em>incubator and curator</em> than a gatekeeper.</li></ul><p>This model works because it lets code speak for itself. Adoption and consensus come through contributions, not votes.</p><h3>Developer Tools: React, Vite, Tailwind, etc.</h3><p>In the frontend and tooling ecosystems, the role of standards is almost nonexistent.</p><ul><li><strong>React</strong>, <strong>Vue</strong>, <strong>Svelte</strong>, <strong>Next.js</strong>, <strong>Tailwind</strong> — all became “standards” by mindshare.</li><li>No committees, no consensus processes.</li><li>Just fast iteration, strong communities, and real-world impact.</li></ul><p>Even formal web standards (e.g., WebAssembly) now often trail behind browser implementation. Google or Apple ships a feature, and <em>then</em> the standards process catches up — if it ever does.</p><h3>Why Traditional Consortia Are Losing Ground</h3><p>Here’s the uncomfortable truth:</p><h3>1. They’re too slow.</h3><p>Tech doesn’t wait. Committees do.</p><h3>2. They’re politically constrained.</h3><p>Multiple stakeholders = diluted outcomes. Often the “standard” is the least offensive compromise, not the best solution.</p><h3>3. They don’t build.</h3><p>You can’t standardize what hasn’t been built. And by the time they’re ready to bless something, the industry’s already moved on.</p><h3>4. They lack developer mindshare.</h3><p>Today, developers don’t care about what’s “official.” They care about what’s <em>useful</em>, well-documented, and actively maintained.</p><h3>Where Standards Still Matter</h3><p>Let’s be fair. Traditional standards bodies still have a stronghold in:</p><ul><li><strong>Telecom</strong> (e.g., 3GPP, ETSI)</li><li><strong>Aerospace and automotive</strong> (e.g., AUTOSAR, DO-178)</li><li><strong>Finance and healthcare</strong> (e.g., ISO 20022, HL7/FHIR)</li></ul><p>In regulated or safety-critical environments, interoperability, reliability, and compliance are non-negotiable. Standards here serve as shared contracts with legal and economic weight.</p><p>But even in these sectors, there’s growing pressure to <strong>open up</strong>, <strong>move faster</strong>, and <strong>integrate open-source more directly</strong>.</p><h3>The Future of Standardization: Code First</h3><p>The next era of “standards” will be radically different:</p><ul><li><strong>Reference implementations &gt; PDF specs</strong></li><li><strong>GitHub issues &gt; committee meetings</strong></li><li><strong>Ecosystem traction &gt; formal endorsement</strong></li></ul><p>If standards consortia want to remain relevant, they’ll need to <strong>evolve from gatekeepers to enablers</strong>.</p><p>That means:</p><ul><li>Supporting open ecosystems</li><li>Embracing developer workflows</li><li>Letting working code lead the way</li></ul><p>Until then, we’ll continue to standardize the modern world one pull request at a time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93982a0a1739" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Reasons to Use pip Over conda]]></title>
            <link>https://medium.com/ibm-data-ai/10-reasons-to-use-pip-over-conda-22b532285481?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/22b532285481</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[pip]]></category>
            <category><![CDATA[conda]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Tue, 27 May 2025 10:39:51 GMT</pubDate>
            <atom:updated>2025-05-27T10:47:44.865Z</atom:updated>
            <content:encoded><![CDATA[<p>When it comes to Python package management, the pip vs conda debate is as old as Anaconda itself. While conda has its place—especially in data science contexts—many developers and researchers in 2025 are leaning increasingly toward pip. Why? Here&#39;s a breakdown of 10 reasons you should consider using pip over conda in most scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*Jg73s_ya4ypJRBph8jWXuw.png" /></figure><h3>1. It’s the Default Tool</h3><p>pip is the official package installer for Python. It comes bundled with Python (since 3.4), works out of the box, and is maintained by the Python Packaging Authority (PyPA). No need to install anything extra. If you&#39;re using Python, you&#39;re already using pip.</p><h3>2. Wider Ecosystem Coverage</h3><p>While conda covers a curated subset of packages (primarily in the scientific stack), pip has access to the entire <a href="https://pypi.org/">Python Package Index (PyPI)</a>—over 450,000 packages and growing. If it’s on PyPI, you can install it with pip. Period.</p><h3>3. Better Compatibility with Virtual Environments</h3><p>Python’s native venv and tools like virtualenv, poetry, or pipenv integrate tightly with pip. You get reproducible, isolated environments without dragging in the massive conda machinery. This leads to leaner, faster, and more portable dev setups.</p><h3>4. No Anaconda Lock-In</h3><p>Using pip frees you from the Anaconda ecosystem. You don’t need to install a 3+ GB distribution to get started. You won’t be bound to Anaconda’s channel-based package availability, and you avoid issues with conda&#39;s environment solver getting stuck or being overly conservative.</p><h3>5. Faster Installations (With Wheels)</h3><p>The Python packaging ecosystem has matured significantly. Most major packages (like NumPy, PyTorch, etc.) now ship platform-specific wheels. This means that pip install torch no longer builds from source; it just works, quickly.</p><h3>6. Easier CI/CD Integration</h3><p>Modern CI/CD tools (like GitHub Actions, GitLab CI, CircleCI) natively expect pip install -r requirements.txt. Integrating conda requires extra setup and isn’t always supported cleanly. If you&#39;re deploying code in production pipelines, pip is almost always simpler and more predictable.</p><h3>7. Better Support for Binary Extensions via PEP 517/518</h3><p>Thanks to the adoption of PEP 517 and 518, pip can now cleanly install packages with native extensions using build backends like maturin (Rust), setuptools, or scikit-build-core (CMake). conda is playing catch-up in this area.</p><h3>8. Rich Tooling Around pip</h3><p>The Python community has built a wide range of tools around pip:</p><p>pip-tools for locking, pipdeptree for dependency visualization, poetry and hatch for managing modern projects, uv for ultra-fast dependency resolution. This tooling ecosystem far exceeds what’s available in the conda world.</p><h3>9. Fewer Surprises in Cross-Platform Development</h3><p>With pip, you get consistent behavior across Linux, Windows, and macOS. conda environments, on the other hand, often behave differently depending on platform, especially when mixing in pip installs. This can cause major headaches in collaborative teams.</p><h3>10. Conda Is Just Slower — In Every Way</h3><p>Even in 2025, conda can be painfully slow—especially when resolving environments. Want to create a fresh environment with the latest packages? pip can do it in seconds. conda might take minutes and still fail because of conflicts.</p><h3>When Should You Still Use conda?</h3><p>To be fair, conda still has one big use case: scientific computing environments with complex C/Fortran dependencies—like setting up an environment with numpy, pandas, scikit-learn, and rdkit, all compiled against MKL or OpenBLAS. But that niche is shrinking fast as prebuilt wheels and PEPs 517/518 remove that advantage.</p><h3>Final Thought</h3><p>Unless you have a concrete reason to use conda, start with pip. It&#39;s leaner, faster, more integrated, and much closer to the beating heart of the Python ecosystem.</p><p>If for your needs, pip isn’t just good enough—it’s the best tool for most Python projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22b532285481" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-data-ai/10-reasons-to-use-pip-over-conda-22b532285481">10 Reasons to Use pip Over conda</a> was originally published in <a href="https://medium.com/ibm-data-ai">IBM Data Science in Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wanna Start Your Own Open Source Project? Don’t Do It!]]></title>
            <link>https://medium.com/ibm-data-ai/wanna-start-your-own-open-source-project-dont-do-it-0e275d054ab6?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e275d054ab6</guid>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[torchgeo]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[pytorch]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Tue, 27 May 2025 07:43:07 GMT</pubDate>
            <atom:updated>2025-05-27T07:43:07.525Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By Romeokienzler, TerraTorch Development Lead at IBM Research</em></p><p>Open source is one of the most powerful engines of innovation the tech world has ever seen. The culture of transparency, collaboration, and meritocracy has brought us everything from Linux to PyTorch to Kubernetes. But as someone deeply embedded in this space — I lead the development of <a href="https://github.com/IBM/terratorch">TerraTorch</a> at IBM Research — I’m here to tell you something counterintuitive:</p><blockquote><strong><em>If you’re thinking about starting your own open source project… Don’t.</em></strong></blockquote><p>At least, not yet.</p><h3>Why You Shouldn’t Start Your Own Project (Right Away)</h3><p>Here’s the problem: there are too many open source projects trying to solve the <em>same</em> problems.</p><p>Do a quick GitHub search for “semantic segmentation” or “data pipeline framework” and you’ll find thousands of repositories, many of which are stale, half-baked, or forked versions of the same five ideas. This fragmentation doesn’t help the community — it dilutes it.</p><p>Instead of uniting our forces to build better, more robust software, we end up reinventing the wheel… again and again. The result? Dozens of abandoned codebases, frustrated developers, and missed opportunities for true collaboration.</p><h3>Upstream is Where the Real Action Is</h3><p>At TerraTorch, we often get users asking: <em>“Can I fork your code and build my own version?”</em> Sure, it’s technically allowed — that’s what open source licensing is for — but is it the <em>best</em> idea? Absolutely not.</p><p>If you want to build something meaningful and sustainable, <strong>contribute upstream.</strong></p><p>It’s far more impactful to improve a mature project than to create a fragmented clone. Mature projects have:</p><ul><li><strong>Established infrastructure:</strong> CI/CD pipelines, testing frameworks, documentation, release schedules.</li><li><strong>Active communities:</strong> Feedback loops, issue triaging, real-world use cases.</li><li><strong>Governance:</strong> Clear paths for feature discussion, review, and merge.</li></ul><p>When you contribute upstream, your code gets battle-tested, peer-reviewed, and widely used. And more importantly — <strong>you become part of a community.</strong></p><h3>Contributing Isn’t Just Coding</h3><p>Some developers hesitate to contribute because they think they need to write massive PRs to be useful. Wrong.</p><ul><li>Fixing a typo in the docs? Check!</li><li>Adding a unit test? Check!</li><li>Reporting a reproducible bug? Check!</li><li>Helping triage issues or improve onboarding? Check!</li></ul><p>These contributions are what keep open source alive.</p><h3>A Real-World Example: TerraTorch</h3><p>When we started TerraTorch, we didn’t build it from scratch. We stood on the shoulders of giants — PyTorch, TorchGeo, rasterio, and others. And whenever possible, we contribute back to those upstream projects.</p><p>Why? Because that’s how the ecosystem stays healthy. If everyone just clones, customizes, and bails, the core projects rot. But when we all funnel our improvements upstream, everyone benefits.</p><h3>When Should You Start a New Project?</h3><p>I’m not saying <strong>never</strong> start something new. Do it if:</p><ul><li>You’ve identified a fundamentally <em>new</em> problem space.</li><li>The existing projects are completely incompatible with your goals or values.</li><li>You’ve exhausted all attempts to extend/contribute upstream and hit a hard wall.</li></ul><p>But if you’re just tweaking a few things, slapping on a new UI, or changing some hyperparameters — that’s not innovation. That’s fragmentation.</p><h3>The Hard Truth</h3><p>Open source isn’t about being a hero or having your name on a cool repo. It’s about building <em>together</em>. The world doesn’t need 50 clones of the same ML pipeline tool. It needs <em>one</em> that’s amazing — and a community committed to making it better.</p><p>So next time you get that itch to start something from scratch, ask yourself:</p><blockquote><strong><em>What if I put this same energy into making an existing project better?</em></strong></blockquote><p>You’ll be surprised how far that mindset takes you.<br><strong>Romeokienzler</strong><br>TerraTorch Development Lead @ IBM Research<br><a href="https://github.com/romeokienzler">GitHub</a> | <a href="https://linkedin.com/in/romeokienzler">LinkedIn</a> | <a href="https://twitter.com/romeokienzler">Twitter/X</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e275d054ab6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-data-ai/wanna-start-your-own-open-source-project-dont-do-it-0e275d054ab6">Wanna Start Your Own Open Source Project? Don’t Do It!</a> was originally published in <a href="https://medium.com/ibm-data-ai">IBM Data Science in Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Grid Computing Simplified with the LFAI CLAIMED framework]]></title>
            <link>https://medium.com/ibm-data-ai/grid-computing-simplified-computing-simplified-846bd497eb99?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/846bd497eb99</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[parallel-computing]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Mon, 16 Dec 2024 19:25:11 GMT</pubDate>
            <atom:updated>2024-12-16T21:01:46.530Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>DISCLAIMER: Parts of this blog have been written with the help of a LLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AS6_CVPswM3pGeY7Ujg-Fg.png" /><figcaption>CLAIMED logo</figcaption></figure><p>Grid computing can feel complex, but what if you only needed to focus on implementing a single function? With the <strong>CLAIMED grid wrapper</strong>, it’s that simple. CLAIMED takes care of all the complexity of orchestration, containerization, and task coordination so you can focus on writing just the <strong>grid_process</strong> function. Let&#39;s explore how it works.</p><h3>The grid_process Function</h3><p>At the heart of every grid operator is the grid_process function. This is the only piece you need to implement. This function defines the logic for the computation your grid operator performs on each task or input. CLAIMED wraps this logic with auto-generated coordination and execution code, so it can run seamlessly across various grid environments.</p><p>Example of a simple grid_process implementation:</p><p>The task_input parameter can be of arbitrary type, such as a task ID, a set of parameters, or a dictionary.</p><p>Here an example of such a parallel function:</p><pre>def grid_process(task_input):<br>    file_name_to_work_on = task_input.get(&#39;file_name_to_work_on&#39;)<br>    return complex_c_library.compute(file_name_to_work_on)</pre><p>Once this function is ready, CLAIMED takes over, creating operators that can run anywhere. The runtime environment this code runs in can be defined by providing the necessary library references and CLAIMED C3 automatically build the needed environment/docker container containing all the necessary dependencies this code needs.</p><h3>CLAIMED C3: The Component Compiler</h3><p>The CLAIMED Component Compiler (<strong>C3</strong>) automates the creation of <strong>grid operators</strong>. It supports both containerized and containerless execution, ensuring maximum flexibility. These grid operators can run in hybrid environments, including:</p><ul><li><strong>Job Schedulers</strong>: SLURM, PBS, LSF</li><li><strong>Kubernetes Ecosystem</strong>: Kubernetes, Kubernetes Jobs, Kubeflow</li><li><strong>Workflow Engines</strong>: Airflow, Argo, Tekton, CWL</li><li><strong>Containers</strong>: Docker, Podman</li><li><strong>Local &amp; HPC Environments</strong>: Your laptop, supercomputers</li></ul><p>Whether you’re testing locally or deploying at scale, CLAIMED C3 ensures your grid operators are ready to execute in any environment.</p><h3>Task Coordination Made Easy</h3><p>Task coordination in CLAIMED is handled via shared storage or databases:</p><ul><li><strong>Shared Storage</strong>: NFS, Cloud Object Storage (COS)</li><li><strong>Databases</strong>: SQLite (ideal for testing), PostgreSQL, and more</li></ul><p>Individual tasks are tracked and state automatically changes from QUEUED, PROCESSING, FAILED, PROCESSED.</p><p>CLAIMED automatically integrates the required coordination logic into your grid operators, meaning <strong>you don’t have to write any coordination code</strong>. Simply focus on your computation logic, as you would write non-parallel code and the rest is handled for you.</p><h3>Auto-Generated Coordination Code</h3><p>When you compile your grid operator with CLAIMED C3, all the necessary code for task coordination, resource management, and execution is auto-generated. Whether you’re processing tasks on your laptop, on a Kubernetes cluster, or across a supercomputer, the operators are fully equipped to coordinate efficiently.</p><h3>Key Benefits:</h3><ul><li><strong>Simplified Development</strong>: Just implement grid_process.</li><li><strong>Seamless Execution</strong>: Run anywhere, from local to hybrid grids.</li><li><strong>Built-in Coordination</strong>: No need to write orchestration code.</li><li><strong>No installation</strong>: CLAIMED operators ship all necessary code and run on stock execution platforms</li></ul><h3>Conclusion</h3><p>CLAIMED simplifies grid computing by letting you focus on your logic and leaving everything else to the component compiler. By implementing just the grid_process function, you gain access to powerful, auto-generated grid operators capable of running in virtually any environment. Whether you&#39;re experimenting locally or deploying on a massive grid, CLAIMED makes it effortless.</p><p>Get started on <a href="https://www.youtube.com/watch?v=FfacLcYAEBw&amp;pp=ygUWcm9tZW8ga2llbnpsZXIgY2xhaW1lZA%3D%3D">Youtube</a>, using the <a href="https://github.com/claimed-framework/c3/blob/main/GettingStarted.md#4-create-operators">official documentation</a>, or look at an <a href="https://github.com/claimed-framework/c3/blob/main/examples/operator_example.py">example</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=846bd497eb99" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-data-ai/grid-computing-simplified-computing-simplified-846bd497eb99">Grid Computing Simplified with the LFAI CLAIMED framework</a> was originally published in <a href="https://medium.com/ibm-data-ai">IBM Data Science in Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Generic Grid Computing pattern transforms any sequential workflow step into a transient grid…]]></title>
            <link>https://romeokienzler.medium.com/the-generic-grid-computing-pattern-transforms-any-sequential-workflow-step-into-a-transient-grid-c7f3ca7459c8?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7f3ca7459c8</guid>
            <category><![CDATA[patterns]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[kubeflow]]></category>
            <category><![CDATA[kubeflow-pipelines]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 13:26:20 GMT</pubDate>
            <atom:updated>2023-07-17T13:26:20.603Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Generic Grid Computing pattern transforms any sequential workflow step into a transient grid computing step</h3><h3>The Generic Grid Computing pattern transforms any sequential workflow step into a transient grid computing step</h3><p>If you are confused, please let me explain. In workflow management systems (like Kubeflow or Airflow) you might end up with the requirement to process data at petabyte scale (like we do at IBM Research). If you pass the whole dataset between the intermediate workflow steps you will get regular storage issues for the transient storage between workflow steps.</p><p>Also, when workflows running for days and weeks, if they fail, they should be automatically recoverable.</p><p>Therefore we came up with the Generic Grid Computing pattern, which wraps workflow steps and allows for a per-file processing scheme.</p><p>If you think that sounds like the map phase of a map-reduce job you are absolutely right. Therefore, this pattern only works if individual files are independent in the processing, but this is very often the case. Therefore, each file can become a shard.</p><p>Optionally we could at micro-batching, but let’s go for the simple solution first:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8seFaCUyRff2D8HUGF0huw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7f3ca7459c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a serverless JupyterLab IDE experience on IBM Cloud CodeEngine using KNative]]></title>
            <link>https://medium.com/ibm-data-ai/how-to-create-a-serverless-jupyterlab-ide-experience-on-ibm-cloud-codeengine-using-knative-9a84a6f01e66?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a84a6f01e66</guid>
            <category><![CDATA[knative]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[elyra]]></category>
            <category><![CDATA[jupyterlab]]></category>
            <category><![CDATA[cloud-ide]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Thu, 28 Jul 2022 19:51:43 GMT</pubDate>
            <atom:updated>2022-08-08T17:01:26.929Z</atom:updated>
            <content:encoded><![CDATA[<p>Having your IDE on your laptop has a couple of advantages. You can use your favorite tools on your Desktop. One example is <a href="https://meldmerge.org/">meld</a> which only runs on Linux. It is a visual diff tool which I’m using when I’ve totally screwed up local git repository. You can manage multiply environments with venv or conda.</p><p>But local development also has disadvantages. Mainly setting up an environment for a particular task (e.g. testing a pull request before merging) can become tedious. In data science you often have long running task which would benefit from to one or other additional resource like CPU cores, RAM, GPUs or storage.</p><p>Things like <a href="https://mybinder.org/">binder</a> or <a href="http://colab.research.google.com/">colab</a> have really taken off but both can’t go beyond whats in the free tier. In addition, the latter isn’t really portable, so definitely not hybrid cloud ready.</p><p>Therefore I’ve created a container images for JupyterLab and <a href="http://elyra.readthedocs.io/">Elyra</a> which can be simply deployed to a serverless cloud environment like IBM Cloud Code Engine, RedHat OpenShift Serverless or similar which is basically KNative as a Service.</p><p>As CodeEngine has a generous, never expiring free tier let’s just use it since we have it :)</p><p>CodeEngine, among other services, encapsulates KNative which allows for continuously running Kubernetes Pods or Jobs to be published. A job is a simple container image running from start to end. A Pod on KNative must provide a HTTP endpoint.</p><p>In addition, on CodeEngine and other “function” as a Service offerings only ephemeral storage is available, in other words, when the container restarts (which can happen any time in a serverless enviroment) your local file system is gone.</p><p>To prevent this, I’m using <a href="https://rclone.org/">rclone</a> to</p><p>a) pull all data from S3 on container start</p><p>b) continuously sync data to S3 while the container is running</p><p>That way I can create a fully serverless, scale to zero JupyterLab experience on IBM Cloud, RedHat OpenShift Serverless and anything supporting KNative as a Service.</p><p>Let’s get started:</p><p>First we need to create a bucked in S3 Cloud Object Storage (COS) for our persistent data.</p><ul><li><a href="https://cloud.ibm.com/objectstorage/create">Create</a> a new COS service (feel free to use the all time free tier with 25GB of free storage)</li><li>Create a regional bucket in the “Smart Tier” in a region close to you. I’ve named mine “remotedev”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TEzFVj4elLiX6ZQVa0YyQ.png" /><figcaption>Create a regional bucket in the “Smart Tier”</figcaption></figure><ul><li>Find out the endpoint for your regional bucket location</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzVViSFxAu9ZneWH_kMQ2Q.png" /><figcaption>Find out the end point for your region</figcaption></figure><ul><li>Create a credential — make sure “Include HMAC credentials” is enabled</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N3VJRboc8iNcMfforIeoBg.png" /></figure><ul><li>Note down access_key_idand secret_access_key</li></ul><p>Now you should have bucket name, endpoint url, access_key_id and secret_access_key of your bucket, that’s all you need.</p><p>No we can start our JupyterLab in KNative on CodeEngine</p><ul><li>Go to <a href="https://cloud.ibm.com/codeengine/overview">CodeEngine</a> and create a project</li><li>In the project click on Applications-&gt;Create</li><li>Put romeokienzler/elyra-ce:0.8 as image and 8888 as listening port</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ShW7EFMc0wZ1LFohaK8uA.png" /></figure><ul><li>In “Runtime settings” change “Max number of instances” to “1”</li><li>Please add the following environment variables (plus BUCKET and PROJECT) (Hint: With the PROJECT variable you can have multiple scale-to-zero cloud IDEs available for different projects)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSHLOIcHJc5MetmkT4zkYw.png" /><figcaption>Only six variables need to be set</figcaption></figure><ul><li>Click on “Create”</li></ul><p>After some time you should see your application entering status “Ready”. Using the “Test application” button you can obtain and open the application URL. This is the URL if your serverless cloud IDE!</p><p>The cool thing: Since per default CodeEngine scales to zero. This way you wont consume any resources besides the data on S3 COS, where 25GB are for free anyway. After some time you’ve hit the URL a login screen appears. Please put the password you’ve used for JL_PASSWORD above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUZKpcmCZCNQhbwYolWCvg.png" /><figcaption>your personal login screen</figcaption></figure><p>And here you are, with your personal instance of your serverless JupyterLab/Elyra cloud IDE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*wtLiX-Jit62mZS5S7s1AnQ.png" /><figcaption>JupyterLab/Elyra running serverless in CodeEngine in IBM Cloud</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a84a6f01e66" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-data-ai/how-to-create-a-serverless-jupyterlab-ide-experience-on-ibm-cloud-codeengine-using-knative-9a84a6f01e66">How to create a serverless JupyterLab IDE experience on IBM Cloud CodeEngine using KNative</a> was originally published in <a href="https://medium.com/ibm-data-ai">IBM Data Science in Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create component oriented data science pipelines using CLAIMED, Elyra, KubeFlow Pipelines, MLX and…]]></title>
            <link>https://medium.com/ibm-data-ai/create-component-oriented-data-science-pipelines-using-claimed-elyra-kubeflow-pipelines-mlx-and-f17eab24b91c?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f17eab24b91c</guid>
            <category><![CDATA[kubeflow-pipelines]]></category>
            <category><![CDATA[kubeflow]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[elyra]]></category>
            <category><![CDATA[claimed]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Thu, 26 Aug 2021 18:21:23 GMT</pubDate>
            <atom:updated>2021-09-08T21:24:48.845Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Create component oriented data science pipelines using CLAIMED, Elyra, KubeFlow Pipelines, MLX and Kubernetes</strong></h3><p>Join us for a paradigm shift in developing data science applications.</p><p><a href="https://www.youtube.com/watch?v=H8WskMEUI74">https://www.youtube.com/watch?v=H8WskMEUI74</a></p><p>Links:</p><ul><li><a href="https://elyra.readthedocs.io/">Elyra Documentation - Elyra 3.1.0.dev0 documentation</a></li><li><a href="https://github.com/elyra-ai/component-library">GitHub - elyra-ai/component-library: Experimental Notebook and Script components ready to be dropped in an Elyra pipeline</a></li><li><a href="https://kubeflow.org/">Kubeflow</a></li></ul><p>A lot of state of the art data science applications are developed using jupyter notebooks by sequentially copy and pasting code blocks from the internet.</p><p>Then, usually, they either land up in the huge pot of projects which never make it into production (for reasons we will cover in this document) or they are “hardened” by moving the code from jupyter to scripts which then are containerized (e.g. using Docker) and run in a micro services architecture (e.g. on Kubernetes or virtual machines).</p><p>Assets not making it into production are dismissed mostly because of a missing path to production. As mentioned above, jupyter notebooks need to be hardened to be considered safe for production. This disconnects the original notebook with the hardened (e.g. containerized) version which aggravates maintenance.</p><p>As data science applications are a sequence of code snippets anyway, what would happen if those snippets are hardened and containerized before and their sequential execution orchestrated by a workflow engine?</p><p>Welcome to CLAIMED — the component library for AI, Machine Learning, ETL and Data Science.</p><p>CLAIMED is a library of jupyter notebooks encapsulating hardened code for granular tasks. CLAIMED introduces a new, higher level of abstraction. It moves up from function calls to components.</p><p>Let’s consider a small example task of running a SQL statement against a PostgreSQL database and storing the result to a CSV file. If a data scientist doesn’t know this code by heart, most probably he would consult a search engine and search for something like “python connect postgresql” and “store postgresql resultset to csv”. After a while he would have identified the relevant code snippets (e.g. from stackoverflow.com), pasted them to a jupyter notebook and after some adjustments the code should be working in about 5–10 minutes.</p><p>Let’s consider the same task using CLAIMED. It boils down to the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ce77ladrrmBx3nSjWrUfwg.png" /><figcaption>Create Pipelines in Elyra</figcaption></figure><p>What you are seeing here is the Elyra Pipeline Editor where two notebooks have been dragged and dropped to the canvas. The first one reads data from PostgreSQL, the second writes it to Cloud Object Store. Each notebook is a so called “component” for CLAIMED. You can see that eight parameters have to be specified. That’s all. No searching, no coding, no bug fixing. Elyra — on the fly — transpiles to either AirFlow or KubeFlow pipelines out of the box. That way, reproducible and scalability are built-in.</p><p>Elyra is a set of AI centric extensions for jupyter lab but the pipeline editor is also supported on VSCode.</p><p>Now imagine, for some reason, you don’t wanna use Elyra and visual editing. No problem, since all CLAIMED components are notebooks, you can just call them — they are designed to accept configuration parameters as command line arguments:</p><blockquote>ipython ./claimed/component-library/input/input-postgresql.ipynb output_data_csv=”data.csv” host=”16e2db05–7f52–4eff-b9e6-a10b27b2a708.c13p25pf03djhc8of4jg.databases.appdomain.cloud” database=”ibmclouddb” user=”ibm_cloud_ca376820_b7b6_49a6_ae14_4fad47b544ad” password=”19559511787fe054cb260489708424c244ea4085&quot; port=”32474&quot; sql=”select * from public.test” data_dir=”/tmp/data/”</blockquote><p>As all meta information is self-contained in the notebook using python syntax, every data scientist can read, understand and modify the notebooks / components. In addition, the meta data can be used to transpile a notebook into a component for a workflow engine like KubeFlow, AirFlow, Galaxy, Apache Nifi or similar. This way, with python skills only, such components can be created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nV9C4HAiUxUB9uf4ZQo3pQ.png" /><figcaption>Running a CLAIMED pipeline in KubeFlow</figcaption></figure><p>The screenshot above shows the job launcher UI of Kubeflow. You can clearly see that the parameters to the component match the one from the jupyter notebook. And yes, no manual coding was necessary to turn the notebook into a KubeFlow Pipeline component. A tool called C3 (CLAIMED Component Compiler) does the job for you.</p><p>So how does such a notebook look like? First of all, it is an ordinary notebook, no cell magics or cell metadata is required to keep things simple and understandable by data scientists. It is based on design by contract principles — so let’s first have a look at a notebook diagram first:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*5RdRzhwIhGRwLjV_FHB9nw.png" /><figcaption>Schema of a CLAIMED component notebook design by contract</figcaption></figure><p>As we can see, there are a couple of cells at the beginning of the notebook with a specific purpose. So the order and the actual position of the cell matters. The cell positions, order and specific purpose are as follows:</p><p><strong>Cell 1</strong></p><p>Title / name of the component (e.g. input-postgresql) (as markdown cell type)</p><p><strong>Cell 2</strong></p><p>Description of the component (as markdown cell type)</p><p><strong>Cell 3</strong></p><p>Requirements of the component — this cell need to contain code for installing requirements via pip or conda</p><p><strong>Cell 4</strong></p><p>All imports needed for execution of this notebook</p><p><strong>Cell 5</strong></p><p>Input / Output parameters — this cell type is the most complex as it defines all variables the component needs during runtime. So in case of the PostgreSQL connector the database host, user name and password for examples</p><p><strong>Cell 6+</strong></p><p>All subsequent cells are freely usable by the creator of the component. The only thing one have to remember if the component is not a Sink (last processing step in a pipeline) it needs to pass on data to the next component. This is called the “components output”. The name and type of the component’s output is also defined in Cell 4 (by having it’s environment variable name start with “output_”), so the only thing which needs to be done is to write the result to a file as specified in Cell 4 after all processing is done.</p><p>To further illustrate this concept let’s have a look at a real example notebook component of CLAIMED — again we are using the PostgreSQL connector component:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*x037pfPftNKS8mO9e9yetA.png" /><figcaption>Nature of a CLAIMED component notebook</figcaption></figure><p>Let’s dive into the different cells again:</p><p><strong>Cell 1</strong></p><p>Here you can see the title of the component: “Input PostgreSQL” in markdown.</p><p><strong>Cell 2</strong></p><p>Here you can see the description of the component in markdown.</p><p><strong>Cell 3</strong></p><p>The ‘!’ symbol turns this command into a shell command which installs the requirements of this notebook using “pip”</p><p><strong>Cell 4</strong></p><p>All required imports</p><p><strong>Cell 5</strong></p><p>This is the most important cell as it exposes the interface to the component by defining it’s parameters. This configuration looks like pure python code and it actually is. Using design by contract the following rules are used to define different aspects of the configuration.</p><p>Let’s consider the following block:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*1Ru3cr9GClmZLUSr7pjriw.png" /><figcaption>A simple configuration parameter definition in pure python</figcaption></figure><p>This code already contains a lot of information. The comment line “# hostname of database server” is used as description / help text. As the environment variable “host” is read we know that the component expects “host” of type “String” as configuration parameter. This is a mandatory parameter, now we see how an optional parameter is configured:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*_h2bmBu-o0VGX7CdZeYWtw.png" /><figcaption>How an optional Integer parameter is defined</figcaption></figure><p>Again, the description and parameter name are extracted as before. As the whole expression gets cast to “int” we know that parameter “port” is of type “Integer”. Finally, as “5432” is given as default value (in case environment variable “port” isn’t set) this specifies an optional parameter.</p><p>The following shows how an output parameter is defined by having the environment variable name starting with “output_” — that’s all:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*XOo4b-GfZkk6d1hBzoSgZw.png" /><figcaption>By prefixing “output_” result variables are defined</figcaption></figure><p>Let’s finally have a look at C3 (CLAIMED Component Compiler) — which takes such notebooks and turns them into runtime specific components. Currently, only KubeFlow is supported, but support for Apache Airflow, Apache Nifi, NodeRED and Galaxy are on the roadmap already.</p><p>The following yaml file is a so called KubeFlow Pipeline component specification which has been created by C3 from the notebook above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5ZNohAl0bRz97UyMMBXSg.png" /><figcaption>An exemplary component definition created automatically by C3 (KubeFlow)</figcaption></figure><p>Understanding this yaml file is beyond the scope of this article but you can clearly see the power of the concept of CLAIMED and the technology it’s relying on. This way, scalable, robust and reproducible data science applications can be build using the tools data scientists like in a way they are ready for production at any time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f17eab24b91c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-data-ai/create-component-oriented-data-science-pipelines-using-claimed-elyra-kubeflow-pipelines-mlx-and-f17eab24b91c">Create component oriented data science pipelines using CLAIMED, Elyra, KubeFlow Pipelines, MLX and…</a> was originally published in <a href="https://medium.com/ibm-data-ai">IBM Data Science in Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What do Paleo, Keto and the Starch Solution have in common?]]></title>
            <link>https://romeokienzler.medium.com/what-do-paleo-keto-and-the-starch-solution-have-in-common-6a5b4b1df3cb?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a5b4b1df3cb</guid>
            <category><![CDATA[ketogenic-diet]]></category>
            <category><![CDATA[paleo]]></category>
            <category><![CDATA[keto]]></category>
            <category><![CDATA[metabolic-syndrome]]></category>
            <category><![CDATA[starch]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Thu, 10 Jun 2021 08:48:18 GMT</pubDate>
            <atom:updated>2021-06-10T08:48:18.647Z</atom:updated>
            <content:encoded><![CDATA[<p>tl;dr: They all work and they work because they eliminate table sugar</p><p>I wanted to loos weight and improve my health. Therefore I dove into different diets. Paleo I never tried since I’m vegan. So I was on Keto and Intermittent Fasting for quite some time, lost 7kg and experienced strong cognitive improvements.</p><p>Then I just got tired of the limitations of food choices and therefore switched to a lightweight version of the “Starch Solution”.</p><p>Although less effective for weight loss I still manage to loose weight on that diet (if I wish).</p><p>So why is this all working at all?</p><p>Just because all those diets eliminate table sugar (and of course high fructose corn sirup — which is worse).</p><p>So table sugar is 50% glucose and 50% fructose and it turns out that fructose (unless you consume it as intact fruits with a lot of fiber) is as poisonous as alcohol (ethanol).</p><p>This is because only the liver can metabolize fructose where nearly every cell in your body can metabolize glucose. The stress on the liver is actually what makes you fat (explore on non alcoholic fatty liver disease, metabolic syndrome).</p><p>By the way, bread, pasta, rice, corn and potatoes also contain a lot of glucose in the form of starch. The same advice holds here, consume them as intact as possible (making rice, corn and potatoes (cooked, not fried, so no french fries) a better choice than bread and pasta).</p><p>And as a little end note. If you cook rice and potatoes (might hold for other food as well) and let it completely cool down some of the starch converts into so-called resistant starches. Those end up undigested in the colon and make a happy meal for the good gut bacteria.</p><p>May the force be with you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a5b4b1df3cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why skipping dinner is easier on intermittent fasting]]></title>
            <link>https://romeokienzler.medium.com/why-skipping-dinner-is-easier-on-intermittent-fasting-b08ce03b451?source=rss-67f6fb646ff8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b08ce03b451</guid>
            <category><![CDATA[bdnf]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[intermittent-fasting]]></category>
            <category><![CDATA[ketogenic-diet]]></category>
            <category><![CDATA[keto]]></category>
            <dc:creator><![CDATA[Romeo Kienzler]]></dc:creator>
            <pubDate>Thu, 10 Jun 2021 07:50:21 GMT</pubDate>
            <atom:updated>2021-06-10T07:50:21.067Z</atom:updated>
            <content:encoded><![CDATA[<p>Summary: Eat your last (big) meal at 4 PM and see what happens</p><p>I’m a huge fan of intermittent fasting. It has many benefits for brain health and general health as well. I highly recommend to the read through the scientific body on this topic. You can start with this one here <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5913738/">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5913738/</a></p><p>tl;dr it says that after 10–14h of fasting (you can shorten that period of time by doing exercise) your glycogen stores of the liver (600–900 kcal) are depleted and your body switches into fat burning mode.</p><p>Besides loosing weight, this metabolic switch is very healthy — especially for your brain.</p><p>But how can you manage to not eat for 14h without killing anybody? Just skip your dinner! (instead of skipping your breakfast) … you can skip the breakfast as well if you like, of course.</p><p>It turns out that you only feel hungry while NOT in fat burning mode, so the first 10–14h of fasting. Just eat a big meal 4 PMish such that you are not hungry when going to bed. So the metabolic switch will happen between 2 AM and 6 AM and hopefully you wake up in fat burning mode.</p><p>Now of course, feel free to push your breakfast to as late as possible (e.g. lunch time :)</p><p>Have fun and let me know your results.</p><p>May the force be with you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b08ce03b451" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>