<?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 Shubham Tiwary on Medium]]></title>
        <description><![CDATA[Stories by Shubham Tiwary on Medium]]></description>
        <link>https://medium.com/@shubhamtiwary914?source=rss-3a21981793fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_D4xPmQe6Rkk2r6Khoopcg.jpeg</url>
            <title>Stories by Shubham Tiwary on Medium</title>
            <link>https://medium.com/@shubhamtiwary914?source=rss-3a21981793fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:21:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shubhamtiwary914/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[Docker 101 — A practical guide]]></title>
            <link>https://medium.com/@shubhamtiwary914/docker-101-a-practical-guide-72c0de7c6b8b?source=rss-3a21981793fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/72c0de7c6b8b</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Shubham Tiwary]]></dc:creator>
            <pubDate>Fri, 16 May 2025 18:09:30 GMT</pubDate>
            <atom:updated>2025-05-16T18:09:30.094Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker 101 — A practical guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xxDWQ2tOlgi4qF1m.png" /><figcaption>docker</figcaption></figure><h3>The Problem it solves</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/0*91UYgdKfRJkkJpMH.png" /><figcaption>docker desktop</figcaption></figure><h4>A case scenario — setup hell</h4><p>This are the docker containers I’m currently running on my PC. Earlier, I’d have to setup manually which would look something like:</p><ul><li>Go to the official site, get hit with the register, verify account &amp; login (forgot you password? another mess to recover that)</li><li>After that, turns out it doesn’t work: go to reddit, find some solution from 7 years ago, a 50/50 hit or miss it does work</li></ul><h4>Another case scenario — “But It works on my machine”</h4><ul><li>You got a windows PC, your friend got a linux/mac, and you wanna deploy to AWS, so there’s something like AMI.</li><li>Code is simple, use git. Wanna share &amp; deploy your local dependencies? good luck testing on each platform &amp; writing README files for “how to run” (realize nobody actually reads that)</li></ul><h4>Context:</h4><p>In case you have no idea what docker is, it is a service that lets you manage isolated environments called <strong>“containers”.</strong></p><p>We’ll go more into that here, but let’s see with a practical way how to do it, then go into the theories..</p><h3>Creating a container</h3><p>First, let’s see how easy it is to create a container</p><p>Let’s go to <a href="https://hub.docker.com/">Docker Hub</a>, a repository for docker “images”. Think of images like blueprints to make a “container”.</p><p>We’ll try to setup a simple nginx container:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TL5SJW6bgpc8SFyj.png" /></figure><p>There’s instructions on how to use this in the same page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v3ZOFEBnhJjsiUqO.png" /></figure><p>Running the command to start the container:</p><pre>docker run --name nginx-dummy -d -p 8080:80 some-content-nginx</pre><p>Then open your web-browser at localhost:8080, and you&#39;ll see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*akloZAUehg5wYRCZ.png" /></figure><p>See? It’s pretty easy once you get the hang of it, you can do the same for things like:</p><ul><li>setting up a database locally like redis, postgres, mongoDB</li><li>setting up services like nginx, grafana, selenium, etc.</li></ul><blockquote><em>Now let’s set this up on your machine, come back and try running this nginx container later after docker installation!</em></blockquote><h3>Docker Installation</h3><blockquote><em>Skip if you already have this done.</em></blockquote><p>What you wanna install is “Docker Desktop”, docker in itself is a collection of tools such as:</p><ul><li><strong>Docker engine.</strong></li><li><strong>Docker CLI.</strong></li><li><strong>Docker daemon.</strong></li></ul><p>Docker desktop has all these packaged, so install only that and you’re set to go.</p><h4><strong>For Windows:</strong></h4><ul><li>Go <a href="https://docs.docker.com/desktop/setup/install/windows-install/">here</a> and follow the steps</li><li>Note that for windows, you have to setup <strong>WSL</strong> (windows support for a linux like environment) — I’ll like up to <a href="https://youtu.be/vxTW22y8zV8?si=gSC4U6j2HUhxJwbY">this really great tutorial </a>here for this one.</li></ul><h4><strong>For Linux:</strong></h4><ol><li><strong>GUI based environment:</strong></li></ol><ul><li>Go <a href="https://docs.docker.com/desktop/setup/install/linux/">here</a>, same as windows, setup <strong>docker desktop</strong> based on your distro.</li></ul><p><strong>2. TTY (headless) environment:</strong></p><ul><li>In systems like AMI, ubuntu server, you may not have a GUI, and it’s more suited to setup docker engine (comes with docker cli)</li><li>Go <a href="https://docs.docker.com/engine/install/">here</a> and check your distro.</li></ul><p><strong>So far, I’ve tested it in these environments:</strong></p><ul><li>Windows (with WSL)</li><li>Ubuntu</li><li>Arch</li><li>Ubuntu Server.</li><li>AMI (amazon machine image)</li></ul><h4>After setup:</h4><p>Try using the command:</p><pre>docker --help</pre><blockquote><em>To start creating and using docker containers, note that you’ll have to turn on the “docker daemon”, how to do that? Since docker desktop already has everything, just open the desktop app, and you’ll see a whale icon on top right screen, then try again.</em></blockquote><h3>The basis: Images &amp; Containers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*y7aGcD4Upuz1Y3WQ.png" /></figure><blockquote><em>Gotta get a little bit theoretical on this part</em></blockquote><p><strong>Docker has two fundamental components:</strong></p><h4>Containers</h4><ul><li><strong>Containers</strong> are services that are isolated, like <a href="https://cloud.google.com/learn/what-is-a-virtual-machine">virtual machines</a>, they provide a isolated environment where you can run, test, do anything like its a whole new system inside it. These containers don’t persist data in your disk like a normal service, delete a container and all it’s data goes with it, it is therefore: <strong>stateless</strong></li><li><strong>Advantage?</strong> You can create/destroy containers at ease.</li><li><strong>Problem?</strong> The isolation can cut itself off from others (we’ll learn about controlling isolation with volumes &amp; networks in next part!)</li></ul><h4>Images</h4><ul><li><strong>Images</strong> are blueprints to creating these container. An example of image can be set of instructions like:</li><li>Clone a repository, install its dependencies.</li><li>Run the main service (ex: express) on port 3000. Containers replicate this formula, so you can create any service into a image → and then make a container from that image!</li></ul><blockquote><em>So basically, </em><a href="https://hub.docker.com/"><strong><em>docker-hub</em></strong></a><strong><em> (from nginx example)</em></strong><em> is just a central registry to host these images!</em></blockquote><h3>Writing our own custom Docker Image</h3><ul><li>Create some random directory, initialize node-js project &amp; setup express:</li></ul><pre>mkdir test &amp;&amp; cd test<br>npm init -y &amp;&amp; npm install express dotenv touch index.js</pre><ul><li>Make up a simple index.js script for the express server:</li></ul><pre>const express = require(&#39;express&#39;)<br>const app = express();<br>require(&#39;dotenv&#39;).config()<br><br>const port = 3000;<br>const num = process.env.num;<br><br>app.get(&#39;/&#39;, (req,res)=&gt;{<br>  res.send(`Hello ${num}`);<br>})<br><br>app.listen(port, ()=&gt;{<br>  console.log(`Server connected at port: ${port}`)<br>})<br>#needs a &quot;base image&quot;, we have an express app, so base will be nodejs image. <br>FROM node:18   </pre><ul><li>We write the image’s recipe in a “Dockerfile”, which looks something like this:</li></ul><pre>#needs a &quot;base image&quot;, we have an express app, so base will be nodejs image. <br>FROM node:18   <br><br>#inside container, make a /app folder to store our project files<br>WORKDIR /app  <br>#indicate that port 3000 is running the service(doesn&#39;t actually expose it, just a indicator)<br>EXPOSE 3000<br>#env variable used in the script    <br>ENV num=10   <br><br>#now copy our index.js + package.json to the /app folder for use<br>COPY index.js /app<br>COPY package.json /app<br><br>#run command in workdir(/app in this case), install packages from package.json (i.e: express &amp; dotenv)<br>RUN npm install <br>#start the application from<br>ENTRYPOINT [&quot;node&quot;, &quot;index.js&quot;]</pre><p>Now let’s create the image from this dockerfile:</p><pre>#run the dockerfile residing in this directory (assuming you are in same directory as dockerfile)<br>docker build -t express-image:v1 .</pre><p>Confirm this image is created:</p><pre>docker image ls</pre><p>You should notice an <strong>“express-image:v1”</strong> image in the list.</p><p>Now, image is set, create container from that:</p><pre>docker container run --name express-app -d -p 3000:3000 express-dummy:v1</pre><p>Notice the -p 3000:3000?</p><p>Remember the EXPOSE 3000 line back when we wrote the dockerfile, here -p &lt;my-port&gt;:&lt;container-port&gt; maps our PC&#39;s port 3000 to container port 3000.</p><p>So example: if you do -p 8080:3030, our port 8080 will act like container&#39;s port 3000!</p><p>Since we set port 3000:3000 mapping, make a request in localhost:3000:</p><pre>wget localhost:3000</pre><p>You should get an “index.html” file with contents: “Hello 10”</p><p>We used an environment variable “num” earlier but that was static, let’s try passing a new value for the env variable:</p><pre>docker container run --name express-app-2 -d -e num=50 -p 8080:3000 express-dummy:v1</pre><p>In this new container from same image, we pass the num variable from -e key=value flag. And this should run in your localhost:8080:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/181/0*X_Qw4XXm_kDpdGsk.png" /></figure><p>I honestly don’t remember all the syntax for docker-file, so using something like the <a href="https://docs.docker.com/reference/dockerfile/">dockerfile reference</a> is recommended</p><h4>Summary</h4><blockquote><em>This is just the basics, but you should be able to use these as basis to start using containers, easily setting them up or even making your own containers, but there’s many more things remaining:</em></blockquote><ul><li>Containers are isolated, so how do we let multiple containers connect? So far we’ve connected our PC to the container. — <strong>docker network</strong></li><li>These containers drop everything when removed, what about — containers running DBs? we would want some to persist state right. — <strong>docker volumes</strong></li><li>Is there any simpler way to handle multiple containers? — <strong>docker compose</strong></li></ul><p>So I’ll cover these in the later ones!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72c0de7c6b8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[End-to-End Skin Diseases Diagnosis and Assistance using Intel AI Toolkits & Gen-AI LLMs]]></title>
            <link>https://medium.com/@shubhamtiwary914/end-to-end-skin-diseases-diagnosis-and-assistance-using-intel-ai-toolkits-gen-ai-llms-57cb611ac725?source=rss-3a21981793fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/57cb611ac725</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[intel-oneapi]]></category>
            <category><![CDATA[intel-dev-cloud]]></category>
            <category><![CDATA[oneapi]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Shubham Tiwary]]></dc:creator>
            <pubDate>Sun, 24 Mar 2024 09:14:18 GMT</pubDate>
            <atom:updated>2024-03-24T09:25:54.743Z</atom:updated>
            <content:encoded><![CDATA[<h3>End-to-End Skin Diagnosis and Assistance using Intel AI Toolkits &amp; Gen-AI LLMs</h3><p>Project Source: <a href="https://github.com/ShubhamTiwary914/SkinDiseasesDiagnosis-IntelHackathon?tab=readme-ov-file#skin-diseases-analysis"><strong>Github</strong></a></p><p>Project Contributors &amp; Authors: <a href="https://medium.com/u/20cc717848ac">Rajat Balyan</a> and <a href="https://medium.com/u/3a21981793fb">Shubham Tiwary</a></p><p>With the rise of <a href="https://generativeai.net/">Generative-AI</a>, Artificial Intelligence Models can now not only make simple predictions,</p><p>By <strong>learning patterns from existing data</strong>, then using this knowledge to generate new and unique outputs. Gen-AI is capable of producing <strong>highly realistic and complex content</strong> that mimics human creativity.</p><p>Thus, in the recent years we have seen rise of these AI Tools in many Real World Sectors, one such being <strong>Ethical AI in Healthcare.</strong></p><p>The problem we want to address today in this field are Skin diseases which are health concerns affecting millions of individuals worldwide, posing significant challenges in diagnosis and treatment.<br><br>Therefore, this Solution aims to develop robust ML &amp; LLMs models capable of accurately <strong>identifying and classifying different skin diseases</strong>, as well as further <strong>providing symptoms and suggestions for encouraging further diagnosis with a medical professional</strong>.</p><p>Making the use of <a href="https://www.intel.com/content/www/us/en/developer/tools/devcloud/overview.html"><strong>Intel® Developer Cloud</strong></a><strong>, </strong>which provides Next-Gen Computing Capabilities for AI Models to run on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*sZ4irB36MW2YgzqOr3NBrw.png" /><figcaption>Intel Developer Cloud Computing</figcaption></figure><p>Incorporating that with <a href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/overview.html"><strong>Intel oneAPI</strong></a> Libraries such as <strong>Intel Extensions for Tensorflow(ITEX) </strong>for model acceleration on these Machines, it provides a total end-to-end platform for building, testing and deploying Machine Learning(ML) Models.</p><h3>Breaking Down the Components</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*nz_cElA8-t8qVHXj8AIFzw.png" /><figcaption>Skin Diseases Assiatance Project’s Workflow</figcaption></figure><h4><strong>1. Image Classification CNN Model</strong></h4><ul><li>The CNN Model acts as a first step multi-label classification via open source Skin Diseases datasets.</li><li>Trained on <strong>Intel Developer Cloud (IDC)</strong> provided Next Gen <strong>Intel Xeon-based Premium CPUs</strong> with oneAPI Toolkit such as: <strong>ITEX: Intel OneAPI Extensions for Tensorflow</strong></li></ul><h4><strong>2. LLM (RAG) based Symptom Checker &amp; Recommendation</strong></h4><ul><li>Further symptom checking process is passed on using a LLM Model that Processes Medical Books &amp; Documents, Generating smart information on the suspected disease</li><li>Using Open Source <strong>Meta/LLAMA-2(7B) Model</strong> running on <strong>4th Gen Intel Xeon VM</strong></li><li>Stores Contents from Books onto a VectorDB by Text Splitting + Storing the Vector Embeddings and then use a Retriever to Generate Responses from Queries</li></ul><p>For the Client Side Application, Streamlit is used for Interfacing the Models with the UI</p><p>The Backend is Hosted on <strong>Intel® Xeon 4th Gen ® Scalable processor (CPU) VM </strong>Instance using the <a href="https://fastapi.tiangolo.com/"><strong>Python FastAPI Library</strong></a><strong> </strong>for Creating a Web Server on the Machine’s Localhost. To connect the Client Side with the Remote Machine’s Localhost, <a href="https://ngrok.com/"><strong>NGROK</strong></a> is used for PORT Forwarding the</p><p>The LLM used here is the <a href="https://huggingface.co/meta-llama/Llama-2-7b-chat-hf"><strong>Meta-LLAMA-2</strong></a><strong> </strong>with <strong>7 Billion Parameters</strong>, an Open Source Model, for High-Level Language Processing.</p><p>It extracts and reads Information from Documents related to Skin Cancer, stores it into chunks and encodes the chunks into “<strong>Vector embeddings</strong>” using an <strong>Embeddings Model.</strong> These Embeddings are then stored into a <strong>Vector Database(ex: Chroma).</strong></p><p>The Overall Application Makes use of these two models to provide an end-to-end assistance for any Assistance with Skin Diseases Diagnosis.</p><p>View the Project Here at: <a href="https://github.com/ShubhamTiwary914/SkinDiseasesDiagnosis-IntelHackathon?tab=readme-ov-file#skin-diseases-analysis"><strong>Github</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57cb611ac725" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>