<?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 Andreas Spanner on Medium]]></title>
        <description><![CDATA[Stories by Andreas Spanner on Medium]]></description>
        <link>https://medium.com/@andreas.spanner?source=rss-e997af3d81ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vGIBTeC9CHiuLMjNXpminA.png</url>
            <title>Stories by Andreas Spanner on Medium</title>
            <link>https://medium.com/@andreas.spanner?source=rss-e997af3d81ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:16:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andreas.spanner/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[Model training on AWS with Trainium and Inferentia chips with OpenShift AI]]></title>
            <link>https://medium.com/@andreas.spanner/model-training-on-aws-with-trainium-and-inferentia-chips-with-openshift-ai-e18bf15c130a?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/e18bf15c130a</guid>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 10:36:14 GMT</pubDate>
            <atom:updated>2026-09-04T10:36:14.395Z</atom:updated>
            <content:encoded><![CDATA[<p>This is not about knowing Labubus. Well maybe a little bit.</p><p>It is really about <strong>OpenShift AI as one platform from cloud to edge</strong>. Train on AWS Trainium. Serve on Inferentia. Same operators, same pipelines, same OpenShift. The silicon changes; the control plane does not.</p><p>The Labubus are only so the gap is obvious in a screenshot. Stock <a href="https://docs.ultralytics.com/models/yolo11/">YOLO11n</a> grew up on <a href="https://cocodataset.org/">COCO</a> — eighty everyday classes, none of them a POP MART figure. Show it a studio photo and it shrugs, or calls the thing a <strong>teddy bear</strong>. Fine-tune through OpenShift AI on Trainium. Serve the new weights on Inferentia. The boxes say <strong>labubu</strong>. That is proof the platform moved a model from chip to chip, not a product about toys.</p><p>This lab lives on <strong>Red Hat OpenShift Service on AWS (ROSA)</strong> with a hosted control plane, <strong>OpenShift AI 3.4</strong>, and two AWS Neuron machines: a trn1.2xlarge for training and an inf2.xlarge for serving. That is still cloud AWS. The edge claim is the <em>platform</em>: the same OpenShift AI stack (pipelines, serving, Neuron operator) is what you would run on Inferentia in-region today and at the Edge later. POP MART pictures are copyrighted; they are here only so the class gap is visible at a glance.</p><p>If you just want to click around: open the gallery Route, pick a figure, then press <strong>Kick off Trainium training</strong>. That starts a Kubeflow Pipelines run. When the run finishes, the After panel reloads.</p><h3>Walk through the page</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gfNVeuiaMoB4cNMxzwu-Nw.png" /><figcaption>The page header wiht hw details in the top right corner</figcaption></figure><p><strong>This UI node</strong> is where the page is running <em>right now</em>. On ROSA that is the Inferentia worker. On a laptop it is your CPU.</p><p><strong>Training (KFP)</strong> is what the last pipeline job published in trainer.json. Green means the short XLA loop on Trainium actually ran.</p><p><strong>Detector weights</strong> is always the same story, even when Trainium was in the loop: Ultralytics YOLO11n, device=cpu, class labubu. There is no Ultralytics device=&quot;neuron&quot; for this detector. Trainium still matters — it is the proof that the chip moved tensors — but the file After loads is a normal best.pt.</p><p><strong>Serving After</strong> is how those weights are executed <em>this second</em>. Green on the cluster: Inferentia runs the SPPF trunk (a compiled NEFF), then Detect and NMS stay on CPU. White on a laptop: plain Ultralytics on CPU, and the text says so. Amber means the NEFF is still compiling, or compile failed.</p><p>Pick a figure. <strong>Before</strong> is stock YOLO11n (COCO) which lables the image as ‘teddy bear’. <strong>On the right </strong>is the one-class detector in action which labels it correctly as Labubu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mJSCFibQ22FksDXOUQqGQ.png" /><figcaption>Before (left) and After(right) the training run on AWS Trainium chips on ROSA</figcaption></figure><p>That glance is the exhibit. The world did not change. The class list did — because OpenShift AI ran the same pipeline on Trainium and served the result on Inferentia.</p><h3>What happens when you press the button</h3><p>Think of three rooms on the cluster. They are one OpenShift AI system, not three products.</p><p><strong>Room 1 is Trainium</strong> (trn1.2xlarge, namespace trainium). OpenShift AI runs a Data Science Pipelines application here. The gallery button does not train on the Inferentia box. It calls the pipeline API across namespaces. Argo starts a pod that <em>must</em> land on the Trainium node and <em>must</em> request the Kubernetes resource aws.amazon.com/neuron. Inside that pod Amazon’s training container can see /dev/neuron0. The script prints neuron-ls, to prove Trainium moved tensors.</p><p><strong>Room 2 is MinIO</strong> in the same namespace. The train pod’s /tmp dies with the job. Durable copies are s3://labubu/models/best.pt, last.pt, and trainer.json. We do not pass an EBS volume from Trainium to Inferentia. In this lab those nodes were even in different availability zones (us-east-2c vs us-east-2a). Object storage is how the platform moves weights between rooms — the same pattern you could use from a cloud train job to an edge serve node.</p><p><strong>Room 3 is Inferentia</strong> (inf2.xlarge, namespace inferentia). The public Route, the FastAPI gallery, and the Neuron compiler live here. Every twenty seconds the UI asks MinIO for new weights. When best.pt changes it compiles the YOLO <strong>backbone through SPPF</strong> ( <strong>Spatial Pyramid Pooling Fast</strong>.) with torch_neuronx.trace (about half a minute the first time), caches a NEFF, and the After panel starts drawing labubu boxes.</p><h3>Making the chips visible to Kubernetes</h3><p>OpenShift does not magically know about Inferentia or Trainium. Node Feature Discovery sees the PCI card (vendor 1d0f). Kernel Module Management loads the Neuron kernel driverneuron.ko onto RHCOS. The Neuron device plugin then advertises aws.amazon.com/neuron. Only then can a pod request the device. That operator path is the same whether the node is a cloud trn1 or an Inferentia box you treat as the serving (edge) side.</p><p>A trap we hit: extra NoSchedule taints on the machine pools, meant to keep ordinary pods off expensive nodes, also kept KMM’s module-loader off those nodes. No driver, no /dev/neuron0, jobs pending forever. This lab uses <strong>labels</strong> (workload=trainium / workload=inferentia) and does <strong>not</strong> add a custom taint unless KMM tolerates it too.</p><p>rosa create machinepool is required. Cloning an existing worker’s EC2 user-data onto a raw trn1 instance does not join a ROSA hosted-control-plane cluster.</p><p>Trainium was only offered in us-east-2c here; Inferentia stayed in 2a. That is why weights travel through MinIO.</p><h3>OpenShift AI, not a laptop notebook</h3><p>The cluster is small (two m6a.xlarge workers plus the two Neuron nodes). Workbenches are off so notebooks do not crowd out the dashboard and pipelines. KServe is off; serving is a Deployment and a Route.</p><p>Pipelines live only in namespace trainium. The Inferentia project has no pipeline server, so its Pipelines page is empty on purpose. The gallery talks to https://ds-pipeline-dspa.trainium.svc:8443 with its ServiceAccount token.</p><p>The button submits a pipeline package <strong>baked into the UI image</strong>. A run you click in the dashboard is a different run ID. The status line under the button only follows the run the UI started.</p><p>Training uses Amazon’s Neuron training container, not a Jupyter workbench: it must include torch_xla, the dataset, and Ultralytics, land on trn1, and exit. OpenShift assigns a random user ID, so the job writes under /tmp, not /opt.</p><p>That is the cloud-to-edge pattern in miniature: a pipeline in one place, a serve Deployment in another, object storage in the middle, one OpenShift AI.</p><h3>Inference engine, precisely</h3><p>On the cluster UI image (pytorch-inference-neuronx DLC):</p><ol><li>Letterbox the JPEG to 640×640 (CPU).</li><li>Run the compiled SPPF prefix on Inferentia NeuronCores (~8–10 ms).</li><li>Finish C2PSA, FPN/PAN, Detect, and non-maximum suppression on CPU.</li><li>Draw boxes.</li></ol><p>A separate Job can still torch_neuronx.trace a tiny MLP as a five-second chip check. Do not run it at the same time as the gallery: inf2.xlarge has one Neuron device.</p><p>Laptop preview (scripts/08-run-ui-local.sh) sets LABUBU_INFER_BACKEND=cpu. The <strong>Serving After</strong> chip will say so. That is correct.</p><h3>Reproduce</h3><pre># Credentials come from .env (gitignored).<br>./scripts/00-login.sh<br>./scripts/01-create-machinepools.sh<br>./scripts/02-install-neuron-operator.sh<br>./scripts/06-install-rhoai.sh<br>./scripts/07-deploy-labubu-demo.sh</pre><p>Open the Route, wait until <strong>This UI node</strong> shows /dev/neuron0 and <strong>Serving After</strong> turns green (first NEFF compile is about a minute). Then <strong>Kick off Trainium training</strong>. When KFP succeeds, wait for MinIO poll and the Training chip to mention Trainium XLA.</p><p>To preview the gallery on a laptop with CPU weights and no KFP:</p><pre>python3 scripts/05-prepare-labubu-dataset.py<br>python3 workloads/train_yolo11_labubu.py \<br>  --data dataset/labubu/data.yaml \<br>  --out apps/labubu-demo/weights \<br>  --backend cpu --epochs 40<br>./scripts/08-run-ui-local.sh<br># http://127.0.0.1:8080</pre><p>Versions we used: OpenShift 4.20 on ROSA HCP, OpenShift AI 3.4 (stable-3.x), Neuron operator 1.2.0, driver 2.27.4.0, Neuron DLCs pytorch-*-neuronx:2.9.0-neuronx-py312-sdk2.27.1, Ultralytics YOLO11n.</p><h3>Glossary</h3><p>A shorter index for the acronyms above. Expand on first use in the body; this is the cheat sheet.</p><p>TermMeaning<strong>ROSA / HCP</strong>Managed OpenShift on AWS; hosted control plane<strong>RHOAI / DSC / DSPA</strong>OpenShift AI; cluster feature switch; namespace pipeline server<strong>KFP / Argo</strong>Kubeflow Pipelines, run as Argo Workflows<strong>YOLO11n / COCO</strong>Nano detector; 80-class dataset with no labubu<strong>Trainium / Inferentia / Neuron / NeuronCore</strong>AWS train chip, infer chip, software stack, schedulable unit<strong>NFD / KMM</strong>Discover the PCI card; load the kernel module<strong>DLC</strong>AWS Deep Learning Container with Neuron PyTorch<strong>XLA</strong>Compiler backend for the Trainium proof loop<strong>NEFF</strong>Compiled binary Neuron Runtime executes<strong>NMS</strong>Drop overlapping boxes (CPU in this demo)<strong>MinIO / S3</strong>In-cluster object store speaking the S3 API<strong>AZ / PVC / RWO</strong>AWS zone; disk claim; single-node attach</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e18bf15c130a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Edge security at rest: Network-Bound Disk Encryption(NBDE) in practice]]></title>
            <link>https://medium.com/@andreas.spanner/edge-security-at-rest-network-bound-disk-encryption-in-practice-5d6e9d3fc0a8?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d6e9d3fc0a8</guid>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 03:24:01 GMT</pubDate>
            <atom:updated>2026-07-24T03:41:09.770Z</atom:updated>
            <content:encoded><![CDATA[<p>TL;DR; <em>A walkthrough of why edge devices lose more than uptime when they leave the site — and how Clevis, Tang, and a small KVM lab make that story concrete. Demo code is here: </em><a href="https://github.com/aspanner/nbde">https://github.com/aspanner/nbde</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-3ag8l-z8vpqbpgB1scsg.png" /><figcaption>In edge environments physical access doesn’t proof ownership</figcaption></figure><h3>The edge problem isn’t only “keep the boxes online”</h3><p>Your home router might ask you to press a button to authorize config changes, but that approach is no longer valid in edge scenarios, because Edge deployments stretch the trust boundary. Devices sit in retail stores, factories, clinics, vehicles, and cell sites. They often hold:</p><ul><li>Application data and local caches</li><li>Device identity and certificates</li><li>Operational history that an attacker would love offline</li></ul><p>Physical control is weaker than in a locked data center. A laptop can be stolen; so can a kiosk, gateway, or compact industrial PC. Full-disk or volume encryption is necessary — but encryption alone doesn’t answer the operational question:</p><p>When this device is powered on <em>here</em>, can it unlock itself without a human typing a passphrase at 3 a.m.?<br>When it is powered on <em>somewhere else</em>, can an attacker with the hardware read the disks?</p><p>Those are two different requirements. <br>Traditional passphrase unlock fails the first. Naive key escrow (a server that stores and returns the disk key) creates a juicy target and a complex trust story. Network-Bound Disk Encryption (NBDE) is aimed squarely at that gap.</p><h3>What NBDE actually does</h3><p>NBDE is one part of and approach called PBD which stands for Policy Based Decryption. On Red Hat Enterprise Linux, NBDE is built from two Latchset components (named after fastener hardware — clevis, pin, and tang form a shackle):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*Xs1vrgLtCRqkNtC_0d3jVg.png" /><figcaption>Hardware fastener — namesake of Clevis &amp; Tang in the context of NBDE</figcaption></figure><p><strong>Clevis/Client</strong><br>Client-side framework for automated decryption (“pins” plug in different unlock policies)</p><p><strong>Tang<br></strong>Stateless server that binds unlock capability to network presence.</p><p>With the Tang pin, provisioning works roughly like this:</p><ol><li>The volume is formatted as LUKS (Linux Unified Key Setup)</li><li>Clevis binds an extra LUKS keyslot to a Tang server (URL + key thumbprint).</li><li>At unlock time, Clevis and Tang run a McCallum-Relyea exchange (related to Diffie–Hellman with blinding).</li><li>The disk unlock key is reconstructed on the client. Tang never holds that key; an eavesdropper on the wire doesn’t learn it either.</li></ol><p>So Tang can speak plain HTTP by design. That often surprises people. Transport TLS isn’t what protects the key material — the protocol does. What Tang <em>does</em> encode as policy is: if you can complete the exchange with this server, you’re “on the trusted network.” Put Tang only where that statement is true (private plant/OT/lab segment, not the public internet).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PX6AIxpY7UGHsP4jptn1Qg.png" /><figcaption>Clevis / Tang logical setup</figcaption></figure><p>You still keep a passphrase (or other pins) as break-glass. NBDE removes the need to type it for routine boots when the device is where it belongs.</p><h3>Why this fits edge</h3><ul><li>Unattended unlock on site (stores open, lines run, clinics boot).</li><li>Degraded value of theft: the box boots elsewhere, but Clevis can’t reach Tang → automated unlock fails.</li><li>No key escrow database of every device’s disk key on the server.</li><li>Composable policy later: Clevis SSS (Shamir) can require Tang <em>and</em> TPM2, or k-of-n Tang servers for HA.</li></ul><p>Root-filesystem NBDE is the production story (clevis-dracut, rd.neednet=1 in initramfs).</p><p>rd.neednet=1 ensures that the kernel makes the network stack available before the root filesystem is mounted to facilitate the unlocking of the LUKS volumes. Dracut (the tool that generates the initial RAM file system) only brings up network interfaces if it detects that the root filesystem itself relies on the network (such as NFS, iSCSI, or NBD). rd.neetnet overrides this behavior. It tells Dracut: “Bring up the network during initramfs, even if the root filesystem is on a local disk.”</p><p>clevis-dracut integrates the Clevis decyrption client into the Dracut early-boot environment (initramfs = Initial RAM file system). This is the essential bridge that allows systems edge systems to fetch decyrptino keys from a Tang server and unlock LUKS root partionons before Linux finishes booting.</p><h3>A lab that tells the story</h3><p>We built a small local lab — <strong>nbde-demo</strong> — so you can show the policy instead of only describing it.</p><h3>Topology</h3><p>Two VMs on libvirt/KVM:</p><ul><li>nbde-tang — Tang server</li><li>nbde-client — Clevis client with a second virtio disk (vdb) formatted as LUKS and bound to Tang</li></ul><p>Two networks when the host allows it (dual mode):</p><ul><li>nbde-trusted (192.168.210.0/24) — normal operation; Tang and client together</li><li>nbde-isolated (192.168.211.0/24) — no forward path to Tang; “stolen device”</li></ul><h4><strong>Trusted path</strong></h4><p>client ──► Tang ──► Clevis unlock</p><p><strong>VS</strong></p><h4><strong>Stolen path</strong></h4><p>client ✗ Tang ──► Clevis fail</p><h3>How the demo proves encryption and access</h3><p>by using LUKS state and unlock policy:</p><ol><li>Setup (04-setup-client-nbde.sh): luksFormat on vdb, clevis luks bind to Tang, unlock, put an XFS filesystem and a README.txt on /dev/mapper/nbde-data, then close as needed.</li><li>Happy path (demo-happy-path.sh): close the mapper → prove Tang is reachable → clevis luks unlock without a passphrase → mount and read the README.</li><li>Stolen (demo-stolen.sh): move the client to nbde-isolated (or block Tang) → prove Tang is unreachable → Clevis unlock must fail → passphrase cryptsetup open still works.</li><li>Restore (demo-restore.sh): put the client back on trusted → Clevis works again.</li></ol><p>From the client you can inspect the same facts by hand:</p><pre>lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT<br>sudo cryptsetup isLuks /dev/vdb<br>sudo clevis luks list -d /dev/vdb<br>sudo cryptsetup status nbde-data # active = unlocked<br><br>On the host, which &quot;site&quot; the guest is on is visible as:<br>virsh domiflist nbde-client # nbde-trusted vs nbde-isolated</pre><h3>What to take back to a real edge design</h3><ol><li>Encrypt volumes that matter — root and/or data — with LUKS; bind Clevis to Tang on a network that truly means “home.”</li><li>Place Tang carefully. Reachability <strong><em>is</em></strong> the policy. Don’t put Tang where a stolen device can still call home.</li><li>Keep break-glass (passphrase, escrow process, or alternate pin). NBDE is automation, not the only recovery path.</li><li>Plan for HA and stronger policy (multiple Tang servers, SSS with TPM2) when a single Tang or “network only” isn’t enough.</li><li>Demo before you decree. A two-VM lab turns “network-bound” from a slide into a failed clevis luks unlock you can watch.</li></ol><p><strong>Edge security is rarely one control</strong>. NBDE doesn’t replace patching, identity, secure boot, or physical process — but it <em>does</em> shrink the blast radius of a device walking out the door, without chaining every reboot to a human with a passphrase.</p><h3>Try it</h3><p>Repository on a local directory, called nbde-demo lab (Clevis + Tang on KVM).</p><pre>After host prep + RHEL/Fedora cloud image in config.env<br>./scripts/00-check-prereqs.sh<br># build through 04-setup-client-nbde.sh …<br>./scripts/demo-happy-path.sh<br>./scripts/demo-stolen.sh<br>./scripts/demo-restore.sh</pre><p>Further reading:</p><ul><li>Red Hat docs on Network-Bound Disk Encryption</li><li>PBD aka policy-based decryption — Latchset projects Clevis and Tang;</li><li>McCallum-Relyea exchange for why HTTP is enough for the key agreement itself.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d6e9d3fc0a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Federated YOLOX: Teaching a Cloud Model What the Edge Learned]]></title>
            <link>https://medium.com/@andreas.spanner/federated-yolox-teaching-a-cloud-model-what-the-edge-learned-de3b05d6f8ab?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/de3b05d6f8ab</guid>
            <category><![CDATA[federated-learning]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 05:02:16 GMT</pubDate>
            <atom:updated>2026-06-17T08:08:14.595Z</atom:updated>
            <content:encoded><![CDATA[<p>TL;DR; <em>A walkthrough of a PyTorch + YOLOX demo that trains centrally, adapts at the edge, and ships only a tiny weight update back to the central location (eg cloud).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*Wff6ytmWD38OO-ZcQ_D9FA.png" /><figcaption>Contextual Architecture Diagram: Transferring edge learning to aggregate centrally</figcaption></figure><h3>What Problem are we solving?</h3><p>In distributed federated learning, you have many devices (cameras, robots, UAVs/drones, reconnaissance mission ground vehicles, factory lines) with local data that never leaves the site for either privacy/confidentiality or data volume reasons. You still want a shared object-detection model to improve over time — but you cannot upload full neural networks from every edge node on every round.</p><p>Bandwidth, latency, and privacy all push toward a different pattern:</p><ol><li>Train a base model in the cloud on shared data</li><li>Distribute it to edge devices</li><li>Fine-tune locally on private images</li><li>Send back only a small update (not the whole model)</li><li>Merge that update in the cloud</li></ol><p><a href="https://github.com/aspanner/FederatedLearningYoloX">Here I implemented</a> a end-to-end flow using YOLOX-Nano on the tiny coco8 dataset — 8 images total, split so the cloud sees 4 training images and the edge sees 4 validation images. It is a teaching demo, not production FL infrastructure, but the file layout and delta mechanics mirror what you would build at scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aNpDvBk8DNgq8C4G-qNkTg.png" /><figcaption>The demo flow showing Cloud &amp; Edge locations, model location, model head finetuning &amp; merging</figcaption></figure><p>The important bit here is that only the YOLOX head (which is the detection layer) changes during training at the edge. The backbone stays frozen. The Edge uploads new_head — base_head, compressed to float16 (which is roughly 16x smaller than sending the full model)</p><p><strong>Backbone</strong> in YOLOX is a pre-trained CNN that is trained on a massive dataset of images, to recognize low-level features and patterns. YOLOX uses the Darknet53 and Modified CSP v5 backbones.</p><p>The <strong>neck</strong> module combines feature maps extracted by the backbone network to improve detection performance, allowing the model to learn from a wider range of scales.</p><p>The <strong>head</strong> is the final component of an object detector; it is responsible for making predictions based on the features provided by the backbone and neck. It typically consists of one or more task-specific subnetworks that perform classification, localization, instance segmentation, and pose estimation tasks.</p><h3>Setup Phase</h3><p>In the setup phase we are splitting the data set (here coco8) into</p><ul><li>Central (cloud/data center based base model training)</li><li>Edge (edge fine tuning)</li><li>Eval (hold out to measure loss for all phases)</li></ul><p>Hold out for loss means: after each training step, the project scores the model on a separate dataset it did not train on in that step, using YOLOX’s training loss as a quick sanity check.</p><p>It is not mAP, precision, or a proper detection benchmark — just average loss on the eval loader.</p><p>We then download the official yolox_nano.pth model and train it</p><pre>def build_model(exp: Any, device: str, pretrained: bool = True) -&gt; torch.nn.Module:<br>    ...<br>    model = exp.get_model()<br>    if pretrained:<br>        ckpt_path = _download_pretrained()<br>        ...<br>        load_ckpt(model, state_dict)<br>    model.to(device)<br>    return model</pre><p>In PyTorch’s state_dict, head weights are prefixed with head. — that prefix is the contract for the entire federated update strategy which allows us to extract the head:</p><pre>def extract_head_state(state_dict: dict[str, torch.Tensor]) -&gt; dict[str, torch.Tensor]:<br>    return {key: value.cpu().clone() for key, value in state_dict.items() if key.startswith(HEAD_PREFIX)}</pre><p>Then we save the model as a dict:</p><pre>    payload: dict[str, Any] = {<br>        &quot;model&quot;: model.state_dict(),<br>        &quot;head_state&quot;: extract_head_state(model.state_dict()),<br>        &quot;head_layers&quot;: head_layer_names(model),<br>    }<br>    if extra:<br>        payload.update(extra)<br>    torch.save(payload, path)</pre><p>The ‘extra’ metadata is for things like eval losses or stage name.</p><p>We then freeze the backbone so that only head parameters get new gradients during edge training.</p><h3>5 Phases in the Pipeline</h3><ul><li><strong>Phase 1@Cloud:</strong> simulates the cloud/data center based training.</li><li><strong>Phase 2@Cloud → Edge: </strong>is the distribution to edge. In real-world this can be anything from OTA in Automotive, push to a model registry, a message broker transfer or a file copy.</li><li><strong>Phase 3@Edge: </strong>Fine-tuning the head at the Edge means loading the earlier created cloud checkpoint. We only train the head; the backbone weights remain untouched.</li><li><strong>Phase 4@Edge:</strong> Extract and compress delta at the edge. Here’s the code to show how delta extraction works:</li></ul><pre>        base_ckpt = torch.load(BASE_MODEL_EDGE, ...)<br>        edge_ckpt = torch.load(EDGE_MODEL_PATH, ...)<br>        delta = compute_head_delta(<br>            extract_head_state(edge_ckpt[&quot;model&quot;]),<br>            base_ckpt[&quot;head_state&quot;],<br>        )<br>        sizes = save_delta(delta, DELTA_PATH, metadata={...}, compress=True)</pre><ul><li><strong>Phase 5@Cloud</strong>: Apply the delta at the data center/cloud and calculate loss before and after. The cloud never sess the raw images from the edge; only the delta file.</li></ul><pre>        model = build_model(exp, device=device, pretrained=False)<br>        base_ckpt = load_checkpoint(BASE_MODEL_CLOUD, model)<br>        before_loss = eval_loss(...)<br>        delta, payload = load_delta(DELTA_PATH)<br>        apply_head_delta(model, base_ckpt[&quot;head_state&quot;], delta)<br>        after_loss = eval_loss(...)<br>        save_checkpoint(model, UPDATED_MODEL_PATH, ...)</pre><h3>The Delta at the heart of federated learning</h3><p>In delta.pywe compute the element wise difference per head tensor</p><pre>    return {<br>        key: (new_head[key].float() - base_head[key].float()).cpu()<br>        for key in base_head<br>    }</pre><p>and then compress every tensor to float16 (half precision)</p><pre>def compress_delta_f16(delta: dict[str, torch.Tensor]) -&gt; dict[str, torch.Tensor]:<br>    return {key: tensor.half() for key, tensor in delta.items()}</pre><p>After serialization and transfer we reconstruct the updated head and merge it into the model:</p><pre>    updated_head = {<br>        key: base_head[key].float() + delta[key].float()<br>        for key in base_head<br>    }<br>    state = model.state_dict()<br>    state.update(updated_head)<br>    model.load_state_dict(state)</pre><p>If you look at the outputs of that project the original full model is about 4.4MB while the delta is about 270KB, which is a much more practical file size for bandwidth contrained environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*wRpDBUEU41SXpldJDtHTdA.png" /><figcaption>Model VS delta file size comparison</figcaption></figure><p>Each full-model .pth is a PyTorch pickle containing model, head_state, head_layers, plus phase-specific metadata like eval losses.</p><h3>What this demo teaches vs. what production would add</h3><p>This demo shows:</p><ul><li>Head-only fine-tuning with frozen backbone</li><li>Delta extraction and float16 compression</li><li>Cloud/edge artifact separation</li><li>End-to-end orchestration with observable metrics</li></ul><p>Production federated learning would also need:</p><ul><li>Secure aggregation across many edge nodes</li><li>Differential privacy or encryption on deltas</li><li>Robust client selection and failure handling</li><li>Proper detection metrics (mAP) instead of training loss</li><li>Model versioning, signing, and rollback</li><li>Real edge deployment</li></ul><h3>Demo Run</h3><p>To run the demo you can either use the CLI run-demo.sh to run or the UI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jjlFn5BTh2VyYWD7Ks_udQ.png" /><figcaption>UI for the demo to run the different phases</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de3b05d6f8ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Towards self-adjusting AIOps Systems — An Update]]></title>
            <link>https://medium.com/@andreas.spanner/towards-self-adjusting-aiops-systems-an-update-33e523d9686a?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e523d9686a</guid>
            <category><![CDATA[aiops]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[telemetry]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 02:44:05 GMT</pubDate>
            <atom:updated>2026-06-16T23:17:09.215Z</atom:updated>
            <content:encoded><![CDATA[<p>TL;DR; While the Linux Foundations umbrella organisations LFEdge and AAIF are preparing to finalize the <a href="https://lf-edge.atlassian.net/wiki/spaces/IA/pages/1152974856/SuperAI+SuperBlueprint">Agentic Edge SuperBlueprint</a> in collaboration with industry players this is a quick update where the AIOps portion is at.</p><p>Here’s a quick overview of the approach as logged into MLFlow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*88-lHNKzihq1J9S_zB7KKA.png" /><figcaption>The high level description for the AIOps test harness context</figcaption></figure><p>Several researchers across the globe and different industries have reached out sharing the pre-published research papers as they’ve noticed that our approach is very similar; so we decided to join further to avoid re-inventing the wheel (meaning implementing the same test and evaluation harness).</p><h3><strong>Campaign Runs — Overview</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*CgjZ_p4KmMsJsn1W8aoNdQ.png" /><figcaption>Campaign Overview</figcaption></figure><p>Above you see the amount of test-harness runs we’ve completed, how many anomalies have been detected and how many root-causes (RCA)have been correctly identified. The Ollama issue is a local NVIDIA GPU driver problem and will be fixed shortly. Ollama on a CPU is mostly timing-out. The MTTD improvments are random due to ollama running slower or faster based on server load. MTTD/MTTR (meant-time to detect/resolve) are our core AIOps KPIs we are tracking, but as you see the RCA identification is very poor using models only. This is expected and the reason the next phase is focussed on context engineering.</p><h3>Agentic Architectures</h3><p>There are many dimensions we are comparing such as models, prompts, access to tools via MCP and different types of telemetry data.</p><p>The main architectural research goes into what brings to light the best performing AIOps approach:</p><ul><li><strong>Scenario A</strong>: A all-in-one Agent approach: One agent covers metrics, traces and logs across hardware, platform (k8s) and application (OTEL demo app). No k8s tool access. Can query logs, traces and metrics.</li><li><strong>Scenario B</strong>: Signal specialists across the stack meaning a single agent for Metrics, another one for Traces and another one for Logs across hardware, platform and appliaction. Access to k8s MCP server for all; access to logs, traces and metrics per signal specialization.</li><li><strong>Scenario C</strong>: Domain Experts: A single agent for all telemetry related tohardware, another one for all telemetry related toplatform and a third one for application specific telemetry (ie logs and traces and metrics). Access to k8s MCP server only for platform agent; access to logs/metrics/traces to all.</li></ul><p>This is what a, b or c means in the ‘Scen’ column below.</p><h3>Why it was designed that way</h3><p>The scenarios form a comparison matrix — same fault, different tool boundaries, to answer the relevant design questions:</p><p>Scenario A: Can one agent with all telemetry signals detect and diagnose?</p><p>Scenario B: Does splitting by signal type (logs / traces / metrics) improve AIOps performance?</p><p>Scenario C: Does splitting by domain (hardware / platform / app) improve AIOps performance?</p><h3><strong>Side-by-Side Comparison</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*0q0doFU4Fe9FSeME3EEuVw.png" /><figcaption>Comparing performance across individual model runs</figcaption></figure><p>Most models for this harness run on OpenShift AI (RHOAI) in a Model-as-a-Service setup. That is super convenient as I only need an model endpoint and key via a MaaS subscription to use a model. More specialised models (yet to come) might not be available hence I use Ollama for now but the intent is to move them to MaaS as well.</p><p>Key takeaways:</p><ul><li>Ollama scenario a was ~4× faster (1094s → 262s) but still wrong on RCA.</li><li>DeepSeek scenario c flipped from RCA ✗ → ✓ (platform role finally named cartservice).</li><li>Llama Scout scenario c stayed RCA ✓ and got much faster (110s → 43s).</li><li>Scenario a never got RCA right in either run — all agents blamed downstream noise (load-generator, image-provider, service) instead of cart.</li></ul><h3>Scenario A</h3><p>Scenario A deliberately models an “observability-only SRE”with access to telemetry, but no kubectl/oc access. That matches many real setups where the on-call agent only sees Grafana/Jaeger/Loki, not the cluster API.</p><p>The injected fault was that we scaled the cart deployment to 0<br>What we found is that the agent chases symptoms in telemetry — load-generator browser errors, HTTP timeouts, trace gaps — not the platform action that caused them.</p><p>Verdict: Without get_pod_status / get_events, agents cannot see cart at 0 replicas. This is consistent across runs.</p><p>The tools profile for Scenario A looks like this:</p><pre>&quot;telemetry_multimodal&quot;: [<br>        &quot;search_logs&quot;,<br>        &quot;search_traces&quot;,<br>        &quot;search_metrics&quot;,<br>        &quot;query_clickhouse&quot;,<br>        &quot;run_remediation&quot;,<br>    ],</pre><h3>Scenario B findings — Signal Specialists</h3><p>In Scenario B we have one agent per signal: one processing only traces, and another one processing only metrics and a third agent only processing logs. The role order is logs → traces → metrics</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*5R8hBtmHtOvd3x7KsSXJUA.png" /><figcaption>Signal specialist comparison</figcaption></figure><p>In the Signal Specialists category it becomes obvious that some signal types (like pod scaled to 0/zero) are less suitable for RCA as logs/traces signatures are missing.</p><p>The tool profile for Scenario B looks like</p><pre>{<br>  &quot;scenario&quot;: &quot;b&quot;,<br>  &quot;name&quot;: &quot;signal_specialists&quot;,<br>  &quot;mode&quot;: &quot;multi&quot;,<br>  &quot;description&quot;: &quot;Three agents — one each for logs, traces, and metrics.&quot;,<br>  &quot;roles&quot;: [<br>    {<br>      &quot;id&quot;: &quot;logs&quot;,<br>      &quot;tool_profile&quot;: &quot;logs_only&quot;,<br>      &quot;tools&quot;: [&quot;search_logs&quot;, &quot;query_clickhouse&quot;, &quot;run_remediation&quot;],<br>      &quot;prompt_hint&quot;: &quot;Logs-only specialist. Use search_logs and query_clickhouse.&quot;<br>    },<br>    {<br>      &quot;id&quot;: &quot;traces&quot;,<br>      &quot;tool_profile&quot;: &quot;traces_only&quot;,<br>      &quot;tools&quot;: [&quot;search_traces&quot;, &quot;run_remediation&quot;],<br>      &quot;prompt_hint&quot;: &quot;Traces-only specialist. Find latency errors, failed spans, slow services.&quot;<br>    },<br>    {<br>      &quot;id&quot;: &quot;metrics&quot;,<br>      &quot;tool_profile&quot;: &quot;metrics_only&quot;,<br>      &quot;tools&quot;: [&quot;search_metrics&quot;, &quot;run_remediation&quot;],<br>      &quot;prompt_hint&quot;: &quot;Metrics-only specialist. SLI anomalies: latency, errors, saturation.&quot;<br>    }<br>  ]<br>}</pre><h3>Scenario C — Domain Experts</h3><p>In Scenario C we have one agent each per stack layer — 1 agent for hardware failures, 1 agent for platform failures, and 1 agent for application failures. The role order is hardware → platform → application . The role order matters in case of timeouts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*tIM1h7quljxdD_MiaI0C_A.png" /><figcaption>Domain Expert comparison</figcaption></figure><p>The MCP tooling access makes a big difference for fault detection above and RCA below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*hmIW3ihxZoHFOOsJKLzPCg.png" /><figcaption>Platform role performs best in a k8s scenario</figcaption></figure><p>The tool profile for Scenario C looks like this:</p><pre>{<br>  &quot;scenario&quot;: &quot;c&quot;,<br>  &quot;name&quot;: &quot;domain_specialists&quot;,<br>  &quot;mode&quot;: &quot;multi&quot;,<br>  &quot;description&quot;: &quot;Three agents — hardware (metrics), platform (Kubernetes), application (logs/traces).&quot;,<br>  &quot;roles&quot;: [<br>    {<br>      &quot;id&quot;: &quot;hardware&quot;,<br>      &quot;tool_profile&quot;: &quot;hardware_metrics&quot;,<br>      &quot;tools&quot;: [&quot;search_metrics&quot;, &quot;query_clickhouse&quot;, &quot;run_remediation&quot;],<br>      &quot;prompt_hint&quot;: &quot;Hardware/host metrics. CPU, memory, disk, network. No K8s API.&quot;<br>    },<br>    {<br>      &quot;id&quot;: &quot;platform&quot;,<br>      &quot;tool_profile&quot;: &quot;platform_k8s&quot;,<br>      &quot;tools&quot;: [<br>        &quot;get_pod_status&quot;,<br>        &quot;get_pod_logs&quot;,<br>        &quot;get_events&quot;,<br>        &quot;restart_deployment&quot;,<br>        &quot;scale_deployment&quot;,<br>        &quot;delete_pod&quot;,<br>        &quot;run_remediation&quot;<br>      ],<br>      &quot;prompt_hint&quot;: &quot;Kubernetes platform specialist. No ClickHouse logs/traces/metrics.&quot;<br>    },<br>    {<br>      &quot;id&quot;: &quot;application&quot;,<br>      &quot;tool_profile&quot;: &quot;application_telemetry&quot;,<br>      &quot;tools&quot;: [&quot;search_logs&quot;, &quot;search_traces&quot;, &quot;run_remediation&quot;],<br>      &quot;prompt_hint&quot;: &quot;Application-layer specialist. Microservice errors. No K8s API.&quot;<br>    }<br>  ]<br>}</pre><p>What the platform role sees:</p><p>The <strong>Llama Scout</strong> platform agent consistently queries K8s, finds cart deployment at 0 replicas → cartservice → RCA ✓, remediation ✓.</p><p><strong>DeepSeek</strong> improved:</p><ul><li>Jun 10: platform detected something but falsely blamed email</li><li>Jun 15: platform correctly named cartservice → merged RCA ✓ (remediation still ✗(failed))</li></ul><p><strong>Qwen3</strong>: platform always detects <em>something</em> but names wrong causes (security_context_constraints, multiple) — never identified the real root cause cart.</p><p>The Application role agent chases load-generator log noise in both runs or detects nothing. It’s not the right layer for a scale_zero fault.</p><p>The Hardware role on Jun 15 saw more false detections (node-01, node_resource_exhaustion) — node-level metrics react to pod churn but don&#39;t pinpoint cart.</p><h3>Bottom line to date</h3><ol><li>The basic model only approach is far from suitable for an AIOps approach, let alone self adjusting systems.</li><li>While the detection improved, RCA barely moved — avg MTTD down ~31%, but RCA only went from 1 to 2 out of 12. The extra win was DeepSeek scenario c.</li><li>Platform role is decisive for scale_zero — Llama Scout is reliable; DeepSeek improved; Qwen3 still misses.</li><li>Telemetry-only roles systematically misidentify load-generator / recommendation / service noise as root cause.</li><li>Ollama on CPU is not viable for scenario c — hardware role timeout blocks the whole orchestrator.</li><li>Scenario a RCA failure is structural — without K8s tools, no agent can name cart for this fault type.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e523d9686a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Headless Retail: When Your Store Has No Storefront — Only an API and a Point of View]]></title>
            <link>https://medium.com/@andreas.spanner/headless-retail-when-your-store-has-no-storefront-only-an-api-and-a-point-of-view-8e4b92564a77?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e4b92564a77</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[headless-commerce]]></category>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Wed, 27 May 2026 14:18:25 GMT</pubDate>
            <atom:updated>2026-06-05T02:26:55.925Z</atom:updated>
            <content:encoded><![CDATA[<p>The next step after omni-channel is not “more channels.” It is commerce without a channel you control.</p><figure><img alt="Depecting Headless retail in a retail store" src="https://cdn-images-1.medium.com/max/1024/1*lqpjQLrL7Q7Sv02oRQm_7w.jpeg" /><figcaption>Stores become ‘Experience Centers’ — Headless Retail is probably mostly NOT going to happen in a store</figcaption></figure><p>In two earlier pieces I showed how retail is shifting from humans scrolling screens to <strong>autonomous agents</strong> that fulfill intent in parallel, negotiate transaction by transaction, and measure success in task completion, not time on site:</p><ul><li><a href="https://www.linkedin.com/pulse/end-omni-channel-autonomous-retail-agent-negotiation-loops-spanner-sxyhc/">The End of Omni-Channel: Autonomous Retail Agent Negotiation Loops</a></li><li><a href="https://www.linkedin.com/pulse/end-shopping-cart-why-agentic-ai-rewrite-retail-andreas-spanner-8rwkc/">The End of the Shopping Cart: Why &amp; How Agentic AI Will Rewrite Retail</a></li></ul><p>Those posts describe who shops (an agent), how deals get done (agent vs. agent), and what still matters (product, positioning, supply chain, structured data, speed).</p><p>This post names the architectural consequence: <strong>headless retail</strong>.</p><h3>What “headless” means here (and what it does not)</h3><p>Headless commerce already meant: decouple the storefront from catalog, pricing, cart, and fulfillment so any frontend can consume the same APIs.</p><p>Headless retail is that idea taken to its logical end in the agentic economy:</p><ul><li>The “<strong>head</strong>” — the branded surface where discovery, merchandising, and checkout used to live — is no longer yours. It might be the shopper’s personal assistant, a bank app, a benefits wallet, a household OS, or a vertical “buyer agent” that represents loyalty, diet, budget, and ethics in one place.</li><li>The system of record that wins is not the product page. It is the machine-consumable offer: attributes, constraints, availability, price rules, delivery truth, return policy, provenance, and negotiation policy your merchant agent is allowed to execute.</li></ul><p>So headless retail is not “we launched a headless storefront for our React team.”</p><p>It is: “<strong>We can transact at full fidelity even when no human ever renders our website.</strong>”</p><p>That is the bridge between classic headless commerce and the three pillars from the earlier posts — buyer agent, merchant agent, and the exchange where they meet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*pUwMXPt4nKaWMhXMeaOw5A.png" /><figcaption>That’s probably much more realistic: Agentic Headless Retail</figcaption></figure><h3>Why headless retail is the stable shape of agentic commerce</h3><p>Agents do not “visit” your brand. They verify it.</p><p>They do not admire your photography. They match constraints.</p><p>They do not wander aisles. They eliminate infeasible SKUs at machine speed.</p><p>In that world, the retailer’s job splits cleanly:</p><ol><li><strong>Truth layer</strong> — catalog, stock, price, promotions, fees, delivery promises, regulatory attributes (all structured, versioned, queryable).</li><li><strong>Policy layer</strong> — what the merchant agent may concede, when it walks away (or stops responding rather), how it expresses premium vs. competitive vs. relationship value.</li><li><strong>Fulfillment layer</strong> — the operational proof that turns a negotiated promise into a kept promise.</li></ol><p>Everything else — hero banners, “shop the look,” endless aisle UX — becomes optional packaging that humans may still enjoy, but agents do not require.</p><p>This is why the omni-channel investment does not vanish; it morphs. Integrations become agent readiness: the same inventory and customer spine, exposed as contracts rather than pages.</p><figure><img alt="Omni channel investments morphing into a Headless retail core" src="https://cdn-images-1.medium.com/max/1024/1*cVBfojUhp0kihGbaeizglg.jpeg" /><figcaption>Omni-channel investments morphing into a headless retail core</figcaption></figure><h3>How retailers prepare (a practical readiness stack)</h3><p>If you want a simple test: could a competent third-party buyer agent complete a regulated, margin-safe purchase without scraping HTML? If no, you are not headless-retail ready.</p><p>Below is a readiness stack that matches the patterns already outlined for agentic retail — expressed as headless responsibilities.</p><h3>1) Product truth beats product pages</h3><p>Ship stable identifiers, rich attributes, allergens, compatibility, service dependencies, and freshness rules. Support semantic retrieval (embeddings are not a gimmick; they are how agents map “smoothie ingredients” to SKUs).</p><p>Preparation move: treat the catalog like a dataset with SLAs.</p><h3>2) Pricing and negotiation as code, not as meetings</h3><p>Replace “we can maybe match in store” with explicit merchant-agent policy: floors, exceptions for overstock, bundles, delivery subsidies, walk-away conditions.</p><p>Preparation move: your negotiation strategy becomes versioned, testable, and measurable — the same way you would test pricing algorithms.</p><h3>3) Latency is shelf space</h3><p>Parallel comparison punishes slow endpoints harder than SEO punishes slow pages.</p><p>Preparation move: API SLOs, <strong>caching where truthful</strong>, deterministic read paths, and observability that treats agent traffic as a first-class segment.</p><h3>4) The exchange needs rules, receipts, and audit</h3><p>Agent-to-agent commerce needs non-repudiation, explainability, and dispute hooks: what was offered, under which policy, with which inventory snapshot.</p><p>Preparation move: design the exchange as a contract surface (schemas, events, receipts), not as chat logs.</p><h3>5) Trust packaging moves to proofs, not vibes</h3><p>Agents reward what can be verified: in-stock probability, on-time delivery history, return friction, recall handling, sustainability evidence.</p><p>Preparation move: publish machine-checkable trust signals tied to SKUs and fulfillment nodes.</p><h3>6) Harness your agents before shoppers do</h3><p>If you would not ship pricing logic without backtesting, do not ship merchant-agent behavior without an eval harness: scenarios, competitor moves, buyer profiles, margin outcomes.</p><p>Preparation move: compete on negotiation quality with the same engineering discipline as ad bidding or revenue management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*04_b8sB7nO4pS4JlZhy3Wg.png" /><figcaption>Winners &amp; Losers in Headless Retail</figcaption></figure><h3>How shoppers use headless retail (the human side stays — but moves)</h3><p>Shoppers do not disappear. Decision labor moves off the browser and into a smaller number of high-leverage interactions.</p><h3>1) Intent first, browsing optional</h3><p>The shopper states outcomes and constraints: budgets, diets, ethics, time windows, substitutes allowed, “never again” brands.</p><p>The buyer agent does elimination, not scroll-surfing.</p><h3>2) Approval is the new checkout</h3><p>Instead of a cart, shoppers get summaries: what was filtered out, what trade-offs were made, what concessions were won, what risks remain (delivery uncertainty, substitute quality).</p><p>They approve policies as much as baskets: auto-approve under X, ask me if margin-sensitive categories shift, escalate if negotiation crosses a boundary.</p><h3>3) Personal “heads” become the UX errm AX</h3><p>The shopper’s interface becomes their consolidated view — tuned to visual vs. numeric preference, accessibility needs, household rules — while retailers compete on offer quality underneath.</p><h3>4) Negotiation becomes legible, not sleazy</h3><p>When negotiation is visible as structured rationale (“matched competitor X,” “could not meet price without breaking delivery SLA,” “premium positioning: recipe value add instead of discount”), shoppers experience it as service, not dark patterns — <em>if</em> transparency is enforced.</p><h3>5) Trust migrates to the buyer agent relationship</h3><p>Shoppers will reward agents that prove faithfulness: privacy, clawbacks on bad substitutions, auditable decision traces, and predictable escalation to humans for high-stakes categories.</p><h3>The uncomfortable strategic line</h3><p>Headless retail rewards coherence over chrome.</p><p>Retailers who win will not be the ones with the prettiest storefront alone. They will be the ones whose truth + policy + fulfillment stack is so strong that any buyer agent prefers them — because they are faster to verify, cheaper to transact with, and safer to trust.</p><p>Retailers who lose will keep polishing a storefront that no longer gates demand.</p><h3>Conclusion</h3><p>Omni-channel asked: how do we meet customers wherever they are?</p><p>Agentic commerce asks: how do we win when the customer sends a representative that never “enters” our store?</p><p>Headless retail answers: by making the retail core — data, policy, fulfillment proof, and negotiation discipline — independent of any single head.</p><p>If you are building agentic retail demos and harnesses already, you are not early — you are aligning architecture with where the interface is going.</p><p>Thanks for reading. If you are experimenting with merchant-agent policies, buyer-agent trust models, or exchange-level contracts, I would like to hear how you are measuring what “good” means when nobody clicks your buttons.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e4b92564a77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Convergence of Telemetry and AI: Unified Storage Backends for AIOps]]></title>
            <link>https://medium.com/@andreas.spanner/the-convergence-of-telemetry-and-ai-unified-storage-backends-for-aiops-cafa89bea2de?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/cafa89bea2de</guid>
            <category><![CDATA[aiops]]></category>
            <category><![CDATA[data-storage]]></category>
            <category><![CDATA[telemetry]]></category>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[logs]]></category>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 13:16:38 GMT</pubDate>
            <atom:updated>2026-03-05T06:39:36.368Z</atom:updated>
            <content:encoded><![CDATA[<p>updated on March 5 2026 to include OceanBase as requested.</p><p>TL;DR; This blog provides an analysis of the leading open-source single-backend storage solutions, their application across the AIOps data lifecycle— from training to inference — codified in a <a href="https://github.com/lfedgeai/AIOps/tree/main/research/telemetry_storage_backend">Linux Foundation led comparison harness</a>.</p><p>The digital transformation into distributed computing (hello cloud native microservices architectures!) of the enterprise has created massive volumes of telemetry data — logs, metrics, and traces. It has long outpaced the capacity of human-led operations to manage it. In this landscape, Artificial Intelligence for IT Operations (<strong>AIOps</strong>) has emerged not merely as an efficiency tool but as a <strong>fundamental necessity</strong> for maintaining service availability and performance in complex, cloud and edge-native environments. The efficacy of any AIOps implementation is irrevocably tied to its data foundation. Specifically, the ability to store, query, and analyze diverse telemetry signals within a single, high-performance backend has become the defining architectural challenge.</p><h3>An Evolution and where we came from</h3><p>The “Three Pillars of Observability” — logs, metrics, and traces — were traditionally treated as distinct entities, each with its own specialized storage engine and query language. Metrics were relegated to Time-Series Databases (TSDBs) optimized for numerical aggregation, logs to inverted-index search engines for full-text discovery, and traces to specialized distributed tracing backends — all allowing for specialized optimisation.<br> <br>On the other hand this led to siloed product teams, tool sprawl, missed signal correlation and hence slow pattern recogntion and causality chains.</p><h3>What AIOps needs</h3><p>High fidelity data is necessary to perform event correlation, anomaly detection, automated root-cause-analysis (RCA), and remediation. The target state of autonomous operations needs a different storage architecture — one that changes from simple data-persistence to supporting complex analytical workloads across <strong>volume</strong> (petabytes of data), <strong>velocity</strong> (millions of events per seconds) and <strong>variety</strong> (structured metrics, semi-structured logs, and highly relational traces).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*msBT_aDMzljC6fB4ySTmYw.png" /><figcaption>Traditional Telemetry Storage backends VS AIOps Challenges</figcaption></figure><p>The traditional federated multi-storage backend architecture involves a combination of Prometheus (metrics), Grafana Loki (logs) and Tempo or Jaeger for traces. <br>This is context-switching heavy where engineers and AI agents juggle</p><ul><li>Multi query dialects (Prom/Log/TraceQL)</li><li>High-cardinality data</li><li>Different schemas</li><li>Additional middleware/tools for data normalization</li></ul><p>in order to reconstruct events and system state. This ultimately leads to increased Mean Time to Detect (MTTD) and Mean time to Resolution (MTTR) — which is the opposite of what we want.</p><p>Unified backends address these limitation by ingesting all signals into a single, high-performance datastore, often using columnar storage egnines to enable observability science, allowing to join telemetry data with business metrics (revenue per user activity) based on standard SQL.</p><h3>Open Source based Unified Architectures</h3><p>Unified Architectures based on columnar databases scan and aggregate only necessary fiels and deliver sub-second query performance across petabytes of data. This architectural shift is important to drive cost-reducation through compression in modern observability stacks.</p><p>The open-source market for unified telemetry is currently dominated by projects that prioritze performance, SQL compatibility and scalability, such as:</p><ul><li><a href="https://clickhouse.com/"><strong>ClickHouse</strong></a> has emerged as a standard go-to for high-performance anlaytical storage. It’s columnar architecture is designed for scale and complexity of modern telemetry solutions, allowing sub-second performance on high-cardinality data.</li><li><a href="https://doris.apache.org/"><strong>Apache Doris</strong></a><strong> </strong>is based on an MPP (Massively Paralell Processing) architecture, specifically optimized for high-throughput ingestions and sub-second query latency. It provides a unified lakehouse architectures, allowing direct access to stored data in formats like Hive, Iceberg, and Parquet, which is great for AIOps environments that need to combine live telemetry with historical data for model training.</li><li><a href="https://druid.apache.org/"><strong>Apache Druid</strong></a><strong> </strong>is designed for sub-second analytical queries across massive, real-time streaming data, great for streaming integration via Kafka providing arriving data for queries immediately.</li><li>Upon request I also included OceanBase, a row based OLTP optimised database engine.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*WlGAmN-6aXz8F39Nr35LYQ.png" /><figcaption>A comparison of Apache Druid/Doris and ClickHouse</figcaption></figure><h3>AIOps Context: Model Training &amp; Inference</h3><p>In the AIOps lifecycle, telemetry storage serves two masters: offline <strong>training</strong> for machine learning and online <strong>inference</strong> for real-time detection and anlysis.</p><p><strong>Model Training</strong> for anomaly detection and failure prediction requires access to historical data. Columnar storage is a good choice because ML features are derived from a smaller subset of total telemetry fields, reading only the necessary columns and reducing the I/O bottleneck for model training. A unified backend also mitigates differences of data formats or data distribution between model training and inference. Here we need high throughput.</p><p><strong>Model Inference</strong> is about analyzing incoming telemetry streams to provide proactive insights. This requires high IOPS and low latency. The backend needs to support “point-in-time” queries to reconstruct the state of a system at the time when an anomaly occured. In an agentic AIOps architecture the storage must be able to deal with high concurrency supporting multiple agents querying the system simultaneously.</p><h3>The Rubber and the Road</h3><p>The <a href="https://github.com/lfedgeai/AIOps/tree/main/research/telemetry_storage_backend">AIOps project under the LFEdge</a> umbrella has created a research project specific to the evaluation of the aforementioned aspects.</p><p>The research project scope is about comparing unified telemetry storage options for AIOps suitability and does this across two different test scenarios: data ingestions and data retrieval.</p><h3><strong>Comparing Data Ingestion</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*q7u8VmFUaKtrPwC9-s5ZjA.png" /></figure><p>The ingestion benchmarks include a batch file load and streaming data scenario.</p><p>In the <strong>batch load</strong> scenario the existing static data from the project’s telemetry_data/ folder are replayed into Doris, ClickHouse, and Druid via a specific data loader:</p><ul><li>Doris: Stream Load HTTP API (`loaders/replay.py`)</li><li>ClickHouse: HTTP INSERT (`loaders/replay_clickhouse.py`)</li><li>Druid: Native batch ingestion via Overlord (`loaders/replay_druid.py`)</li><li>OceanBase via Python’s pymysql driver</li></ul><p>All three backends get identical data. Ingest duration and rows/sec are measured per backend.</p><p>The <strong>OTLP ingestion</strong> sends the amount of desired number of spans, logs and metrics via telemetrygen to the OTEL Collector. The collector batches and exports to Doris and ClickHouse only. Rows are counted in `otel.*` tables after a short flush delay; duration is end-to-end (telemetrygen start → last batch exported).</p><p>The OpenTelemetry Collector has currently no Druid exporter. Doris and ClickHouse both have official OTLP/contrib exporters; Druid typically ingests OTLP data via Kafka (collector → Kafka → Druid). Adding Druid to the OTLP path would require a Kafka-based pipeline, which would distort the benchmark and was hence not implemented.</p><h3>Query Performance</h3><p>In this section we compare the query performance across the different backends by executing the same semantic query. The right most column shows the fastes backend and how much faster it was compared to the slowest backend in percent. <br>You see OceanBase timing out and being slow in critical AIOps related scenarios like finding related signals by error, correlation id or timestamp. This is likely due to how full-table scans are implemented over large text columns (ie the log message). OceanBase is row-oriented. For this the query has to read full rows, including the message column. With a 200kB message over 5,000 rows that equates to 1GB of data. The AIOps related query performance bench is analytical and scan-heavy, while OceanBase is tuned for ACID OLTP — which explains the result.</p><p>ClickHouse and Druide are columnar and scan only the columns they need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tepfoeEjBHwZFjxfxDxDAw.png" /><figcaption>Comparing Query Performance</figcaption></figure><p>After ingestion the runner executes the same set of SQL queries on each backend. Each query file in `queries/{doris,clickhouse,druid}/*.sql` is run once per backend via its native API.</p><p>The query runner records the following items:</p><ul><li><strong>Latency (s)</strong> — Wall-clock time from query start to completion (includes network, parsing, execution)</li><li><strong>Rows</strong> — Number of rows in the <strong>result set</strong> returned by the query (not rows scanned). Queries use `LIMIT 20` or `LIMIT 100` similar to production use, so row counts are capped.</li></ul><p>Finally a report is created and includes:</p><ul><li><strong>Data volume (full scan)</strong> — Total rows in `telemetry.*` at query time (logs + spans + metrics) and the latency of a full COUNT(*) scan per table. This confirms the combined dataset size and measures full-scan performance.</li><li><strong>Query comparison</strong> — This is the meat on the bone: the bar chart and table with latency, result row count, and error per backend. Includes a `data_volume` query that runs full COUNT on all three tables. The fastest backend and % difference vs. the slowest are shown.</li></ul><p>To make this a fair comparison all backends query the same data.</p><h3>Conclusion</h3><p>The clear winner across both data ingestion and query performance is ClickHouse.</p><p>Druid strength is it’s native Kafka integration which is great for real-time anomaly detection but outside the scope of this bench. This is something to keep in mind if OTEL collectors are not the predominant integration point.</p><p>Doris is said to be strong in multi-user scenarios, which might become important in multi-agent AIOps Scenarios, but again we haven’t included it in the test scenarios.</p><p>As many things in relation to AI this evaluation benchmark is something that has to evolve as new players, new architectures and new models, new capabilities, and techniques come onto the scene.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cafa89bea2de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Paying Attention to your MTU is all you need]]></title>
            <link>https://medium.com/@andreas.spanner/paying-attention-to-your-mtu-is-all-you-need-74e9b9d7d8e5?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/74e9b9d7d8e5</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[wireguard]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[vpn]]></category>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 11:08:27 GMT</pubDate>
            <atom:updated>2025-11-12T12:08:49.446Z</atom:updated>
            <content:encoded><![CDATA[<p>TLDR; If you are about to spend hours to debug your wireguard configuration: DON’T. Just reduce your MTU (Maximum Transmission Unit) size, say down from 1420 to 1280.</p><p>I’ve setup my wireguard (wg) VPN to access my GPUs while I am on the road. Weirdly, the connection established fine, ssh connections worked, but the terminal hung, pings worked, but http(s) and rdp requests didn’t. So, go figure. And that’s what I did.</p><p><strong>Why do you need MTU anyway?</strong></p><p>Firstly, hardware has finite buffer memory to store incoming packets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*w0IU66cXG7DACe5xtX99iQ.png" /><figcaption>Buffer VS Packets</figcaption></figure><p>Without MTU limit several things could happen such as:</p><ul><li>Sender could transmit 1 GB packet</li><li>Receiver’s 2KB buffer overflows</li><li>Packet lost, hardware crashes, chaos ensues</li><li>The noisy neighbour problem</li></ul><p>With MTU you get predictible packet sizes, appropriately sized buffers and compatible hardware design leading to reliable communication, low latency and fair sharing of bandwidth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*JNC_Jx3wqHLaObyLrad6LA.png" /><figcaption>no-MTU (top) VS MTU (bottom) comparison</figcaption></figure><p>So MTU alone addresses three of the fallacies of distributed computing which are that the network is reliable, homogeneous, and the latency is zero.</p><p>With a free for all (no MTU) a single transmission error on a large file would literally end the day for everyone:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*tSm57qGSfjZoqUP2eZ0o_w.png" /><figcaption>Errors &amp; retransmissions Without VS with MTU: Smaller packets mean more efficient error recovery</figcaption></figure><p><strong>Why 1500 bytes and what it’s for you and me</strong></p><p>The 1500-byte MTU orginated through the IEEE 802.3 standard. If the payload is 1500 bytes and the header 80 then the total packet size is 1580 and so the packet is dropped. The router usually responds with ‘Fragmentation Needed’ but many security policies block ICMP traffic hence that error message never makes it to the sender.</p><p>While smaller MTU sizes require more packets and hence more headers the efficiency goes down, but the reliability and throughput goes up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*3hWyaN9KihUquVrxxE1kRQ.png" /><figcaption>Efficiency loss of 0.7% if the packet size is reduced from 1500 to 1420</figcaption></figure><p><strong>When is larger MTU actually better?</strong></p><p>Larger MTU is better when:</p><ul><li>The entire path supports it (no intermediate routers with lower MTU)</li><li>No encapsulation overhead (direct Ethernet, no VPN)</li><li>Jumbo frames (9000 MTU on enterprise networks)</li><li>High-throughput, low-latency networks (data centers)</li></ul><p>But for WireGuard over the internet: smaller is safer and more reliable.</p><p>“A smaller packet that arrives is infinitely better than a larger packet that doesn’t.”</p><p><strong>IPv4 VS IPv6</strong></p><p>The minimum MTU is 576 in IPv4 and 1280 bytes in IPv6. <br>In IPv4 routers can fragment packets if they are too large; IPv6 routers do NOT fragment packets. If a packet is too large, the router drops it and sends and ICMPv6 “Packet Too Big” message back to the source. The source must then reduce the packet size or fragment before sending.</p><p><strong>Summary</strong></p><p>In summary steps to success were:</p><ul><li>Configuring wireguard access on your router</li><li>Downloading the file and your VPN client</li><li>Adding a smaller MTU size (here 1280) as my routers defaults to IPv6</li><li>Using the wireguard CLI tools wg-quick &amp; wg over NetworkManager to start/stop the wireguard connection.</li></ul><pre>[Interface]<br>PrivateKey = Your Private Key<br>Address = 192.168.x.y/24<br>DNS = 192.168.x.1<br>DNS = your.dns.name<br>MTU= 1280<br><br>[Peer]<br>PublicKey = Your Public Key<br>PresharedKey = Your Pre-Shared Key<br>AllowedIPs = 192.168.x.y/24<br>Endpoint = endpoint.yourdomain.io:58950<br>PersistentKeepalive = 25</pre><p>Good Luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74e9b9d7d8e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenShift with GPU support on your Laptop]]></title>
            <link>https://medium.com/@andreas.spanner/openshift-with-gpu-support-on-your-laptop-6552c3932b34?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/6552c3932b34</guid>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[openshift]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 10:33:49 GMT</pubDate>
            <atom:updated>2025-10-23T09:51:44.493Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>TL;DR;</strong> I recently got a new Lenovo p16 Gen 2 with an NVIDIA ADA RTX 3500 GPU; this blog post documents utilizing both my iGPU (integrated GPU) Intel i915 for the laptop display and the second display as well as reserving the dGPU (dedicated GPU) NVIDIA for AI related tasks and workloads.</p><p>Good thing is that my dear amigo Daniel C has the same laptop just with a NVIDIA ADA RTX 2000 — so we can validate the setups with each other. Daniel runs RHEL10, I run Fedora42 (F42).</p><p>Our AI friends (Gemini, Grok, etc) are full of advice but because the hardware is fairly new they haven’t figured it out yet; hence this blog post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FWe_Zhbtngnu3pKXnGaGDw.png" /><figcaption>Yakko Rulez!</figcaption></figure><p>To install OpenShift we use <a href="https://ozchamo.github.io/YAKKO/">YAKKO</a>. It’s probably the easiest tool to get multi-node OpenShift running on kvm. You simply git clone the YAKKO repo, sudo and are good to go. The defaults are all very sensical; it even configures and setups up DNS and HAProxy which allows you to take your OpenShift cluster on your laptop anywhere you go.</p><pre>sudo ./yakko</pre><p>Befor you install your OCP cluster, the first thing you have to tweak are you kernel boot parameters. You need to tell your O/S to keep the hands of the dGPU. You do this via</p><ul><li>blacklisting the drivers</li><li>mapping the dGPU PCI address as a pci.stub</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wmFouJi2E9DC8hr0EcCX3A.png" /><figcaption>Your boot loader config blacklisting the noveau driver and stubbing your dGPU</figcaption></figure><p>The screenshot shows you how to do it:</p><pre>rd.driver.blacklist=nouveau #prevents the noveau driver loaded into the RAM disk<br>modprobe.blacklist=nouveau #prevents the noveau kernel module from loading<br></pre><p>The key difference between modprobe.blacklist=nouveau and rd.driver.blacklist=nouveau lies in <strong>when</strong> during the Linux boot process the nouveau kernel module is prevented from loading. One acts early during the initial RAM disk (rd/initramfs) stage, while the other (modprobe) acts later when the main system is running. The initramfs is a temporary in-memory root filesystem loaded during the inital phase of the boot process. modprobe is a linux program that manages the loading/unloading of kernel modules during runtime. The system wide blacklisting prevents the driver to be loaded. However it won’t unload it if it’s already loaded, which is why we need the rd.driver directive as well.</p><p>Noveau is an open source NVIDIA GPU driver. Blocking the driver early on is crucial: because the nouveau driver could interfere with early boot processes, such as making itself available or attaching itself to the NVIDIA GPU as the driver. By blacklisting it here, you ensure nouveau doesn&#39;t even get a chance to touch the GPU.</p><h3>Examining your system</h3><p>Let’s check what GPUs your system recognises</p><pre>lspci -k | grep -A 2 -i &quot;VGA&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOTpWbGWV0hhaaGu9oBvTA.png" /></figure><p>Above command shows that 2 VGA PCI devices are found.</p><p>nvidia-smi is correctly saying that it can’t find any NVIDIA drivers or card as we’ve blocked the driver from loading</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AaSU94XpWNlqYQu7qYrOrw.png" /></figure><p>nvtop is an open source tooling (despite the nv naming) introspecting available GPUs. And it also rightly only identifies a single iGPU because no dGPU driver is loaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wp28It6vmXbLIJ3ylKzSpA.png" /></figure><p>And so does the Gnome based Resources app — it only sees the Raptor Lake UHD Graphics iGPU:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ja78HMWtOg6PQdAPMtgsqA.png" /><figcaption>Gnome Resources app</figcaption></figure><h3>Mapping your GPU to your kvm virtual machine</h3><p>As described earlier I’ve got two GPUs available. To map the PCI port I can use cockpit on port 9090 or VirtMgr.</p><p>On port 9090 you find your cockpit interface</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ex3y9jWiThaeL3_yVNBGsw.png" /><figcaption>Cockpit</figcaption></figure><p>Just ensure it’s enabled via systemctl status cockpit . The cockpit service should show running as per below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHoHx1GRMM-skF5hV4B0bw.png" /></figure><p>Alternatively you can use the VirtManager application.</p><p><strong>Stop! the virtual machine before you do the device mapping!</strong></p><p>With YAKKO the command is sudo ./yakko stopcluster &lt;clustername&gt;</p><p>Under ‘Host Devices’ click ‘Add host device’ to map both your NVIDA graphics card as well as the audio controller. Make sure you are on the PCI tab, otherwise the GPU and audio controller won’t show up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LINYn6aXMY3R7H461PJH_A.png" /></figure><p>Then start the cluster with sudo ./yakko startcluster &lt;clustername&gt;</p><h3>In OpenShift (OCP)</h3><p>Once you mapped the dGPU and audio controller, started OCP and logged into your OpenShift console, you have to install the NVIDA Operator as well as the Node Feature Discovery (NFD) operator. Create an instance of NodeFeatureDiscovery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w7RJHrtz5ipjMRHqP-PzcA.png" /></figure><p>Under the NVIDIA GPU Operator create a cluster policy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6lw-9qJV161tiC2Q4Vx-rw.png" /><figcaption>Cluster policy created under the NVIDIA GPU Operator</figcaption></figure><p>This will now allow oc describe node &lt;nodename&gt; | grep gpu to show your GPU and recognise it with <strong>nvidia.com/gpu.present=true</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJIxeUvMDY_Hs8YeSp1aOA.png" /></figure><p><strong>So far, so meh</strong></p><p>While I have now an OpenShift cluster running on a kvm locally, the iGPU display driver doesn’t recognise the external display. I am currently in touch with Lenovo support to get this fixed. I consider the fact that the external display can only be driven by the NVIDIA GPU as a serious design flaw. Anyway, the workaround for now is to change the kernel parameters depending on whether you want to use the dGPU with the laptop display only or use both displays and have no dGPU available for AIML workloads. Crazy I know, but I’ll keep you posted on what Lenovo support suggests. Hopefully Dan and I get a firmware update that gets the external display signal routed via a USB-C port in case the HDMI port is in deed hardwired to the dGPU.</p><p>Here’s the scripts/CLI command you can use to change the boot parameter:</p><pre>❯ cat disableGPUpassthrough.sh<br>grubby --remove-args=&quot;intel_iommu=on iommu=pt pci-stub.ids=10de:27bb &quot; --update-kernel=DEFAULT</pre><pre>❯ cat enableGPUpassthrough.sh<br>grubby --args=&quot;intel_iommu=on iommu=pt pci-stub.ids=10de:27bb &quot; --update-kernel=DEFAULT</pre><p>With Yakko the recommendation is to have 2 clusters installed, one with dGPU mapping and one without.</p><p>Let me know if you know of any better workarounds or if you found a permantent fix.</p><h3>Conclusion</h3><p>It’s hacky, but it works. Another way to use this is to use the new laptop as a headless/server type workstation and ssh into it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6552c3932b34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From KingKong to Semikong: Embracing GenAI in the Semiconductor Industry]]></title>
            <link>https://medium.com/@andreas.spanner/kingkong-was-yesterday-today-its-semikong-790a0a0816e7?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/790a0a0816e7</guid>
            <category><![CDATA[foundation-models]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[semiconductors]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 14:10:37 GMT</pubDate>
            <atom:updated>2025-07-08T05:18:48.818Z</atom:updated>
            <content:encoded><![CDATA[<p>TL;DR: In this article I am exploring how we can improve the performance (read accuracy/knowledge) and hence ROI of running an industry specific foundation model like Semikong-70B. And while KingKong was a 1,000 pound gorilla, let’s see how our 70B-parameter SemiKong performs with and without helpers such as RAG, embeddings and Docling.</p><p><a href="https://www.semikong.ai/">Semikong</a> is the worlds first Semiconductor Industry purpose built casualLM based on the Llama-3 transformer architecture, 70 billion parameter instruction-tuned model, featuring parallel attention which you can find <a href="https://huggingface.co/pentagoniac/SEMIKONG-70B">here</a>.</p><p>However customers in the semicon industry have reported dissatisfaction with the performance of the model and the cost associated with enhancing the knowledge with confidential and proprietary information through fine tuning or model alignment. While RAG and embeddings are nothing new, I want to specifically work with a semicon industry model and enhance specific semicon industry knowledge further. Highly technical semicon industry information is often presented in tables, schematics and other non-standard-text based information sources. Hence we need advanced document parsing capabilites, chunking strategies, and a performant embeddings model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*dHvTbNu9bzbxhkC2YBJKUw.png" /><figcaption>Technical semiconductor industry specific documentation ingested via Docling to enable Retrieval-Augmented-Generation (RAG) combined with the Semikong-70B LLM</figcaption></figure><p>A quick paragraph to demystify some technical jargon: The model uses 64 attention heads, which means the model can focus on different parts of the input sequence simultaneously. The num_key_value_heads: 8 tells us tha the Grouped-Query Attention (GQA) is 64/8 = 8, which means that a group of 8 query heads share the key value (kv) store. This is to reduce computation cost and memory usage compared to Multi-Head Attention (MHA). The activation function used in the feed-forward network is SiLu (Sigmoid Linear Unit or Swish).<br>Interestingly the pretraining_tp: 1 suggestes that no tensor parallelism was used during pre-training, which means training was not split across GPUs. That’s a bit unusual for a 70B model, as large models are typically trained with tensor parallelism.</p><p>Now let’s put it to work.</p><h3><strong>Model Deployment</strong></h3><p>The easiest and most inference-tuned way to deploy this model is via the Red Hat OpenShift AI built in vLLM runtime with built-in NVIDIA GPU support. Here’s the deployment configuration for this model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*V1UAkKNI4P4lUaOOajHTVw.png" /><figcaption>RHOAI deployment configuration for the Semikong-70B LLM</figcaption></figure><p>As a first test it’s quicker to deploy without token authentication, but once the model access works then the recommendation is to turn ‘Require token authentication’ on and add the bearer token to your curl command header</p><pre>curl -X POST &quot;https://semikong-model.apps.cluster.com/v1/chat/completions&quot; \<br>        -H &quot;Authorization: Bearer &lt;your_token&gt;&quot; \<br>        -H &quot;Content-Type: application/json&quot; \<br>        --data &#39;{<br>                &quot;model&quot;: &quot;semikong&quot;,<br>                &quot;messages&quot;: [<br>                        {<br>                                &quot;role&quot;: &quot;user&quot;,<br>                                &quot;content&quot;: &quot;What’s the difference between FEOL, MEOL, and BEOL&quot;<br>                        }<br>                ]<br>        }&#39;</pre><p>Upon successful model call the Semikong-70B response should look similar to this:</p><pre>{&quot;id&quot;:&quot;chatcmpl-8d627410-d138-4ec2-bdfb-9b63515080b5&quot;,&quot;object&quot;:&quot;chat.completion&quot;,&quot;created&quot;:1751267447,&quot;model&quot;:&quot;semikong&quot;,&quot;choices&quot;:[{&quot;index&quot;:0,&quot;message&quot;:{&quot;role&quot;:&quot;assistant&quot;,&quot;reasoning_content&quot;:null,&quot;content&quot;:&quot;FEOL, MEOL, and BEOL are three segments of the process flow in the production of integrated circuits (ICs) or semiconductors.\n\n1. Front-end-of-line (FEOL): This stage involves designing, developing, and fabricating the raw circuitry layers of the IC. It includes activities such as mask design, photolithography, etching, and deposition of insulators, conductors, and semiconductors.\n\n2. Middle-end-of-line (MEOL): Also known as the \&quot;wafer level\&quot; or \&quot;semiconductor back-end,\&quot; this stage encompasses the manufacturing processes that take place after the front-end processes. MEOL includes activities such as wafer sorting, dice sorting, wire bonding, and package assembly.\n\n3. Back-end-of-line (BEOL): This stage focuses on the interconnection of the individual components within the IC package. BEOL involves activities such as flip chip bonding, ball bonding, reflow soldering, and encapsulation.\n\nIn summary, FEOL is the design and fabrication of the raw circuitry layers, MEOL is the wafer level manufacturing processes, and BEOL is the interconnection of components within the IC package.&quot;,&quot;tool_calls&quot;:[]},&quot;logprobs&quot;:null,&quot;finish_reason&quot;:&quot;stop&quot;,&quot;stop_reason&quot;:null}],&quot;usage&quot;:{&quot;prompt_tokens&quot;:38,&quot;total_tokens&quot;:280,&quot;completion_tokens&quot;:242,&quot;prompt_tokens_details&quot;:null},&quot;prompt_logprobs&quot;:null}%   </pre><p>The answer suggests that the model is not unfamiliar with the semiconductor industry terminology.</p><h3>Prompt Engineering</h3><p>To keep the creativity to a minimum in a highly precise and technical context the prompt is engineered as follows:</p><pre>&quot;content&quot;: f&quot;Using the following context, answer the question. If the answer is not in the context, state that you cannot answer from the provided information.\n\nContext:\n{context}\n\nQuestion: {query}\n\nAnswer:&quot;</pre><h3>Testing</h3><pre>curl -X POST &quot;https://semikong-model.tld.com/v1/chat/completions&quot; \<br>     -H &quot;Authorization: Bearer &lt;your token here&gt;&quot; \<br>     -H &quot;Content-Type: application/json&quot; \<br>     --data &#39;{<br>         &quot;model&quot;: &quot;semikong&quot;,<br>         &quot;messages&quot;: [<br>             {<br>                 &quot;role&quot;: &quot;user&quot;,<br>                 &quot;content&quot;: &quot;What’s the difference between  FEOL, MEOL, and BEOL&quot;<br>             }<br>         ]<br>     }&#39;</pre><p>The output shows that the model indeed knows the difference between Front-end-of-line (FEOL), Middle-end-of-line (MEOL), and Back-end-of-line (BEOL) process activities in the semicon industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBlVRE7oeTZQdwl3Y-_t1Q.png" /><figcaption>Semikong response on a general semicon industry knowledge query</figcaption></figure><p>The next step is to query for very specific information. I will do that twice:</p><ol><li>With RAG, Docling and advanced content chunking modules (HybridChunker)</li><li>Witout RAG, and Docling asking the Semikong model directly without any enhanced context.</li></ol><p>For the use case: I just ordered a <a href="https://sigs.centos.org/automotive/provisioning/flashing-texas-instruments/">AutoSD</a> reference board from Texas Instruments at ti.com: the AM69 Processor Starter Kit. I am using the <a href="https://www.ti.com/lit/pdf/spruj70">user manual</a> for testing the effictiveness of the Docling’s HybridChunker in my RAG setup.</p><p>Like before, I query my Semikong model on OpenShift AI, this time I am asking about a table in the document as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9x4FBetg95OC6MvkoX-aQ.png" /><figcaption>Power supply allocation table as shown on page 12 of the user manual</figcaption></figure><blockquote>What’s the processor core power supply allocation and description?</blockquote><h3>The Result</h3><p>The answer with the Docling/RAG enhanced context is showing that Docling has indeed been able to parse and chunk the document according to it’s semantic meaning and provide it via the query context:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*HWaeail1GD89esJHU9mayw.png" /><figcaption>The Docling/RAG implementation with the small <em>paraphrase-albert-small-v2 embeddings model answers the query correctly</em></figcaption></figure><p>Compared to the Semikong output without RAG and Docling this shows superior understanding and performance of the Semikong model.</p><p>The Semikong model alone (without Docling &amp; RAG) responds with only general semicon related power supply knowledge, but doesn’t answer the question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNeh_FqIZJPz2ABGQwievQ.png" /></figure><p>The code can be found <a href="https://github.com/aspanner/semicon/tree/main/semikong">here.</a></p><h3>Conclusion</h3><p>In this post, we’ve seen how advanced document converters (here: Docling) and optimized chunking strategies (here: HybridChunker) can significantly enhance the use of confidential and proprietary knowledge on top of industry specific foundation models (here: Semikong) at a low cost. Lower probably than an agentic approach to this use case as <a href="https://medium.com/@ahilanp/the-cost-of-thinking-agentic-ai-inference-economics-and-the-future-of-hybrid-intelligence-1393182abd13">described by Ahilan Ponnusamy in this post.</a></p><p>In the next post we will introduce an agentic approach to industry specific foundation models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=790a0a0816e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Geospatial Granite Models on OpenShift]]></title>
            <link>https://medium.com/@andreas.spanner/geospatial-granite-models-on-openshift-4119e7c1b04d?source=rss-e997af3d81ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/4119e7c1b04d</guid>
            <dc:creator><![CDATA[Andreas Spanner]]></dc:creator>
            <pubDate>Sun, 18 May 2025 15:31:10 GMT</pubDate>
            <atom:updated>2025-10-22T11:41:45.826Z</atom:updated>
            <content:encoded><![CDATA[<h3>Geospatial Prithvi Models on OpenShift</h3><p>Before we start:<br>A big shout out to Michael Cawte. Thanks for your awesome work on both the front and back end. Without you this wouldn’t have come together in such a short amount of time!</p><p>This is the first deployment of the IBM Granite Geospatial <a href="https://arxiv.org/abs/2310.18660">Prithvi models</a> on Red Hat OpenShift (AFAIK). In this case we use the <a href="https://huggingface.co/ibm-granite/granite-geospatial-uki-flooddetection">UK flood detection model</a>. The model predicts areas of water from Sentinel-2 and Sentinel-1 SAR imagery and was trained on flood events from the United Kingdom and Ireland.<br>This can be useful for emergency services use cases, urban/rural planning, mine sites, bushland backburning and general infrastructure investments such as airports, bridges, etc.</p><p>The Prithvi models are pre-trained and fine-tuned foundation models based on geospatial data. The models are transformer-based geospatial foundation models pre-trained with more than 1 Terra Byte of multispectral satellite imagery from the Harmonized Landsat-Sential 2 (HLS) dataset.</p><p>Applications of those models are cloud gap imputation, flood mapping, wildfire scar segmentation and more.</p><p>The framework to run inference is called <a href="https://github.com/IBM/terratorch">TerraTorch</a> (kindly open sourced by IBM) and because no serving engine supports those models out-of-the-box yet the solution uses a python fastAPI wrapper around TerraTorch. Furthermore Michael wrote a typescript frontend to visualise the floodmapping which you can see below. The frontend overlays the flood prediction output (TIFF format) with a standard map via GPS coordinates. TIFF stands for Tag(ged) Image File Format, used for high-quality raster graphics as it supports lossless compression which makes it perfect for use cases who need to preserve image detail and color depth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NhpWw0-6DeAwfUYPW8Fwsw.png" /><figcaption>UK Flood prediction based on the granite-geospatial-uki-flooddetection model</figcaption></figure><p>From an architecture approach we have the following components at work:</p><ul><li>OpenShift — as the foundational cloud platform for maximum deployment flexibility</li><li>Minio — as the S3 compatible storage backend</li><li>Python — the coding framework</li><li>Terratorch — the python framework for working with geospatial models.</li></ul><p>The logical architecture looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*8tiH06-xX5-f9h0W6VLszQ.png" /><figcaption>Logical Architecture — A typical prototyping pattern</figcaption></figure><p>The architecture we employed is somewhat typical for rapid prototyping AI usecases within the context of non-confidential or otherwise highly sensitive data: <br>We are using OpenShift as the container platform to achieve easy cloud/infra abstraction for portability, we are using k8s containers, deployments and buildconfigs, a containerfile to build the container, OpenShift services, secrets, PV/PVCs and routes with edge termination/passthrough. We are not yet using MLOps flows as production rollouts, and scale is not yet a concern.</p><p>The OpenShift dashboard for our namespace shows the following invetory of resources in use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*_V93mSAEL4ajNgz6G24x1A.png" /><figcaption>OpenShift dashboard showing the namespace resources in use for our experimental deployment</figcaption></figure><p>The Buildconfig points to the git repo and branch which contains the Container/Dockerfile in use.</p><pre>kind: BuildConfig<br>apiVersion: build.openshift.io/v1<br>metadata:<br>  name: flood-detection<br>  namespace: sectionsix<br><br>  annotations:<br>    kubectl.kubernetes.io/last-applied-configuration: |<br>      {&quot;apiVersion&quot;:&quot;build.openshift.io/v1&quot;,&quot;kind&quot;:&quot;BuildConfig&quot;,&quot;metadata&quot;:{&quot;annotations&quot;:{},&quot;name&quot;:&quot;flood-detection&quot;,&quot;namespace&quot;:&quot;sectionsix&quot;},&quot;spec&quot;:{&quot;output&quot;:{&quot;to&quot;:{&quot;kind&quot;:&quot;ImageStreamTag&quot;,&quot;name&quot;:&quot;flood-detection:latest&quot;}},&quot;source&quot;:{&quot;git&quot;:{&quot;ref&quot;:&quot;openshift&quot;,&quot;uri&quot;:&quot;https://github.com/mcawte/flood_detection.git&quot;},&quot;type&quot;:&quot;Git&quot;},&quot;strategy&quot;:{&quot;dockerStrategy&quot;:{&quot;dockerfilePath&quot;:&quot;Dockerfile&quot;},&quot;type&quot;:&quot;Docker&quot;},&quot;triggers&quot;:[{&quot;type&quot;:&quot;ConfigChange&quot;},{&quot;type&quot;:&quot;ImageChange&quot;}]}}<br> spec:<br>  nodeSelector: null<br>  output:<br>    to:<br>      kind: ImageStreamTag<br>      name: &#39;flood-detection:latest&#39;<br>  resources: {}<br>  successfulBuildsHistoryLimit: 5<br>  failedBuildsHistoryLimit: 5<br>  strategy:<br>    type: Docker<br>    dockerStrategy:<br>      dockerfilePath: Dockerfile<br>  postCommit: {}<br>  source:<br>    type: Git<br>    git:<br>      uri: &#39;https://github.com/mcawte/flood_detection.git&#39;<br>      ref: openshift<br>  triggers:<br>    - type: ConfigChange<br>  runPolicy: Serial</pre><p>The container/Dockerfile triggers the main.py to start</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*NjI6eXgEgFtiMWYJp5wDpQ.png" /><figcaption>Containerfile triggers main.py</figcaption></figure><p>The main.py code starts the fastAPI server</p><pre># Add this at the end of the file to actually run the server when main.py is executed<br>if __name__ == &quot;__main__&quot;:<br>    import uvicorn<br>    print(&quot;Starting FastAPI server...&quot;)<br>    uvicorn.run(app, host=&quot;0.0.0.0&quot;, port=8080)</pre><p>The pod logs show that the server is ready for http based inference:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*l0G5D3DadrYWge0Jf7IWYQ.png" /><figcaption>flood-detection pod is open for business</figcaption></figure><p>and the fastAPI decorator kicks off the code that assembles the inprocess TerraTorch command, because TerraTorch doesn’t support remote inference yet as mentioned before.</p><pre>@app.post(&quot;/predict-stream/&quot;)<br>async def predict_flood_streaming(<br>    background_tasks: BackgroundTasks,<br>    file: UploadFile = File(...,<br>                            description=&quot;Input TIFF file for flood detection.&quot;)<br>):<br>    &quot;&quot;&quot;<br>    Endpoint that streams a TIFF file for model prediction and stores the output in MinIO.<br><br>    This endpoint:<br>    1. Takes an uploaded TIFF file<br>    2. Streams it for processing by the terratorch model<br>    3. Stores the output in MinIO storage<br>    4. Returns the prediction result URL<br><br>    Returns:<br>        A JSON object with the MinIO URL of the prediction result<br>    &quot;&quot;&quot;<br>    if not file.filename.lower().endswith(&quot;.tif&quot;) and not file.filename.lower().endswith(&quot;.tiff&quot;):<br>        raise HTTPException(<br>            status_code=400, detail=&quot;Invalid file type. Only .tif or .tiff files are accepted.&quot;)<br><br>    # Create a temporary directory for this request<br>    temp_dir = tempfile.mkdtemp(prefix=&quot;flood_detect_stream_&quot;)<br>    temp_dir_path = Path(temp_dir)<br>    input_dir = temp_dir_path / &quot;input&quot;<br>    output_dir = temp_dir_path / &quot;output&quot;<br>    input_dir.mkdir()<br>    output_dir.mkdir()<br><br>    input_filepath = input_dir / file.filename<br>    print(f&quot;Input file path is: {input_filepath}&quot;)<br><br>    # Clean up temp directory function<br>    def cleanup_temp_dir(temp_dir_path: Path):<br>        &quot;&quot;&quot;Removes the temporary directory.&quot;&quot;&quot;<br>        try:<br>            shutil.rmtree(temp_dir_path)<br>            print(f&quot;Cleaned up temporary directory: {temp_dir_path}&quot;)<br>        except Exception as e:<br>            print(f&quot;Error cleaning up temp directory {temp_dir_path}: {e}&quot;)<br><br>    try:<br>        # Stream file to temporary storage<br>        with open(input_filepath, &quot;wb&quot;) as buffer:<br>            shutil.copyfileobj(file.file, buffer)<br>        print(f&quot;Input file saved to: {input_filepath}&quot;)<br><br>        # Run terratorch inference<br>        output_filepath = await run_terratorch_inference(<br>            input_dir=str(input_dir),<br>            output_dir=str(output_dir),<br>            input_filename=file.filename<br>        )<br>...</pre><p>Because we want our Prithvi geospatial model close to our inference engine on the OpenShift cluster, we can inspect the assets via our Minio S3 storage tooling showing the model (.ckpt) and it’s configuration (.yaml).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xnfNSsY-ciDPuJK9yrrf7g.png" /><figcaption>\</figcaption></figure><p><strong>Calling the model</strong></p><p>We call the Python fastAPI based TerraTorch wrapper via a curl POST command sending the image to run the flood predication against.</p><pre>curl -X POST  https://flood-detection-route-ai-accelerator.apps.cluster-&lt;your server&gt;.com/predict-stream/  \<br>   -H &quot;accept: application/json&quot;  \ <br>   -H &quot;Content-Type: multipart/form-data&quot; -F &quot;file=@EMSR407_image.tif&quot;</pre><p>and the pod logs then show the successful inference run and that the created overlay .tiff-format image is ready to download from our Minio S3 bucket:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5MWxQdkSrW0XmVNkOk6anA.png" /></figure><p>I hope that has given you a good idea about how to create and run geospatial AI model use cases and the Prithvi model family.</p><p>Please reach out if you have exciting geospatial use cases to discuss.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4119e7c1b04d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>