<?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 Saurabh Zinjad on Medium]]></title>
        <description><![CDATA[Stories by Saurabh Zinjad on Medium]]></description>
        <link>https://medium.com/@ztrimus?source=rss-d6b4826afd45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YI49Csr3KdZ4GeclE8EAzg.jpeg</url>
            <title>Stories by Saurabh Zinjad on Medium</title>
            <link>https://medium.com/@ztrimus?source=rss-d6b4826afd45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 09 Jun 2026 04:53:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ztrimus/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[Exploring the Depths of AI Story writing in the Prompt Engineering Hackathon]]></title>
            <link>https://ztrimus.medium.com/exploring-the-depths-of-ai-story-writing-in-the-prompt-engineering-hackathon-2cc2ae451d9f?source=rss-d6b4826afd45------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cc2ae451d9f</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Saurabh Zinjad]]></dc:creator>
            <pubDate>Tue, 27 Aug 2024 15:31:40 GMT</pubDate>
            <atom:updated>2024-08-27T15:31:40.250Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zjncih72hFbD72a9TSIbow.jpeg" /><figcaption>Team Soul — LLM Brews</figcaption></figure><p>We — SouL LLM Brews — participated in “<a href="https://asu-humanities-hax.devpost.com/"><strong>Prompt Engineering Hackathon for Humanities</strong>.</a>” and <strong>won the 1st runner-up prize</strong>. Cheers! Here is a summary of what happened during the hackathon.</p><h3><strong>👨🏻💻 My Take on the Hackathon</strong></h3><p>This hackathon — truly one of a kind — demanded a creative mindset to solve problems. Unlike other technical hackathons with clear technical problem statement, coherent sets of possible approaches, and proper metrics to evaluate solution, It challenged the developer (me) to become an artist and go beyond technical constraints.</p><figure><img alt="Prompt Engineering Hackathon 2023" src="https://cdn-images-1.medium.com/max/1024/1*vxSKTYswNU7yn0hbdPQuHQ.png" /><figcaption>Prompt Engineering Hackathon 2023</figcaption></figure><h3>🧩 Problem Statement</h3><p>Through AI persona, explore LLM’s capabilities, boundaries, and it’s subtle contextual understanding, to create innovative collaboration between humans and machines. In layman’s terms, the journey of knowing a newly joined team member and finding their strengths and areas of improvement.</p><h3>🔰 The Pilot</h3><p>As we started with a whiteboard session, a thought brewed in my mind: How about our newly joined AI actor — LLM Brews — become a “story writer” and help us write an extended story for “Gunther” character in post-F.R.I.E.N.D.S world.</p><p>We began our expedition in prompt engineering land. We interacted and conversed with different ChatBot/AI tools to know which LLM caters to the best storytelling needs. Like ChatGPT, Bing Chat, Google Bard , <a href="http://jasper.ai/">Jasper.ai</a>, <a href="https://www.linkedin.com/company/writesonic/">Writesonic</a>, etc.</p><figure><img alt="Our whiteboard session" src="https://cdn-images-1.medium.com/max/818/1*luyjt9OvgbpXTUGCGaXkWQ.jpeg" /><figcaption>Our whiteboard session</figcaption></figure><h3>🛠️ Pro Tips for Prompting</h3><p>I like to highlight certain points that helped in the above task:</p><ul><li>Tweak LLM parameters: higher temperature for creativity and diversity. lower for precision</li><li>Check LLM’s training dataset for intuition behind expected responses. Insights into crafting question and jailbreaking would tremendously helps.</li><li>Experiment with different ChatBots for diverse response in regard to quality, style or tone.</li><li>Use custom instructions or system prompts to guide LLM’s understanding. It shapes how the model interprets and responds to user requests. Check my <a href="https://ztrimus.notion.site/Story-Writer-Prompts-20e7af7ecf644bc3a430ceaf7463b24b?pvs=4"><strong>custom instructions for a story writer</strong></a> persona.</li><li>Boost accuracy by providing examples of desired requests and responses to LLMs.</li></ul><p>🚦 LLM’s Limitations and Challenges</p><p>After doing a lot of back and forth with different LLMs and trying creative prompt hacks, I discovered some limitations for our story writer persona:</p><ul><li><strong>Narrative Flow</strong>: Inconsistent dialogues and logical gaps disrupt the story’s flow as LLM starts to forget the crux of the previous context. Plus, LLM showed a Minimal In-Context Reasoning.</li><li><strong>Simplicity Over Appeal</strong>: LLM generates creative narrative, but tends to create overly simplistic stories lacking appeal and intricate plots. Unable to find sensible segue between two snippets of story.</li><li><strong>Emotional Depth</strong>: Struggles to capture nuanced emotions and lacks depth in character portrayal.</li><li><strong>Hallucinations</strong>: It said Gunther had a Ph.D. in art history, but the truth is, James Tyler, the actor playing Gunther, holds the Ph.D., not the character.</li></ul><figure><img alt="https://miro.com/app/board/uXjVM2NqXc4=/" src="https://cdn-images-1.medium.com/max/1024/1*VPujCJkt0CNI1-kuGOy8Aw.png" /><figcaption>Miro AI Playground page, curated by Erica O’Neil for ASU’s Lincoln Center for Ethics</figcaption></figure><h3>🛣️ Approaches To Tackle Limitations</h3><p>In our efforts to enhance story creation, we’ve taken a two-fold approach.</p><ul><li>Firstly, we aimed for more focused and productive discussions, steering clear of vague and off-topic exchanges. To achieve this, we introduced two new AI personas — an insightful Critic and a keen Book Reader. Together with our core Story Writer AI, we formed a chat room involving three AI personas and three humans (us), each contributing diverse perspectives. My friend <a href="https://www.linkedin.com/in/rohanawhad?miniProfileUrn=urn%3Ali%3Afs_miniProfile%3AACoAACT0cVUBdsS4vv-Vq7K10qrCcvfY8VGwBVo">Rohan Awhad</a> played a key role by developing a script that allows these personas to contribute by looking at the previous context. Check here <a href="https://drive.google.com/file/d/1HNTkn0BkSc3Iw8UEnpva0ZAchSfP2hpG/view">prompt for different AI persona</a> created by <a href="https://www.linkedin.com/in/amey-bhilegaonkar/">Amey Bhilegaonkar</a>.</li><li>Secondly, to enhance nuanced emotions in the narrative and depth of characters. I experimented with GenAI models — specifically, <a href="https://www.linkedin.com/pulse/exploring-depths-ai-story-writing-prompt-engineering-hackathon-wbqwc/?trackingId=x8kXXyRASEuA%2FxevcAF%2FqA%3D%3D#">Runway</a>, <a href="https://www.linkedin.com/pulse/exploring-depths-ai-story-writing-prompt-engineering-hackathon-wbqwc/?trackingId=x8kXXyRASEuA%2FxevcAF%2FqA%3D%3D#">Midjourney</a> , and <a href="https://www.linkedin.com/pulse/exploring-depths-ai-story-writing-prompt-engineering-hackathon-wbqwc/?trackingId=x8kXXyRASEuA%2FxevcAF%2FqA%3D%3D#">DALL-E Open Ai</a> — by passing LLM’s responses. These models, when provided with precise context, yielded appealing results. Like LLMs, these genAI models also had their own limitations.</li><li>We considered generating human voice to express emotions to boost storytelling, but due to time constraints, we had to keep it aside.</li></ul><h3>💪 LLM Capabilities</h3><ul><li>LLMs excel at finding small details, spotting story discrepancies, creating short story snippets, and uncovering relevant resources — though review is essential. For instance, I discovered Gunther’s fluency in Dutch and interest in art history.</li><li>This fine details could help you as a writer aiding in a long complicated and multi-step refinement process for your drafts until the final version.</li></ul><p>We presented our ideas/work, in a humorous way, and narrated a story — took our protagonist character Gunther and created his story using AI.</p><p>Our presentation: <a href="https://lnkd.in/gBedrYTX"><strong>https://lnkd.in/gBedrYTX</strong></a></p><h3>💡 Final Thoughts</h3><p>What this hackathon made me realize is that LLMs are not like any other technology that has deterministic outcomes. They are more like person who you don’t know, but you know the idea of person.</p><p>Now, my conclusions might be a bit blurry (Come on, we had 17 hours hustle time with just 4 hours of sleep!). If you spot any quirks or have differing views, drop a comment. Your feedback is more precious than a simple like!</p><figure><img alt="Judges and Mentors of Hackathon" src="https://cdn-images-1.medium.com/max/1024/1*MENEUOkSRGVMo2yyui4vuQ.jpeg" /><figcaption>Judges and Mentors of Hackathon</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cc2ae451d9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confidence Interval — Exploring, Misconception, and Formula]]></title>
            <link>https://ztrimus.medium.com/wondering-about-confidence-interval-and-its-misconception-629a3d279ad3?source=rss-d6b4826afd45------2</link>
            <guid isPermaLink="false">https://medium.com/p/629a3d279ad3</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Saurabh Zinjad]]></dc:creator>
            <pubDate>Sun, 13 Mar 2022 10:17:20 GMT</pubDate>
            <atom:updated>2022-03-14T13:11:07.690Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*36iz80z91n3mPd1c" /><figcaption>Photo by <a href="https://unsplash.com/@revolt?utm_source=medium&amp;utm_medium=referral">REVOLT</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Ever wonder how the warranty on the product gets calculated? and how do product manufacturers know when the product is going to fail? OR</p><p>When someone asks you about how far is that city or hotel from here and if you are unsure, why do you feel more <strong>confident &amp; certain</strong> about telling distance in between ranges rather than guessing the exact distance?</p><p>In many cases, it’s essential to estimate value in ranges. It gives a sense of reliability and space to work on even though you don’t know the exact thing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/0*O_gAWFu0kcjqfIy6.png" /><figcaption>Image from <a href="https://corporatefinanceinstitute.com/resources/knowledge/other/range/">CFI</a></figcaption></figure><p>So let’s ponder upon how can we tell our confidence in numbers? and how can we calculate these ranges?</p><p>But … First, we need to understand point estimates.</p><h3>What is a point estimate?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*ouTjdOMEcoAt82xk.png" /><figcaption>Photo by <a href="http://www.berrar.com/">Daniel Berrar</a> on <a href="https://www.researchgate.net/publication/332553015_Introduction_to_the_Non-Parametric_Bootstrap">ResearchGate</a></figcaption></figure><ul><li>In many cases, you may don’t know what is the population means. (population means is like taking average/mean height of every person in-universe. There would be people with different heights)</li><li>Then to mimic population mean approximately, we take sample means (X̄). (sample means is like you consider the heights of only a few people around you and calculate the average/mean.)</li><li>using X̄ we can estimate the parameter of population means. (like using central limit theorem)</li><li>In this scenario, X̄ is the <strong>point estimate.</strong></li><li>the sample mean is a point estimate of the population means.</li></ul><blockquote><strong>The point estimate does not reveal the uncertainty associated with the estimate.</strong></blockquote><ul><li>e.g., It is also like guessing the exact distance of the city or hotel from here without confidence.</li><li>you are not getting a sense of how far sample means might be from population means.</li></ul><p>There were Confidence intervals shines!!!</p><h3>Introduction</h3><ul><li>Confidence interval expresses a range of values within which we are pretty sure the population parameter lies. (how much sure? can be answered by <a href="https://www.notion.so/Wondering-about-Confidence-Interval-and-It-s-Misconception-b8071b2544e94df3acce5a12eed6fd07">confidence level</a>)</li><li>It communicates how accurate our estimate is likely to be.</li><li>All estimates of population parameters, such as means, median, differences of means, and differences of medians should be expressed as confidence intervals.</li></ul><blockquote><strong>Please note that, Here, I’m only talking about the “Mean” parameter to keep things simple.</strong></blockquote><ul><li>E.g. A 95% confidence interval says that for every 100 confidence intervals we calculate from sample data, about 95 of them will contain the population parameter and 5 will not.</li><li>95% confidence interval is just an interval that covers 95% of the means of all samples.</li></ul><p>But still Why is confidence interval needed? what problem does confidence interval solve?</p><h3>Why Confidence Interval?</h3><ol><li><strong>There always will be sampling errors</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ugULVUcNfmI3ryK1gLiLow.gif" /><figcaption>Photo by <a href="http://powerinsideyou.tumblr.com">powerinsideyou</a> on <a href="https://powerinsideyou.tumblr.com/post/137293448430/after-all-this-time-always-rip-severus">Tumblr</a></figcaption></figure><p>When you take samples from the population and took their means, you will never be sure that sample means is equal to population means. This is called <strong>Sampling Error</strong> or <strong>Variation due to sampling.</strong> confidence interval tries to tackle this problem.</p><p>2. <strong>Confidence intervals measure the degree of uncertainty or certainty in sample variables.</strong> In many cases, you may don’t know what the population means. it’s difficult. So we can select different samples randomly from the same population. And computes a confidence interval for each sample to see how it may represent the true value of the population.</p><p>3. When we express an estimate of the population parameter, it will be good if you tell an estimate between ranges, rather than the exact value. e.g. it is better to tell “usually laptop prices can be between 40k to 60k”, instead of telling the price is 52k.</p><h3>What is a Confidence Level?</h3><ul><li>It refers to the percentage of probability, or certainty, that the confidence interval would contain the true population parameter when you draw a random sample many times.</li><li>usage of it that “we are 99% certain (confidence level) that true population parameter most of these samples will lie between “this-that” intervals(confidence intervals).”</li><li><strong>It’s like having a bigger butterfly catching net, the more confident you are to catch butterflies.</strong></li></ul><blockquote><strong>Confidence interval and confidence level are interrelated but are not exactly the same.</strong></blockquote><h3>Formula And Calculations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*HPL_XczpA4lrimo0IUsEyg.png" /><figcaption><em>Image by author</em></figcaption></figure><p>Let’s understand the formula</p><h4><strong>1. Standard Error</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*Npkprc6gdDxcafWgQa_e4A.png" /><figcaption><em>Image by author</em></figcaption></figure><ul><li>The <strong>Standard Error</strong> is a measure of how is spread out we would expect those means to be</li></ul><blockquote><strong>But why the Square root of “n”?</strong></blockquote><blockquote>The more information we have, the less new information we get from one more observation in the sample. e.g. when you increase the sample size from 10 to 20, (the decrease in the confidence interval) or (new information you get) is far greater than increasing the sample size from 110 to 120. That’s why it makes sense to add square root to the sample size.</blockquote><h4><strong>2. t - Confidence level value</strong></h4><ul><li><strong>t</strong> value you can get from a <strong>t</strong> distribution.</li><li>We can also use the <strong>Z</strong> value instead of the <strong>t</strong> value.</li><li>In the above formula, if we increase the <strong>t</strong>, our confidence interval also is going to increase.</li><li>Here are some common <strong>t</strong> values for different sample sizes and confidence levels.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*TY1IW85CMcxKvnj04EwXtw.png" /><figcaption>Image by author</figcaption></figure><h4><strong>3. The Margin of Error</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*w1m9hreRpgnvVcTN3jbOrw.png" /><figcaption><em>Image by author</em></figcaption></figure><h4><strong>4. Example</strong></h4><ul><li>if the margin of error = 10</li><li>the sample means(X̄) = 100</li><li>sample size(<strong>n</strong>) = 30</li><li>t value = 2.045 (look into above table)</li></ul><p><strong>Then we are 95% confident that the population means lies between [90, 110] intervals.</strong></p><h3>Misconception</h3><ul><li>let’s estimate the mean weight of apples in the orchard (really really large garden of fruits). We will take a sample of 15 apples in the orchard.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgnoymIRN-nMPdCN_NAosw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJ4FJIU0-irtgxCmzgjZug.png" /></figure><ul><li>Use the above formula to calculate the confidence interval for 95%.</li><li>the result would be [146.7gm, 151.9gm]</li><li>One might <strong>erroneously</strong> interpret the aforementioned 95% confidence interval of 146.7 to 151.9 grams as indicating that 95% of the data in a random sample falls between these numbers.</li><li>We can be 95% sure that the <strong>mean weight of the apples</strong> in the orchard is somewhere between 146.7 and 151.9 grams.</li></ul><p><strong>This is NOT the interval that holds the weights of 95% of the apples in the orchard. It is the interval that we are 95% confident will contain the true unknown value of the population mean.</strong></p><blockquote>Confidence interval does not tell the percentage of data that falls between lower and upper bound, but CERTAINTY that range will contain the population means.</blockquote><h4><strong>Example</strong></h4><ul><li>Assume the interval is between 72 inches and 76 inches. If the researchers take 100 random samples from the population of high school basketball players as a whole, the mean should fall between 72 and 76 inches in 95 of those samples.</li><li>If the researchers want even greater confidence, they can expand the interval to 99% confidence. Doing so invariably creates a broader range, as it makes room for a greater number of sample means. If they establish the 99% confidence interval as being between 70 inches and 78 inches, they can expect 99 of 100 samples evaluated to contain a mean value between these numbers.</li></ul><h3>What affects the width of confidence intervals</h3><h4><strong>Variation in Population</strong></h4><ol><li>It’s Variation within the population of interest.</li><li>Population with low variations leads to similar samples with low variation, which leads to a narrow confidence interval.</li><li>Population with lots of variations leads to varied samples with high variation leads to wider confidence interval</li></ol><h4>Sample Size</h4><ol><li>It’s the number of data points in a single sample group.</li><li>Small samples vary more from each other and have less information, which leads to wider confidence intervals</li><li>Large samples are more similar to each other and have more information, which leads to narrow confidence intervals.</li></ol><h3>Calculating Confidence Intervals</h3><h4>1. Traditional Normal-based</h4><ul><li>Here we specify a level of confidence.</li><li>The more confident(<strong>t</strong>) we wish to be, the larger our <strong>confidence interval</strong> will be.</li><li>Traditional normal-based methods are Informal, Bootstrapping, T-test, etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J4cHbkAEK2kIQAbl1ORp4Q.png" /><figcaption>Image from <a href="https://www.youtube.com/watch?v=s4SRdaTycaw">YouTube Video</a></figcaption></figure><p>Any form of feedback or suggestion is really welcome on how I can improve this blog to be more understandable and enjoyable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=629a3d279ad3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Utilizing Colab power in local VS Code]]></title>
            <link>https://ztrimus.medium.com/utilizing-colab-power-in-local-vs-code-730f18588d12?source=rss-d6b4826afd45------2</link>
            <guid isPermaLink="false">https://medium.com/p/730f18588d12</guid>
            <category><![CDATA[colab]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[remote-server]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Saurabh Zinjad]]></dc:creator>
            <pubDate>Thu, 04 Nov 2021 14:08:36 GMT</pubDate>
            <atom:updated>2023-02-15T20:23:33.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aQlEdwEDQbn1cEjqvO6qhQ.jpeg" /></figure><p>I use <a href="https://code.visualstudio.com/docs/supporting/faq#_what-is-the-difference-between-visual-studio-code-and-visual-studio-ide">VS Code</a> a lot!!! I do All kinds of developments, and projects on VS Code. When it comes to deep learning, and running heavy neural network models, my laptop is unable to wield the great power of GPU. So I have to switch to another popular option — <a href="https://colab.research.google.com/?utm_source=scs-index">Google Colaboratory</a>. But this switching back and forth, make me wonder, how I can combine both and leverage the infinite power of both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*E1HyLNPG1hbPrlNWPVYtpw.jpeg" /></figure><p>You will see many articles on opening the VSCode interface in a web browser that uses google colab. But here we taking a different road here.</p><p>So our approach is this, our code will reside in a Google Drive (as a local server)or GitHub repo(as a remote server). We will access those codes through the remote server option available through VS Code’s extensions. This means we will use compute power of google colab to run our code in git or google drive.</p><h3>But What is VS Code?</h3><p>Visual Studio Code (often abbreviated as “VS Code”) is a free, open-source code editor developed by Microsoft. It is designed to be lightweight, fast, and customizable, with a wide range of features that make it popular among developers. VS Code includes support for dozens of programming languages, as well as features like debugging, version control, and extensions that can be used to customize the editor to meet individual needs. It also includes built-in support for Git, IntelliSense code completion, and a powerful command-line interface. Overall, VS Code is a powerful, versatile tool for editing and managing code that is widely used by developers around the world.</p><h3>And what is Google Colab?</h3><p>Google Colab (short for “Collaboratory”) is a free cloud-based platform that provides an interactive environment for writing, running, and sharing Jupyter notebooks. It allows users to write and execute Python code, including data analysis and machine learning tasks, without the need for specialized hardware or software. Colab provides access to powerful computing resources, including GPU and TPU acceleration, and allows users to share their work with others through Google Drive. The platform is widely used by students, researchers, and developers for a wide range of applications, from data exploration and visualization to deep learning and AI research.</p><h3>Steps:</h3><ul><li>Open google drive where you will clone your GitHub repo.</li><li>Choose an apt folder for your Repo in google drive.</li><li>Create a Colab notebook there. start writing the following code in it.</li><li>Mount your drive in that colab. (let colab know where we want to clone our repo)</li></ul><p>NOTE: You must turn the GPU option “ON” when you run this colab notebook. Because compute power of this colab notebook is going to share with the remote you opening in VS code.</p><pre># mount the google drive path<br>from google.colab import drive<br>drive.mount(&#39;/content/drive&#39;)<br># folder path where you want to keep your repo<br>%cd drive/My Drive/Colab Notebooks</pre><p>If your repository is private.</p><p>!git clone &lt;https://&lt;YOUR_USERNAME&gt;:&lt;PAT_TOKEN&gt;@github.com/&gt;&lt;USERNAME_OF_REPO_OWNER&gt;/REPO_NAME</p><pre>!git clone https://Ztrimus:pat_token@github.com/OmdenaAI/Dryad<br>!cd Dryad</pre><p>Then install <a href="https://github.com/WassimBenzarti/colab-ssh#getting-started">Colab-ssh</a> library</p><pre># Install colab_ssh on google colab<br>!pip install colab_ssh --upgrade</pre><p>Then run the following code</p><pre>from colab_ssh import launch_ssh_cloudflared, init_git_cloudflared<br>launch_ssh_cloudflared(password=&quot;enter_password_here&quot;)</pre><p>After running it you will see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wHd9PS6zA2kE2feO4NZz5g.png" /></figure><p>If it’s your first time click on Client Machine Configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UJ93deonfBeo8YSV3i714g.png" /></figure><ol><li>got to your VS code.</li><li>Install an Extension called <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh">Remote-SSH</a></li><li>Then press Ctrl+Shift+P. type “Remote-SSH: Open Configuration File…”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0NeiBT9EcS7Bnluzb-tbhQ.png" /></figure><p>Then Select configuration file or create a new file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6u0NtjBakHf7EWEQC5KBSQ.png" /></figure><p>Then paste the code which you saw in the client machine configuration output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fe_MAn3whqdDXy3RxgoXWw.png" /></figure><p>Now you are done with your configuration of colab ssh in your local VS Code. The only thing remaining is to start your remote SSH. Copy your VSCode Remote SSH from colab notebook</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-p9svzjy5-KjHxbyG4COlg.png" /></figure><p>Go to your VS Code and press Ctrl+Shift+P and Type “Remote-SSH: Connect to Host…”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EUDJelywxwvrkLIdcUNfog.png" /></figure><p>Paste your VSCode Remote SSH in it and hit enter Then Vola!!!!!!</p><p>probably it’s going to ask you about Which OS your want to choose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NSMZMXyeBMVP63jlBXcPCA.png" /></figure><p>Enter the password you set above while configuring the remote in colab notebook.</p><p>It will look something like this. you can see your SSH at the lower bottom in green.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*QKEa5Pi-cBuSC3lS-iaf4g.png" /></figure><ol><li>Now it’s connected to your <strong>Colab machine with Drive mounted on it</strong> (Yeah! it’s an important one)</li><li>Now go to Explorer (or press Ctrl+Shift+E) and Press open folder.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C74ropVC7KObCmbctUQ23w.png" /></figure><ol><li>Replace /root/ with /content/drive + drive_folder_path where your GitHub repo is stored</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6lc63u4YXNhljWUELc6Xg.png" /></figure><p>Then done !!!</p><p>you can use colab notebook resources directly in VS code. You can use GPU as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FAuxCxyPJxTAqJsyMZtSAw.png" /></figure><p>To run python install the Python extension from VS Code.</p><p>So, That’s it, guys!!!<br>Please let me know any improvements and feedback you feel are going to make this article more useful and easy for others to understand and comprehend.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=730f18588d12" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>