<?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 R Kiran Kumar Reddy on Medium]]></title>
        <description><![CDATA[Stories by R Kiran Kumar Reddy on Medium]]></description>
        <link>https://medium.com/@rkirankumarreddy599?source=rss-b0b587fefc55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mYz8zj11YVJmWQWjPj5oqA.jpeg</url>
            <title>Stories by R Kiran Kumar Reddy on Medium</title>
            <link>https://medium.com/@rkirankumarreddy599?source=rss-b0b587fefc55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:03:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rkirankumarreddy599/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[The 115 Verdict: Inside Football’s Longest-Running Legal Saga]]></title>
            <link>https://medium.com/@rkirankumarreddy599/the-115-verdict-inside-footballs-longest-running-legal-saga-4d583a8d2ac0?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d583a8d2ac0</guid>
            <category><![CDATA[english-language]]></category>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[man-city]]></category>
            <category><![CDATA[football]]></category>
            <category><![CDATA[premier-league]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 03:40:39 GMT</pubDate>
            <atom:updated>2026-10-04T03:40:39.529Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*Gw4cf7FaiVcRWjrK" /></figure><p>For years, the phrase <strong>“115 charges”</strong> has hung over English football like a permanent cloud. Whenever fans argued about spending, trophies, or financial fair play, it was always the ultimate trump card.</p><p>Now, the landscape has fundamentally shifted. Following an exhaustive independent commission process, the verdict is out: Manchester City has been found guilty on <strong>114 of the 115 charges</strong> leveled against them by the Premier League.</p><p>It is, without question, the most seismic legal outcome in modern football history. But as the dust begins to settle, what does this actually mean, and where does the sport go from here?</p><h3>1. Decoding the Findings</h3><p>The independent panel’s decision covers an extensive timeline, primarily targeting a nine-season span from <strong>2009–10 through 2017–18</strong>, alongside subsequent accusations regarding a lack of cooperation with investigators.</p><p>According to the published findings, the core of the violation rests on accusations that the club:</p><ul><li>Engineered <strong>“sham” commercial and sponsorship contracts</strong> to artificially inflate revenues by upwards of £900 million.</li><li>Disguised true operational costs and remuneration packages for managers and players.</li><li>Systematically misstated financial accounts submitted to auditors and regulators.</li></ul><p>Out of 115 separate counts, only a single charge was dismissed as unproven. For the Premier League and opposing clubs who spent years pushing for transparency, the verdict provides a definitive answer on liability.</p><h3>2. City’s Defiant Stance and the Appeal</h3><p>Unsurprisingly, Manchester City has met the ruling with fierce resistance.</p><p>In statements released immediately following the verdict, club officials didn’t just disagree with the outcome — they actively dismantled it, labeling the commission’s findings as “unsafe” and riddled with “clear material errors of law, principle and fact”. Chairman Khaldoon Al Mubarak reassured supporters that the club’s internal belief in its innocence remains entirely unshaken, pointing to a comprehensive body of evidence they believe proves their financial dealings were legitimate.</p><p>True to their word, City quickly <strong>lodged an official appeal</strong>. Because liability and punishment are treated as distinct legal phases, this appeal triggers the next prolonged chapter of the saga.</p><h3>3. The Waiting Game: Sanctions and the Road Ahead</h3><p>Right now, the most pressing question — <strong>what is the punishment?</strong> — remains unanswered.</p><p>A separate hearing will eventually determine the appropriate sanctions. The spectrum of possibilities is vast:</p><ul><li>Massive multi-million-pound fines.</li><li>Unprecedented points deductions that could instantly alter league tables.</li><li>Potential expulsion or relegation from the Premier League.</li></ul><p>However, because Manchester City is actively pursuing its appeal, any final enforcement is heavily delayed. Legal experts suggest that appeals, counter-arguments, and potential arbitration could easily drag this process well into 2027. Until every legal avenue is exhausted, past trophies, historic trebles, and current league tables remain frozen in status quo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*4qWksAZgyHmiiSxi" /></figure><h3>The Verdict That Changes Everything</h3><p>Football has entered uncharted territory. Whether you view this as a watershed moment for financial regulation and accountability, or the beginning of an endless, litigious stalemate, one thing is certain: the 115 charges are no longer just a looming abstraction.</p><p>The silence has broken, the guilt has been assigned, and the fiercest legal battle in sports history is officially entering its endgame.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d583a8d2ac0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding CUDA C++: 104]]></title>
            <link>https://medium.com/@rkirankumarreddy599/understanding-cuda-c-104-edfdae44e020?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/edfdae44e020</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 01:49:11 GMT</pubDate>
            <atom:updated>2026-09-24T01:49:11.590Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>In this Blog I am going to discuss one of the topic that I been studied while I was in college. The topic is : <em>Bigram</em>. Let’s understand and Implement.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*30QvvKbRVhAYxknHlVgazg.png" /></figure><p>If you’ve ever used autocomplete on your phone and wondered how it “guesses” the next word, there’s a good chance a bigram model — or something inspired by one — is doing the heavy lifting behind the scenes. It’s one of the oldest ideas in natural language processing, and despite being almost embarrassingly simple, it still shows up everywhere from spell-checkers to the foundations of modern large language models.</p><h3>What Exactly Is a Bigram?</h3><p>A bigram is just a pair of consecutive words (or characters, or tokens) in a sequence. Take the sentence:</p><p><em>“the cat sat on the mat”</em></p><p>Break it into bigrams and you get: (the, cat), (cat, sat), (sat, on), (on, the), (the, mat).</p><p>That’s it. No neural networks, no attention mechanisms, no billions of parameters — just pairs of adjacent words. The “gram” in bigram comes from the same root as “n-gram,” a general term for a sequence of <em>n</em> consecutive items. A unigram is a single word, a bigram is two, a trigram is three, and so on.</p><h3>From Pairs to Predictions</h3><p>The real power of a bigram isn’t in the pairing itself, it’s in what you do with the <em>counts</em> of those pairs. If you scan a large body of text (a corpus) and tally up every time one word follows another, you build something called a bigram frequency table. From there, you can estimate a probability:</p><p><strong>P(next word | current word) = count(current word, next word) / count(current word)</strong></p><p>In plain terms: given that the current word is “cat,” how often is the very next word “sat” versus “ran” versus “slept”? Whichever pairing shows up most often in your training data becomes the most probable prediction.</p><p>This is exactly the kind of model you’d build if you tokenized a text file, counted every adjacent word pair into a matrix, and then walked that matrix to generate new text one word at a time — start with a seed word, look up its row in the table, pick the most likely (or a randomly weighted) next word, and repeat.</p><h3>Why Bother, When We Have GPT-4-Class Models?</h3><p>It’s a fair question. Bigrams are almost comically limited compared to modern transformers:</p><ul><li><strong>No real memory.</strong> A bigram model only ever looks at <em>one</em> word of context. It has no idea what happened three words ago, let alone three sentences ago.</li><li><strong>Repetitive, looping text.</strong> Because it always (or usually) prefers the same most-frequent continuation, generation can fall into loops — “the cat sat on the mat on the mat on the mat…”</li><li><strong>Sparse data problems.</strong> Any word pair that never appeared in training gets a probability of zero, no matter how sensible it might be.</li></ul><p>But bigrams earn their keep in a few important ways:</p><ol><li><strong>They’re cheap and fast.</strong> Building a bigram table is just counting — no gradient descent, no GPUs required (though you <em>can</em> parallelize the counting step on a GPU if your corpus is huge).</li><li><strong>They’re the conceptual ancestor of everything that followed.</strong> Trigrams, n-grams, and eventually neural language models (RNNs, then transformers) are all trying to solve the exact same problem a bigram tackles — predict the next token — just with progressively richer notions of “context.” Understanding a bigram is the cleanest way to understand <em>what</em> a language model is actually doing before layering on attention, embeddings, and billions of weights.</li><li><strong>They’re genuinely useful for small, well-defined problems.</strong> Spelling correction, simple autocomplete, basic text classification, and even parts of search engine ranking have historically leaned on n-gram statistics because they’re interpretable and don’t need much data to work reasonably well.</li></ol><h3>The Code Base</h3><pre>#include &lt;iostream&gt;<br>#include &lt;cuda_runtime.h&gt;<br>#include &lt;string&gt;<br>#include &lt;fstream&gt;<br>#include &lt;sstream&gt;<br>#include &lt;unordered_map&gt;<br>#include &lt;vector&gt;<br>#include &lt;climits&gt;<br><br>using namespace std;<br><br>// ---------------------------------------------------------------------------<br>// I/O + preprocessing (unchanged from original, _tokenizeData extended below)<br>// ---------------------------------------------------------------------------<br><br>string _getData(string file_path) {<br>    ifstream file(file_path);<br>    if (!file.is_open()) {<br>        cerr &lt;&lt; &quot;File not found: &quot; &lt;&lt; file_path &lt;&lt; endl;<br>    }<br>    stringstream buffer;<br>    buffer &lt;&lt; file.rdbuf();<br><br>    return buffer.str();<br>}<br><br>vector&lt;string&gt; _getWordVector(const string&amp; clean_text) {<br>    stringstream ss(clean_text);<br>    vector&lt;string&gt; words;<br>    string word;<br>    while (ss &gt;&gt; word) {<br>        words.push_back(word);<br>    }<br>    return words;<br>}<br><br>string _cleanData(string s) {<br>    string clean_text = &quot;&quot;;<br>    for (char c : s) {<br>        if (isalnum((unsigned char)c)) {<br>            clean_text += tolower((unsigned char)c);<br>        }<br>        else if (isspace((unsigned char)c)) {<br>            clean_text += c;<br>        }<br>    }<br>    return clean_text;<br>}<br><br>// Now returns BOTH the vocab (word -&gt; id) AND the full token-id sequence,<br>// since the bigram counter needs the sequence, not just the vocab.<br>unordered_map&lt;string, int&gt; _tokenizeData(const string&amp; s, vector&lt;int&gt;&amp; token_ids_out) {<br>    stringstream ss(s);<br>    int next_id = 0;<br><br>    unordered_map&lt;string, int&gt; vocab;<br>    string word;<br><br>    token_ids_out.clear();<br>    while (ss &gt;&gt; word) {<br>        if (vocab.find(word) == vocab.end()) {<br>            vocab[word] = next_id++;<br>        }<br>        token_ids_out.push_back(vocab[word]);<br>    }<br>    return vocab;<br>}<br><br>void _saveJson(string file_path, unordered_map&lt;string, int&gt; vocab) {<br>    ofstream json_file(file_path);<br>    if (!json_file.is_open()) {<br>        cerr &lt;&lt; &quot;File failed to open&quot; &lt;&lt; file_path &lt;&lt; endl;<br>        return;<br>    }<br><br>    json_file &lt;&lt; &quot;{\n&quot;;<br>    size_t i = 0;<br>    for (auto const&amp; [tok, id] : vocab) {<br>        json_file &lt;&lt; &quot;  \&quot;&quot; &lt;&lt; tok &lt;&lt; &quot;\&quot;: &quot; &lt;&lt; id;<br>        if (++i &lt; vocab.size()) {<br>            json_file &lt;&lt; &quot;,&quot;;<br>        }<br>        json_file &lt;&lt; &quot;\n&quot;;<br>    }<br>    json_file &lt;&lt; &quot;}\n&quot;;<br><br>    json_file.close();<br>    cout &lt;&lt; &quot;Vocabulary saved to &quot; &lt;&lt; file_path &lt;&lt; endl;<br>}<br><br>// ---------------------------------------------------------------------------<br>// CUDA: build the bigram count matrix<br>//<br>// counts[a * vocab_size + b] = number of times token `b` followed token `a`<br>// in the corpus. One thread per adjacent pair, atomicAdd into the matrix.<br>// ---------------------------------------------------------------------------<br><br>__global__ void buildBigramCounts(const int* token_ids, int num_tokens,<br>    int vocab_size, int* counts) {<br>    int i = blockIdx.x * blockDim.x + threadIdx.x;<br>    if (i &lt; num_tokens - 1) {<br>        int a = token_ids[i];<br>        int b = token_ids[i + 1];<br>        atomicAdd(&amp;counts[(size_t)a * vocab_size + b], 1);<br>    }<br>}<br><br>#define CUDA_CHECK(call)                                                     \<br>    do {                                                                     \<br>        cudaError_t err = (call);                                            \<br>        if (err != cudaSuccess) {                                            \<br>            cerr &lt;&lt; &quot;CUDA error at &quot; &lt;&lt; __FILE__ &lt;&lt; &quot;:&quot; &lt;&lt; __LINE__ &lt;&lt; &quot; - &quot; \<br>                 &lt;&lt; cudaGetErrorString(err) &lt;&lt; endl;                         \<br>            exit(1);                                                         \<br>        }                                                                    \<br>    } while (0)<br><br>// Runs the kernel above and returns the flattened vocab_size x vocab_size<br>// count matrix on the host.<br>vector&lt;int&gt; computeBigramCounts(const vector&lt;int&gt;&amp; token_ids, int vocab_size) {<br>    int num_tokens = (int)token_ids.size();<br>    size_t matrix_bytes = (size_t)vocab_size * vocab_size * sizeof(int);<br><br>    int* d_token_ids;<br>    int* d_counts;<br>    CUDA_CHECK(cudaMalloc(&amp;d_token_ids, num_tokens * sizeof(int)));<br>    CUDA_CHECK(cudaMalloc(&amp;d_counts, matrix_bytes));<br><br>    CUDA_CHECK(cudaMemcpy(d_token_ids, token_ids.data(),<br>        num_tokens * sizeof(int), cudaMemcpyHostToDevice));<br>    CUDA_CHECK(cudaMemset(d_counts, 0, matrix_bytes));<br><br>    int threads = 256;<br>    int blocks = (num_tokens + threads - 1) / threads;<br>    buildBigramCounts &lt;&lt; &lt;blocks, threads &gt;&gt; &gt; (d_token_ids, num_tokens, vocab_size, d_counts);<br>    CUDA_CHECK(cudaGetLastError());<br>    CUDA_CHECK(cudaDeviceSynchronize());<br><br>    vector&lt;int&gt; h_counts((size_t)vocab_size * vocab_size);<br>    CUDA_CHECK(cudaMemcpy(h_counts.data(), d_counts, matrix_bytes, cudaMemcpyDeviceToHost));<br><br>    cudaFree(d_token_ids);<br>    cudaFree(d_counts);<br><br>    return h_counts;<br>}<br><br>// ---------------------------------------------------------------------------<br>// Inference: start from a given word, greedily walk the bigram table for<br>// `num_words` steps, printing the generated sequence.<br>// ---------------------------------------------------------------------------<br><br>void generateFromWord(const string&amp; start_word,<br>    int num_words,<br>    const unordered_map&lt;string, int&gt;&amp; vocab,<br>    const vector&lt;int&gt;&amp; counts,<br>    int vocab_size) {<br>    // Reverse lookup: id -&gt; word<br>    vector&lt;string&gt; id_to_word(vocab_size);<br>    for (auto const&amp; [word, id] : vocab) {<br>        id_to_word[id] = word;<br>    }<br><br>    auto it = vocab.find(start_word);<br>    if (it == vocab.end()) {<br>        cerr &lt;&lt; &quot;\&quot;&quot; &lt;&lt; start_word &lt;&lt; &quot;\&quot; was not seen in the training corpus.&quot; &lt;&lt; endl;<br>        return;<br>    }<br><br>    int current_id = it-&gt;second;<br>    cout &lt;&lt; start_word;<br><br>    for (int step = 0; step &lt; num_words; ++step) {<br>        const int* row = &amp;counts[(size_t)current_id * vocab_size];<br><br>        int best_id = -1;<br>        int best_count = 0;<br>        for (int candidate = 0; candidate &lt; vocab_size; ++candidate) {<br>            if (row[candidate] &gt; best_count) {<br>                best_count = row[candidate];<br>                best_id = candidate;<br>            }<br>        }<br><br>        // No known continuation for this word: stop generating.<br>        if (best_id == -1) {<br>            break;<br>        }<br><br>        cout &lt;&lt; &quot; &quot; &lt;&lt; id_to_word[best_id];<br>        current_id = best_id;<br>    }<br>    cout &lt;&lt; endl;<br>}<br><br>// ---------------------------------------------------------------------------<br><br>int main() {<br>    string s = _getData(&quot;data/bigram_corpus.txt&quot;);<br>    if (s.empty()) return 1;<br><br>    string clean_s = _cleanData(s);<br><br>    vector&lt;int&gt; token_ids;<br>    unordered_map&lt;string, int&gt; vocab = _tokenizeData(clean_s, token_ids);<br>    int vocab_size = (int)vocab.size();<br><br>    string json_file = &quot;data/vocab.json&quot;;<br>    _saveJson(json_file, vocab);<br><br>    // Build the bigram count matrix on the GPU.<br>    vector&lt;int&gt; counts = computeBigramCounts(token_ids, vocab_size);<br><br>    // Inference: ask the user for a starting word and how many words to generate.<br>    string start_word;<br>    int num_words;<br><br>    cout &lt;&lt; &quot;Enter a starting word: &quot;;<br>    cin &gt;&gt; start_word;<br><br>    cout &lt;&lt; &quot;How many words should be generated: &quot;;<br>    cin &gt;&gt; num_words;<br><br>    generateFromWord(start_word, num_words, vocab, counts, vocab_size);<br><br>    return 0;<br>}</pre><p>To run this you have to write</p><pre>nvcc bigram.cu -std=c++17 -ccbin &quot;C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.51.36231\bin\Hostx64\x64&quot; -o cuda_program<br>#This is for compilation , to run this you have to run the exe file.<br>.\cuda_program.exe</pre><h3>Building One Yourself</h3><p>If you want real intuition for how language models work, building a bigram model from scratch is one of the best weekend projects out there. The recipe is short:</p><ol><li>Load a text corpus and clean it (lowercase, strip punctuation).</li><li>Tokenize it into words, assigning each unique word an integer ID.</li><li>Walk through the token sequence and count every adjacent pair into a vocab_size x vocab_size matrix.</li><li>To generate text: pick a starting word, look up its row in the matrix, choose the next word (greedily by highest count, or by weighted random sampling for more variety), and repeat.</li></ol><p>Do this once, and concepts that sound abstract in a machine learning course — “conditional probability,” “context window,” “sampling strategy” — suddenly become concrete lines of code you wrote yourself.</p><h3>The Takeaway</h3><p>A Bigram model wouldn&#39;t write your novel or hold a coherent conversation, but it’s the smallest possible working example of “predict the next word given what came before” — the exact problem every language model, all the way up to today’s largest transformers, is ultimately trying to solve. Understanding it well is one of the fastest ways to build real intuition for how the much fancier models work.</p><p>Let me give you a clear understanding about the use cases. If you think that u can make your own GPT kind of thing then brother you are in technical dilemma. The best use case for this is next word prediction that’s it. You can’t use it for generating content because this model don’t have context awareness.</p><p>Thank you for reading. Have a great day, Bye!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/0*8mHCHtPw5HLXgu3Q.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edfdae44e020" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can cavemen code ? (2026 Edition)]]></title>
            <link>https://medium.com/@rkirankumarreddy599/can-cavemen-code-2026-edition-59d0491d49c2?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/59d0491d49c2</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 11:05:24 GMT</pubDate>
            <atom:updated>2026-09-09T11:05:24.510Z</atom:updated>
            <content:encoded><![CDATA[<p>( This is an experience blog of mine, where I will elaborate my experience on Product development. )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYZcxxGdXYPe3obzxo2M-w.png" /></figure><p>Hello there, This is <strong>Kiran Kumar</strong> before getting into it. Let me give you my Tech Background, I am a under grad student from a 3 tier university. I do have prior experience in AI Development and research. I do know development fundamentals and System Design, but i haven’t try to make entire web based project of my own. I know Database system, Protocols, Deployment, API management, Block chain and so on.</p><p>These domains I have Explored in my Bachelors Degree. Last night I challenged myself -</p><blockquote>How much Time do a person need to develop a End to End Software with Deployment and Launch ?</blockquote><p><strong>Spoiler Alert !!! It Took me 4 hrs</strong> to Make This site possible. The use case of these Site is “Plagiarism detection to convert AI generated text to human like text”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gbSK9esJRQdzZ-p0qmzEew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RBHyAH1B62E-mqZN-ANG0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x-Qw-QmI8EDXTp2-DsCW9A.png" /></figure><blockquote>This is a picture Reference of the site. So In this blog i will teach you how you can transform your idea into reality within 2–5 hrs.</blockquote><p>Let’s breakdown the steps of mine — <br>1. Backend (Flask)<br>2. Frontend (Next Js)<br>3. Payment &amp; Billing (CashFree)<br>4. Storage or DB (Firebase)<br>5. Deployment (Vercel)<br><em>6. Routing {Optional} (Godaddy for Domain)</em></p><h3>Ideation Process</h3><p>In this process you have to make a document where you write your ideas below that write the solutions you have, then you do the research how relevant it is. If you get the proper solution go for the logic to get there.</p><p>For me, I went through several Journals there I get to know that people are using Perplexity to detect the patterns in AI content.<br>After the <strong>Ideation</strong> process you end up with Logics.</p><h3><strong>Implement the Back-end</strong></h3><p>Then I start Implement the Back-end logic using Python framework. I started testing them by writing testcases. That’s how you can build a strong base. This is a important phase according to this you are going to shape the Entire UI. After developing the back-end i deployed that on Vercel for free.</p><blockquote>Tips: Make sure During setup you should keep manage a env file where you keep the API. You can use the API Further.</blockquote><h3>Front-end Implementation</h3><p>For developing the front-end, First I developed a template from Lovable and work on that template locally, through vibe coding. I will give you two steps to do vibe coding affordably.<br><strong><em>1. Step 1</em></strong> is to write a requirements in a notepad what you need in the UI. Implement everything. If anything went wrong. Write them in a Document.<br><strong><em>2. Step 2</em></strong> is to fix them one by one. That’s how you can reserve the functionality as well as make the context usage efficiently.</p><h3><strong>Setting up the Database</strong></h3><p>The next step is going to be considering a Database. We do have multiple options. For this projects i used firebase. <br>After choosing a DB I setup the authentication and created a real time database which store the subscribed used details. we use those data in the back-end.</p><h3>Payment &amp; Billing (CashFree)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GvrrRoyhiVJzyJfAo3hCjA.png" /></figure><p>I used Cash free for billing. The Setup is so easy. You do have Pan card, Adhaar card and Bank Details for payout.</p><h3><strong>Deployment</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwjbakTgZgXDOszT8X6F9w.png" /></figure><p>For Deploying this app, I used vercel. It is so reliable for me. It will take a single click to deploy your app. I Deployed two repos, One repo contains the front-end and another repo contains the back-end. It will maintain the CICD (Continuous Integration &amp; Continuous Deployment)pipeline, It will allow us to deploy the app when ever have the latest push.</p><h3>DNS (Optional)</h3><p>DNS is a optional step, If you have money to spend you can buy a Domain. You can setup the domain in the vercel. The minimum spent is a Dollar. So This is completely optional, If you consider this, It will add more credibility to your firm and you can also create business mail using mail destination method(via Claudeflare).</p><h4>If any Tech shift happen I may write 2027 Edition.</h4><blockquote>So These are the step I used to build a product for my startup. It took me 4 hrs to make and I spent 120 rs (just for buying a domain). It’s up to you. This is my experience, If you found this interesting and worthy to read share this and Do clap. Thank you for reading. Have a great day, Bye!!!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*pU3rOaFLDxvjohk1.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59d0491d49c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Claude Alternative: Setup Guide]]></title>
            <link>https://pub.towardsai.net/best-claude-alternative-setup-guide-17ec18cc0714?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/17ec18cc0714</guid>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Thu, 03 Sep 2026 00:01:02 GMT</pubDate>
            <atom:updated>2026-09-03T00:01:02.530Z</atom:updated>
            <content:encoded><![CDATA[<h4>This blog is on open-code setup for windows, MAC and Linux as well.</h4><p><strong>Hello Guys</strong>, I hope you are doing really well. For last 4 months I have been using open code and I was totally impressed regarding the outcome I am getting and the context window it is providing. That’s why I am going to share you how you can install that in your PC and use it.</p><p>At first let me compare this with the <strong>GOAT: Cluade.</strong> Still I saying Claude is great and expensive as well. Now there were several tools like KIMI and Deepseek. They extensively over passed the Claude but when you consider the actual playground I found claude as a GEM. So in my opinion every model now building focusing on less cost by using Decomposition and Distillation. Unintentionally they are compromising the performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XsEln6pOn8lhkI6mGWdIGw.png" /></figure><p>I like Claude when you consider a legit searching and want to do a research. But when you consider the coding agent for vibe coding or for harnessing it sucks. The daily limits ends with in 15 min. So i can only able to write few chunks of code. But in Open code you can use Open sourced models with a great context windows and limitless searches. I did one of my clients project with a single API. I haven’t paid a single penny to open code. The <strong>one Disadvantage</strong> is All the free models are not multi-models. Right now we all are acquainted with multi-models. So when we see a service without image processing it felt like this is old school, but trust me guys it will worth your time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*q2Z-iAEi0SenuLbxTqxN4w.png" /></figure><p>Let’s start the installation process. First you have to install open code from this site. there were several option. choose accordingly, <strong>NPM(Node Package Manager)</strong> can be used all classes( Mac, Linux and windows). So for windows I prefer to use <strong>curl or brew.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MOe_zz7EwvTtIO3YPycsSA.png" /></figure><p>After installing all you have to do is open VS code and install the open code extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dON4NJbCj70QbNkfDaf8Fw.png" /></figure><p>If you completed the second step, just restart your VS code to make it work. The next step is going to be the setup for open code zen. For the installation go to this site.</p><p>Site : <a href="https://opencode.ai/zen">https://opencode.ai/zen</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCPFCoNCLp4QOLq-pEFWlA.png" /></figure><p>Click on get started. After clicking on this you have to sign in either with google or github. After you signing process over. you will get this screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*X3Oonck1Zvbt3363DrJEmQ.png" /></figure><p>Here on the<strong> Zen tab</strong> you can literally choose the model you like. I prefer you to choose all the free versions mentioned there beside the mode name, Select those. If you are batman or tony stark you can select all. You have to pay to access these models. The next step is to create an API Key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*q1T0qu0SfJCVrkjIg09m-w.png" /></figure><p>Create a <strong>API Key</strong>. Now we are good to go. Open VS code, then you have to open a terminal there you need to type <strong>“opencode”</strong> and then the terminal will change to a <strong>TUI</strong> like cluade code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kSPF_tCEH_QWubWYuwxwOg.png" /></figure><p>At first you need to add the API key and selecting the model to select that, you need to type <strong>“/connect”</strong>. This will popup -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ek7WO9xRiM5IwhPSwtM1SQ.png" /></figure><p>Select open code zen and then you have to paste the API key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZyKRLZp3FTEpsqKzqX4qVw.png" /></figure><p>After pasting the API key you can able to select models. to select a free models you need to type<strong> “/models”</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*udpFNE4O-6TGIq1YBJYQIw.png" /></figure><p>Now you are good to go. The open code has been installed and setup as well. Keep doing vibe code without limits. If this blog helped you for your work then do clap and follow me on medium. Till then take care. <strong><em>Bye!!!</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*y73R-z44L8L08y3M.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17ec18cc0714" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/best-claude-alternative-setup-guide-17ec18cc0714">Best Claude Alternative: Setup Guide</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding CUDA C++:103]]></title>
            <link>https://medium.com/@rkirankumarreddy599/understanding-cuda-c-103-a2d40e72e1a4?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2d40e72e1a4</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cuda]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 04:11:09 GMT</pubDate>
            <atom:updated>2026-08-30T04:20:49.279Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAuvAAkeCO4tC-GSDaeIlg.png" /></figure><h3>Understanding Kernels and the Thread Hierarchy</h3><p>Writing high-performance parallel programs requires rethinking execution from the ground up. In traditional C++, code runs sequentially on a CPU core. In CUDA C++, computing shifts to massive parallelism across thousands of GPU cores using two foundational building blocks: <strong>Kernels</strong> and the <strong>Thread Hierarchy</strong>.</p><h3>1. What is a CUDA Kernel?</h3><p>A <strong>kernel</strong> is a C++ function that, instead of running once like a standard CPU routine, executes N times in parallel across N distinct CUDA threads.</p><p>Kernels are defined with the __global__ declaration specifier and launched using execution configuration syntax (&lt;&lt;&lt;blocks, threadsPerBlock&gt;&gt;&gt;):</p><pre>// Kernel definition<br>__global__ void VecAdd(float* A, float* B, float* C) {<br>    int i = threadIdx.x; // Built-in variable for thread index<br>    C[i] = A[i] + B[i];<br>}<br><br>int main() {<br>    int N = 512;<br>    // Launch 1 block with N threads<br>    VecAdd&lt;&lt;&lt;1, N&gt;&gt;&gt;(A, B, C);<br>    cudaDeviceSynchronize();<br>}</pre><p>Every thread runs the identical code body, but each accesses a unique threadIdx to operate on its own segment of data (SIMT: <em>Single Instruction, Multiple Threads</em>).</p><h3>2. Navigating the Thread Hierarchy</h3><p>GPUs do not launch threads in a single flat list. Instead, threads are organized hierarchically into <strong>Grids</strong> and <strong>Thread Blocks</strong> across 1D, 2D, or 3D dimensions to naturally match structured data like vectors, matrices, and volumes.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec72114aff58df5796e006357e18a21c/href">https://medium.com/media/ec72114aff58df5796e006357e18a21c/href</a></iframe><h3>3. Scaling Beyond Single Blocks</h3><p>Because modern GPUs constrain single blocks to 1,024 threads, processing large workloads requires multiple blocks organized into a grid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*9Urbu5WbkkjLr6lsUb9_fw.png" /></figure><p>To map a thread to its corresponding global array index in a 2D matrix, we combine block dimensions, block coordinates, and local thread coordinates:</p><p>Global Row (j) = blockIdx.y *blockDim.y +threadIdx.y</p><p>Global Row (i) = blockIdx.y *blockDim.y +threadIdx.y</p><pre>__global__ void MatAdd(float A[N][N], float B[N][N], float C[N][N]) {<br>    int i = blockIdx.x * blockDim.x + threadIdx.x;<br>    int j = blockIdx.y * blockDim.y + threadIdx.y;<br>    // Boundary check to prevent out-of-bounds access<br>    if (i &lt; N &amp;&amp; j &lt; N) {<br>        C[i][j] = A[i][j] + B[i][j];<br>    }<br>}<br>int main() {<br>    dim3 threadsPerBlock(16, 16); // 256 threads per block<br>    dim3 numBlocks((N + threadsPerBlock.x - 1) / threadsPerBlock.x,<br>                   (N + threadsPerBlock.y - 1) / threadsPerBlock.y);<br>    MatAdd&lt;&lt;&lt;numBlocks, threadsPerBlock&gt;&gt;&gt;(A, B, C);<br>    cudaDeviceSynchronize();<br>}</pre><h3>4. Block Independence &amp; Thread Synchronization</h3><p>CUDA achieves automatic hardware scalability through <strong>block independence</strong>:</p><ul><li><strong>Independent Execution:</strong> Blocks must be able to execute in any order — concurrently, sequentially, or arbitrarily scheduled across available SMs. This allows the same binary to run seamlessly on a low-end laptop GPU or an enterprise server with dozens of SMs.</li><li><strong>Intra-Block Synchronization:</strong> Threads <em>within the same block</em> can collaborate via high-speed, on-chip <strong>Shared Memory</strong> and coordinate execution using __syncthreads(). This barrier ensures all threads in a block reach the synchronization point before continuing.</li></ul><p>From this blog I think you got a clarity about Threat , Block and Grid. In the next blog we will be go deeper into CUDA toolkit framework. Till then take care, Bye !!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*lz1HdmFmbB132W9p.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2d40e72e1a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding CUDA C++: 102 (Environment Setup & GPU Device Querying)]]></title>
            <link>https://medium.com/@rkirankumarreddy599/understanding-cuda-c-102-environment-setup-gpu-device-querying-db2051a0b108?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/db2051a0b108</guid>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[cuda]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Fri, 28 Aug 2026 03:56:16 GMT</pubDate>
            <atom:updated>2026-08-28T03:56:16.789Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_lDQEX2C4l_OtpdnVX3xA.png" /></figure><p>Getting started with GPU programming in C++ requires configuring NVIDIA’s toolchain to integrate seamlessly with your local development environment. This guide covers how to set up the <strong>CUDA Toolkit</strong> inside <strong>Visual Studio</strong> on Windows, verify template integration, and write a baseline device-query program to inspect your GPU hardware limits.</p><h3>Part 1: Installing CUDA Toolkit &amp; Visual Studio Integration</h3><p>The order of installation is critical. CUDA integrates its project templates and build customizations directly into existing Visual Studio installations.</p><h4>1. Prerequisites</h4><ul><li><strong>Visual Studio (Community/Professional):</strong> During installation via the Visual Studio Installer, ensure the workload <strong>“Desktop development with C++”</strong> is checked.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Sp5cypuiJETjXm4PPNmxA.png" /></figure><ul><li><strong>NVIDIA GPU &amp; Drivers:</strong> Ensure your NVIDIA display drivers are up to date. You can check the NVIDIA driver version by typing this.</li></ul><pre>nvidia-smi <br>(Type this in your cmd, you will get the cuda or cuda driver version.)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xgnXcQzH79t49Q8ShI967A.png" /></figure><h4>2. Installing CUDA Toolkit</h4><ol><li>Download the latest compatible <strong>NVIDIA CUDA Toolkit</strong> installer for Windows. Url — <a href="https://developer.nvidia.com/cuda-toolkit-archive">https://developer.nvidia.com/cuda-toolkit-archive</a></li><li>Run the installer and select <strong>Custom (Advanced).</strong></li><li>Verify that <strong>Visual Studio Integration</strong> (under the CUDA development components) is checked.</li><li>Complete the installation.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*RbUPLKEzj6dXYtH_cM8OSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*WAC7YAR0q3tRuZGRKSD7yA.png" /></figure><h4>3. Verifying the Visual Studio Integration</h4><p>Once installed, launch Visual Studio:</p><ol><li>Select <strong>Create a new project</strong>.</li><li>In the project templates search bar, filter by language <strong>C++</strong> or type <strong>CUDA</strong>.</li><li>You should see <strong>CUDA [version] Runtime</strong> available directly as a project template.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qy4Sv1yXNwwzSDI1QdQ0TA.png" /></figure><h3>Part 2: Querying GPU Hardware Properties</h3><p>Before launching compute kernels, a robust CUDA application inspects the hardware boundaries — such as thread limits, memory capacity, and streaming multiprocessor (SM) counts — to optimize block and grid dimensions.</p><p>Here is the complete source file (main.cu):</p><p>C++</p><pre>#include &lt;iostream&gt;<br>#include &lt;cuda_runtime.h&gt;<br>#include &lt;iomanip&gt;<br><br>using namespace std;<br>int main() {<br>    int deviceCount = 0;<br>    cudaGetDeviceCount(&amp;deviceCount);<br>    // Verify GPU availability<br>    if (deviceCount == 0) {<br>        cout &lt;&lt; &quot;No GPU Devices Available&quot; &lt;&lt; endl;<br>        return 1;<br>    }<br>    cout &lt;&lt; &quot;Detected: &quot; &lt;&lt; deviceCount &lt;&lt; &quot; GPU Device(s)&quot; &lt;&lt; &quot;\n\n&quot;;<br>    // Iterate through all available CUDA devices<br>    for (int dev = 0; dev &lt; deviceCount; dev++) {<br>        cudaDeviceProp prop;<br>        cudaGetDeviceProperties(&amp;prop, dev);<br>        cout &lt;&lt; &quot;--- Device &quot; &lt;&lt; dev &lt;&lt; &quot;: &quot; &lt;&lt; prop.name &lt;&lt; &quot; ---&quot; &lt;&lt; endl;<br>        cout &lt;&lt; &quot;Compute Capability:            &quot; &lt;&lt; prop.major &lt;&lt; &quot;.&quot; &lt;&lt; prop.minor &lt;&lt; endl;<br>        cout &lt;&lt; &quot;Global Memory:                 &quot; &lt;&lt; fixed &lt;&lt; setprecision(2) <br>             &lt;&lt; (double)prop.totalGlobalMem / (1024.0 * 1024.0 * 1024.0) &lt;&lt; &quot; GB&quot; &lt;&lt; endl;<br>        cout &lt;&lt; &quot;Multiprocessor Count (SMs):    &quot; &lt;&lt; prop.multiProcessorCount &lt;&lt; endl;<br>        cout &lt;&lt; &quot;Max Threads per Block:         &quot; &lt;&lt; prop.maxThreadsPerBlock &lt;&lt; endl;<br>        cout &lt;&lt; &quot;Max Blocks per Multiprocessor: &quot; &lt;&lt; prop.maxBlocksPerMultiProcessor &lt;&lt; endl;<br>        cout &lt;&lt; &quot;Warp Size:                     &quot; &lt;&lt; prop.warpSize &lt;&lt; endl;<br>        cout &lt;&lt; &quot;Max Grid Size:                 &quot; <br>             &lt;&lt; prop.maxGridSize[0] &lt;&lt; &quot; x &quot; <br>             &lt;&lt; prop.maxGridSize[1] &lt;&lt; &quot; x &quot; <br>             &lt;&lt; prop.maxGridSize[2] &lt;&lt; &quot;\n&quot; &lt;&lt; endl;<br>    }<br>    return 0;<br>}</pre><h3>Part 3: Deep Dive into the Code</h3><h4>1. Header Files</h4><ul><li>&lt;cuda_runtime.h&gt;: Exposes the core CUDA Runtime API functions and structs, including device management calls.</li><li>&lt;iomanip&gt;: Used alongside &lt;iostream&gt; for formatting numerical outputs (such as memory in GB).</li></ul><h4>2. Detecting Devices with cudaGetDeviceCount</h4><p>C++</p><pre>cudaGetDeviceCount(&amp;deviceCount);</pre><p>Queries the driver for the number of CUDA-capable compute devices available on the host machine. If deviceCount == 0, no compatible NVIDIA GPU is accessible, allowing for early exit handling.</p><h4>3. Extracting Hardware Specs with cudaGetDeviceProperties</h4><p>C++</p><pre>cudaDeviceProp prop;<br>cudaGetDeviceProperties(&amp;prop, dev);</pre><p>Populates the cudaDeviceProp structure for a given device index dev. Key parameters extracted include:</p><ul><li><strong>prop.name</strong>: The marketing name of the GPU (e.g., <em>NVIDIA GeForce RTX 4080</em>).</li><li><strong>prop.major &amp; </strong><strong>prop.minor</strong>: The <strong>Compute Capability</strong> architecture version (e.g., 8.9 for Ada Lovelace, 8.6 for Ampere, 7.5 for Turing). This defines which instruction sets and hardware features (like Tensor Cores or specific warp operations) are supported.</li><li><strong>prop.totalGlobalMem</strong>: Total accessible VRAM in bytes, converted to gigabytes by dividing by 1024^3.</li><li><strong>prop.multiProcessorCount</strong>: The number of Streaming Multiprocessors (SMs) on the GPU chip.</li><li><strong>prop.maxThreadsPerBlock</strong>: The hard physical limit of threads that can reside in a single thread block (typically 1024 on modern architectures).</li><li><strong>prop.warpSize</strong>: The number of threads executed in lockstep SIMD/SIMT units (always 32 on current NVIDIA architectures).</li><li><strong>prop.maxGridSize</strong>: A 3D array ([x, y, z]) indicating the maximum number of blocks that can be scheduled across the grid dimensions.</li></ul><p>This is the output looks like, Before running the code you have to build the project and then execute that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XeHHJJ1J9rWdemwTZpX_Ng.png" /></figure><p>So, that’s it for today. If you are getting any installation, comment me. I will help you out. In the upcoming blog we will discuss how you can build a ML model from scratch using CUDA C++. Till then take care, Bye!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*ko74mqzD1F-heh6Y.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db2051a0b108" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding CUDA C++: 101]]></title>
            <link>https://medium.com/@rkirankumarreddy599/understanding-cuda-c-101-f4565115f863?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4565115f863</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[gpu]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 14:39:41 GMT</pubDate>
            <atom:updated>2026-08-26T14:39:41.763Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTlNMe0LlG-ctWDAvIL1XQ.png" /></figure><p>Modern high-performance computing, deep learning, and simulations rely on parallel computation. To tap into the compute horsepower of modern graphics cards, NVIDIA introduced <strong>CUDA</strong> (Compute Unified Device Architecture).</p><h3>1. What is CUDA?</h3><p>CUDA is a parallel computing platform and programming model developed by NVIDIA. It allows developers to use standard C/C++ to write programs that execute directly on NVIDIA GPUs, transforming them from simple graphics renderers into general-purpose computing engines (GPGPU).</p><blockquote><strong>(ADVERTISEMENT) — Self Promotion</strong></blockquote><p><strong>Hi Friends,</strong> I am announcing you my series of blog on CUDA Programming. I hope you will like this and my upcoming blogs. So Do like and follow me on Medium. This is a blog consists the basic about CUDA and system components and at the end i put a codebase to create a kernel and the output of that. This is for a reference so don’t afraid of that soon we will cover everything. So Let me know in the comment regarding your reading experience.</p><blockquote><strong>(ADVERTISEMENT)</strong></blockquote><h3>2. CPU vs. GPU: Latency vs. Throughput</h3><ul><li><strong>CPU (Host):</strong> Optimized for <strong>low-latency</strong>, sequential execution. It features a few powerful cores with large caches and complex branch prediction logic to execute single-threaded tasks as fast as possible.</li><li><strong>GPU (Device):</strong> Optimized for <strong>high-throughput</strong>, massively parallel execution. It packs thousands of smaller, simpler cores designed to execute the exact same instruction across thousands of data points simultaneously (<strong>SIMT</strong> — Single Instruction, Multiple Threads).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmjj-1MRTZIOs3ZhQgtXfg.png" /></figure><h3>3. The CUDA Hierarchy: Threads, Blocks, and Grids</h3><p>CUDA organizes parallel execution into a three-level software hierarchy:</p><ul><li><strong>Thread:</strong> The smallest unit of execution. Each thread runs an instance of your kernel code and operates on a slice of the data.</li><li><strong>Block (Thread Block):</strong> A group of threads (up to 1,024) that execute together on the same physical processor, can share high-speed on-chip memory, and can synchronize with one another.</li><li><strong>Grid:</strong> A collection of blocks launched by a single kernel invocation.</li></ul><p>To map each thread uniquely to data elements in memory, CUDA exposes built-in 3D coordinate variables:</p><ul><li>threadIdx: Position of the thread within its block.</li><li>blockIdx: Position of the block within the grid.</li><li>blockDim: Number of threads per block.</li><li>gridDim: Number of blocks in the grid.</li></ul><p>For a 1D problem, the global thread index formula is:</p><pre>Global ID = blockIdx.x * blockDim.x  + threadIdx.x</pre><h3>4. Hardware Mapping: Streaming Multiprocessors (SMs) &amp; Warps</h3><p>When a CUDA program launches:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IeH2V1USj85ycUHz42_M_g.png" /></figure><ol><li><strong>Streaming Multiprocessor (SM):</strong> The GPU chip consists of dozens of SMs. Each SM contains CUDA cores, registers, shared memory, and warp schedulers.</li><li><strong>Block Scheduling:</strong> The GPU hardware assigns whole <strong>Blocks</strong> to available <strong>SMs</strong>. A single SM can manage multiple resident blocks concurrently.</li><li><strong>Warps:</strong> Inside an SM, threads within a block are partitioned into groups of <strong>32 threads</strong> called a <strong>warp</strong>. The warp is the fundamental unit of scheduling and execution on NVIDIA hardware.</li></ol><h3>5. Memory Management: Host vs. Device</h3><p>The CPU and GPU maintain distinct physical memory spaces:</p><ul><li><strong>Host Memory:</strong> System RAM accessed by the CPU. Managed via malloc() and free().</li><li><strong>Device Memory:</strong> Dedicated high-bandwidth VRAM on the GPU. Managed using CUDA runtime APIs:</li><li>cudaMalloc(&amp;ptr, size): Allocates linear memory on the GPU.</li><li>cudaMemcpy(dst, src, size, direction): Moves data over the PCIe bus (cudaMemcpyHostToDevice or cudaMemcpyDeviceToHost).</li><li>cudaFree(ptr): Releases allocated GPU memory.</li></ul><h3>6. Code Walkthrough: Element-Wise Vector Multiplication</h3><p><em>(Note: While commonly referred to loosely as matrix/vector math, the provided snippet implements </em><strong><em>element-wise vector multiplication</em></strong><em> ($C[i] = A[i] \times B[i]$), also known as the Hadamard product).</em></p><h3>The Kernel Definition</h3><pre>// It will init the kernal function.<br>__global__ void Multiplication(float* a, float* b, float* c, int n) {<br>	int i = blockDim.x * blockIdx.x + threadIdx.x;	<br>	if (i &lt; n) {<br>		c[i] = a[i] * b[i];<br>	}<br>}</pre><ul><li>__global__: Tells the NVCC compiler that this function is a <strong>CUDA kernel</strong> called from the CPU (Host) and executed on the GPU (Device).</li><li>int i = ...: Computes the unique global index for the thread.</li><li>if (i &lt; n): Boundary check (guard condition). Because grids launch in multiples of block sizes, excess threads past n must idle to prevent out-of-bounds memory access.</li></ul><h3>Step-by-Step Execution in main()</h3><p><strong>1. Data Setup on Host:</strong></p><pre>int n = 1 &lt;&lt; 5; <br>// 32 elements (1 &lt;&lt; 5 = 2^5 = 32)<br>size_t bytes = n * sizeof(float);</pre><pre>// Here we allocate the host memory<br>float* h_a = (float*)malloc(bytes);<br>float* h_b = (float*)malloc(bytes);<br>float* h_c = (float*)malloc(bytes);</pre><p>Allocates memory on the CPU for inputs h_a, h_b and output h_c, then fills h_a and h_b with random floats between 1.0 and 10.0.</p><p><strong>2. Device Allocation &amp; Data Transfer:</strong></p><pre>// Here we allcoate the GPU Memory<br>float *d_a, *d_b, *d_c;<br>cudaMalloc(&amp;d_a, bytes);<br>cudaMalloc(&amp;d_b, bytes);<br>cudaMalloc(&amp;d_c, bytes);</pre><pre>cudaMemcpy(d_a, h_a, bytes, cudaMemcpyHostToDevice);<br>cudaMemcpy(d_b, h_b, bytes, cudaMemcpyHostToDevice);</pre><p>Allocates buffers in GPU VRAM and transfers input vectors from CPU RAM to GPU VRAM across the PCIe bus.</p><p><strong>3. Execution Configuration &amp; Kernel Launch:</strong></p><pre>int threadPerBlock = 256;<br>int blockPergrid = (n + threadPerBlock - 1) / threadPerBlock;</pre><pre>Multiplication &lt;&lt;&lt;blockPergrid, threadPerBlock &gt;&gt;&gt; (d_a, d_b, d_c, n);<br>cudaDeviceSynchronize();</pre><ul><li>(n + threadPerBlock - 1) / threadPerBlock: Integer ceiling division ensuring enough blocks are spawned to cover all $N$ elements.</li><li>&lt;&lt;&lt;blockPergrid, threadPerBlock&gt;&gt;&gt;: The CUDA execution configuration syntax specifying the grid and block dimensions.</li><li>cudaDeviceSynchronize(): Forces the CPU to wait until the asynchronous GPU kernel finishes executing.</li></ul><p><strong>4. Gathering Results &amp; Cleanup:</strong></p><pre>cudaMemcpy(h_c, d_c, bytes, cudaMemcpyDeviceToHost);</pre><pre>cudaFree(d_a); cudaFree(d_b); cudaFree(d_c);<br>free(h_a); free(h_b); free(h_c);</pre><p>Transfers the calculated results from GPU memory back to CPU memory, prints vector C, and cleans up both device and host memory.</p><p>Here is the full code for a reference:</p><pre>#include&lt;iostream&gt;<br>#include&lt;cuda_runtime.h&gt;<br>#include&lt;random&gt;<br>#include&lt;ctime&gt;<br><br>using namespace std;<br><br>//Cuda Kernal for vector multiplication<br>__global__ void Multiplication(float* a, float* b, float* c, int n) {<br> int i = blockDim.x * blockIdx.x + threadIdx.x; <br> if (i &lt; n) {<br>  c[i] = a[i] * b[i];<br> }<br>}<br><br><br>int main() {<br> int n = 1 &lt;&lt; 5; // 1 * 10^5 elements<br> size_t bytes = n * sizeof(float);<br><br> // Allocate host memory<br> float* h_a = (float*)malloc(bytes);<br> float* h_b = (float*)malloc(bytes);<br> float* h_c = (float*)malloc(bytes);<br><br> unsigned int seed = static_cast&lt;unsigned int&gt;(time(0));<br> mt19937 generator(seed);<br><br> uniform_real_distribution&lt;float&gt; distribution(1.0f, 10.0f);<br><br> //Intialize the vectors<br> for (int i = 0;i &lt; n;i++) {<br>  h_a[i] = distribution(generator);<br>  h_b[i] = distribution(generator);<br> }<br><br> // Display the vectors<br> cout &lt;&lt; &quot;Vector A: &quot;;<br> for (int i = 0; i &lt; n; i++) {<br>  cout &lt;&lt; h_a[i] &lt;&lt; &quot; &quot;;<br> }<br> cout &lt;&lt; endl;<br><br> cout &lt;&lt; &quot;Vector B: &quot;;<br> for (int i = 0; i &lt; n; i++) {<br>  cout &lt;&lt; h_b[i] &lt;&lt; &quot; &quot;;<br> }<br> cout &lt;&lt; endl;<br><br> float *d_a, *d_b, *d_c;<br> cudaMalloc(&amp;d_a, bytes);<br> cudaMalloc(&amp;d_b, bytes);<br> cudaMalloc(&amp;d_c, bytes);<br><br> // copy the data to gpu<br> cudaMemcpy(d_a, h_a, bytes, cudaMemcpyHostToDevice);<br> cudaMemcpy(d_b, h_b, bytes, cudaMemcpyHostToDevice);<br> cudaMemcpy(d_c, h_c, bytes, cudaMemcpyHostToDevice);<br><br> //launch the kernal configurations<br> int threadPerBlock = 256;<br> int blockPergrid = (n + threadPerBlock - 1) / threadPerBlock;<br><br> Multiplication &lt;&lt;&lt;blockPergrid, threadPerBlock &gt;&gt;&gt; (d_a, d_b, d_c, n);<br> cudaDeviceSynchronize();<br><br> //copy the result back to the host<br> cudaMemcpy(h_c, d_c, bytes, cudaMemcpyDeviceToHost);<br><br> // Display the result<br> cout &lt;&lt; &quot;Vector C: &quot;;<br> for (int i=0; i &lt; n; i++) {<br>  cout &lt;&lt; h_c[i] &lt;&lt; &quot; &quot;;<br> }<br> cout &lt;&lt; endl;<br><br> // Dealcoate device memory<br> cudaFree(d_a);<br> cudaFree(d_b);<br> cudaFree(d_c);<br> <br> // Deallocate host memory<br> free(h_a);<br> free(h_b);<br> free(h_c);<br><br> return 0;<br>}</pre><p>This is the output looks like :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L_iDjyVbFlsesZlwXWNG7g.png" /></figure><p>This is a beginners guide. In the next blog(102) <strong>I will guide you the installation process of c++ env in Visual Studio and Setup CUDA in it </strong>and we learn how we can create your CUDA Kernel. Till then take care Bye! Bye!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/0*8zV9wI5Et4XbXqJm.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4565115f863" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Compressed Sparse Attention (CSA): The Key to 1M+ Token Context Windows]]></title>
            <link>https://medium.com/@rkirankumarreddy599/demystifying-compressed-sparse-attention-csa-the-key-to-1m-token-context-windows-662d9c0cd1b1?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/662d9c0cd1b1</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 10:39:27 GMT</pubDate>
            <atom:updated>2026-08-08T10:39:27.545Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YooKi80ylJtMOES9x98v6g.png" /></figure><p>As Large Language Models (LLMs) scale, <strong>the KV-cache memory bottleneck</strong> remains one of the greatest engineering hurdles. While earlier breakthroughs like Multi-Head Latent Attention (MLA) compressed key-value (KV) representations across the <em>head dimension</em>, the memory growth along the <em>sequence length dimension</em> still scaled linearly (O(N)).</p><p>Enter <strong>Compressed Sparse Attention (CSA)</strong> — an attention architecture designed to tame extreme context lengths (up to 1,000,000+ tokens) while using a fraction of the computational and memory footprint.</p><h3>The Problem: The KV-Cache Bottleneck</h3><p>In standard multi-head attention, every newly generated token must attend to every preceding token. To avoid recomputing past states, models store key and value vectors in a memory buffer known as the <strong>KV-cache</strong>.</p><pre>Standard KV-Cache Memory Growth:<br>Sequence Length (1M tokens) x Layers x Heads x Dimension = 100s of GBs</pre><p>At a 1-million-token context window, a traditional KV-cache can easily consume hundreds of gigabytes of VRAM per sequence, making inference prohibitively expensive. CSA resolves this by compressing data directly along the <strong>sequence axis</strong> rather than just the feature dimension.</p><h3>How Compressed Sparse Attention (CSA) Works</h3><p>CSA operates on a simple principle: <strong>compress past context into lightweight proxies, then sparsely route queries to only the most relevant compressed blocks.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*zY_7BYdc5iEyKUw93pyf3Q.png" /></figure><h3>The 3-Step Pipeline</h3><ol><li><strong>Local Compression (m-to-1 Pooling): </strong>Adjacent tokens (typically m = 4) are aggregated into a single compressed KV entry. Instead of simple uniform averaging, CSA uses <strong>data-dependent, learned weighting</strong> (saliency functions) to ensure important contextual tokens retain higher weights.</li><li><strong>Indexing &amp; Top-k Selection: </strong>Rather than performing dense matrix multiplication across all compressed entries, a lightweight indexer scores the compressed KV pairs against the current query. Only the top-$k$ highest-scoring blocks are selected for full attention computation.</li><li><strong>Hybrid Attention Execution: </strong>Full dot-product attention is calculated <em>only</em> over the selected top-k compressed blocks, combined with an uncompressed local sliding window (e.g., the last 128 tokens) to maintain immediate short-range precision.</li></ol><pre>[Token 1][Token 2][Token 3][Token 4] ---&gt; [Compressed Entry 1] ──┐<br>[Token 5][Token 6][Token 7][Token 8] ---&gt; [Compressed Entry 2] ──┼─&gt; [Lightning Indexer] ──&gt; [Top-K Selection]<br>[Token 9][Token 10][...          ] ---&gt; [Compressed Entry 3] ──┘</pre><h3>CSA vs. Heavy Compression: The Architectural Trade-Off</h3><p>Architectures using sequence compression often pair CSA with <strong>Heavily Compressed Attention (HCA)</strong> to balance resolution and speed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tNHRdrsGEphHWLRNTf3sPw.png" /></figure><p>By interleaving <strong>HCA in early layers</strong> (for broad context overview) and <strong>CSA in deeper layers</strong> (for precise sparse lookup), models achieve massive throughput speedups while preserving exact token retrieval capabilities.</p><p>Thank you for reading… Have a great day. Bye!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=662d9c0cd1b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reproducible ML Without the Headache: Mastering Data Version Control with DVC-Helper]]></title>
            <link>https://medium.com/@rkirankumarreddy599/reproducible-ml-without-the-headache-mastering-data-version-control-with-dvc-helper-c787b16a274d?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/c787b16a274d</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 11:56:56 GMT</pubDate>
            <atom:updated>2026-07-26T11:56:56.795Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*mBKhalHd0A1yOhPK" /></figure><p>If you have ever built an ML pipeline, you’ve likely bumped into at least one of these scenarios:</p><ul><li>Your Git repository choked and died because someone accidentally committed a <strong>2 GB dataset</strong> or a <strong>500 MB model checkpoint</strong>.</li><li>You pulled a project from three months ago, ran the training script, and got completely different accuracy scores with no clue which version of the dataset produced the original model.</li><li>You changed a single parameter in your evaluation code, ran your script, and had to wait 40 minutes for the entire data preprocessing step to run all over again.</li></ul><p>Software engineering solved reproducibility decades ago with Git. But Git was designed for lightweight text files — not heavy tensors, image archives, or parquet datasets.</p><p>This is where <strong>Data Version Control (DVC)</strong> and its companion assistant <strong>dvc-helper</strong> step in.</p><h3>What is DVC?</h3><p><strong>DVC</strong> is an open-source version control system built specifically for data science and machine learning. Instead of storing large datasets or model binaries in your Git tree, DVC replaces them with small, lightweight pointer files (.dvc files or dvc.yaml stage definitions).</p><p>The actual physical data is stored in a dedicated <strong>remote cache</strong> (e.g., S3, Google Cloud Storage, Azure Blob, or a local server), while Git tracks the code and data pointers.</p><p>Plaintext</p><pre>Project/<br>├── .git/                 # Git version history<br>├── .dvc/                 # DVC cache &amp; remotes configuration<br>├── dvc.yaml              # Pipeline dependency graph (DAG)<br>├── dvc.lock              # Lockfile holding exact data checksums<br>├── params.yaml           # Model hyperparameters<br>├── data/raw.csv.dvc      # Tiny text pointer to the 5 GB dataset<br>└── src/                  # Source code (preprocessing, training)</pre><h3>Why DVC? The Core Advantages</h3><ul><li><strong>Git-Native Big Data Handling:</strong> Store multi-gigabyte files outside Git while retaining exact commit history linkings.</li><li><strong>Deterministic Pipelines:</strong> Define DAGs (Directed Acyclic Graphs) where steps run in order based on dependencies (deps) and outputs (outs).</li><li><strong>Smart Caching:</strong> Running dvc repro re-executes <strong>only</strong> the pipeline stages whose code, data, or parameters changed, skipping everything else.</li><li><strong>Experiment Management:</strong> Compare hyperparameters, metrics (metrics.json), and loss plots (plots/) directly from your terminal.</li></ul><h3>Enter dvc-helper: The Intelligent CLI Layer</h3><p>While DVC is powerful, manually crafting dvc.yaml definitions, typing out long CLI commands with dozens of -d and -o flags, and tracing Python script dependencies by hand can be tedious and prone to typos.</p><p><a href="https://pypi.org/project/dvc-helper/"><strong>dvc-helper</strong></a> is an open-source CLI assistant designed to streamline working with DVC.</p><h3>What dvc-helper brings to your workflow:</h3><ul><li><strong>AST-Based Static Analysis:</strong> It parses your Python scripts (ast) to automatically detect data reads (pd.read_csv), model saves (torch.save, joblib.dump), hyperparameters (params.yaml), and generated metrics.</li><li><strong>Zero-Memorization Pipeline Creation:</strong> Build full dvc.yaml stages interactively in seconds.</li><li><strong>Graph &amp; DAG Visualizations:</strong> Render your pipeline dependency graph directly in terminal ASCII, Mermaid, or Graphviz.</li><li><strong>Pipeline Validation:</strong> Detect missing script paths, duplicate stage outputs, or circular dependencies before hitting execution errors.</li></ul><h3>Step-by-Step Tutorial: Building an ML Pipeline with dvc-helper</h3><p>Here is how to set up an automated, version-controlled ML pipeline from scratch.</p><h3>1. Installation</h3><p>Install dvc-helper via PyPI:</p><p>Bash</p><pre>pip install dvc-helper</pre><p>Verify your local system setup:</p><p>Bash</p><pre>dvc-helper doctor</pre><h3>2. Project Setup</h3><p>Navigate to your workspace and initialize the project:</p><p>Bash</p><pre>mkdir ml-pipeline-demo &amp;&amp; cd ml-pipeline-demo<br>dvc-helper init</pre><p>dvc-helper init automatically handles:</p><ul><li>Initializing Git and DVC repositories (if not already initialized).</li><li>Setting up standard directory conventions (data/, models/, src/, plots/, metrics/).</li><li>Generating starter configuration files (params.yaml and dvc.yaml).</li></ul><h3>3. Writing the Code Base</h3><p>Let me create three clean, modular Python scripts under the src/ directory.</p><h4>params.yaml (Configuration)</h4><p>YAML</p><pre>prepare:<br>  split_ratio: 0.8</pre><pre>train:<br>  learning_rate: 0.01<br>  epochs: 100</pre><h4>src/prepare.py (Stage 1: Preprocessing)</h4><p>Python</p><pre>import pandas as pd<br>import yaml</pre><pre>def prepare_data():<br>    with open(&quot;params.yaml&quot;) as f:<br>        params = yaml.safe_load(f)[&quot;prepare&quot;]<br>    <br>    # Simulating data ingestion and cleaning<br>    df = pd.DataFrame({<br>        &quot;feature1&quot;: [1.0, 2.0, 3.0, 4.0, 5.0],<br>        &quot;target&quot;: [0, 1, 0, 1, 0]<br>    })<br>    <br>    # Save output<br>    df.to_csv(&quot;data/prepared.csv&quot;, index=False)<br>    print(f&quot;Data prepared with split ratio: {params[&#39;split_ratio&#39;]}&quot;)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    prepare_data()</pre><h4>src/train.py (Stage 2: Model Training)</h4><p>Python</p><pre>import pandas as pd<br>import json<br>import yaml</pre><pre>def train():<br>    with open(&quot;params.yaml&quot;) as f:<br>        params = yaml.safe_load(f)[&quot;train&quot;]<br>        <br>    df = pd.read_csv(&quot;data/prepared.csv&quot;)<br>    <br>    # Dummy training operation<br>    accuracy = 0.85 + (params[&quot;learning_rate&quot;] * 2)<br>    <br>    # Output model weights and metrics<br>    with open(&quot;models/model.txt&quot;, &quot;w&quot;) as f:<br>        f.write(f&quot;Model trained with lr={params[&#39;learning_rate&#39;]}, epochs={params[&#39;epochs&#39;]}&quot;)<br>        <br>    with open(&quot;metrics.json&quot;, &quot;w&quot;) as f:<br>        json.dump({&quot;accuracy&quot;: accuracy}, f)<br>        <br>    print(f&quot;Training completed. Accuracy: {accuracy}&quot;)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    train()</pre><h3>4. Creating Stages with Auto-Detection</h3><p>Instead of manually editing dvc.yaml, let dvc-helper inspect the code:</p><p>Bash</p><pre>dvc-helper stage create prepare &quot;python src/prepare.py&quot;</pre><p><strong>dvc-helper automatically inspects </strong><strong>src/prepare.py and prompts:</strong></p><p>Plaintext</p><pre>Detected Dependencies:<br>  ✔ src/prepare.py<br>  ✔ params.yaml</pre><pre>Detected Outputs:<br>  ✔ data/prepared.csv</pre><pre>Save stage to dvc.yaml? [Y/n]: Y</pre><p>Repeat for the training stage:</p><p>Bash</p><pre>dvc-helper stage create train &quot;python src/train.py&quot;</pre><p>dvc-helper detects that src/train.py reads data/prepared.csv and outputs models/model.txt alongside metrics.json.</p><p>Your auto-generated dvc.yaml file looks like this:</p><p>YAML</p><pre>stages:<br>  prepare:<br>    cmd: python src/prepare.py<br>    deps:<br>      - params.yaml<br>      - src/prepare.py<br>    outs:<br>      - data/prepared.csv</pre><pre>  train:<br>    cmd: python src/train.py<br>    deps:<br>      - data/prepared.csv<br>      - params.yaml<br>      - src/train.py<br>    outs:<br>      - models/model.txt<br>    metrics:<br>      - metrics.json:<br>          cache: fals</pre><h3>5. Visualizing &amp; Executing the Pipeline</h3><p>To verify how the stages are linked:</p><p>Bash</p><pre>dvc-helper dag --format ascii</pre><p>Plaintext</p><pre>+---------+<br>  | prepare |<br>  +---------+<br>       *<br>       *<br>       *<br>   +-------+<br>   | train |<br>   +-------+</pre><p>Now, trigger the execution:</p><p>Bash</p><pre>dvc-helper repro</pre><p>If you modify src/train.py and run dvc-helper repro again, you will see that dvc-helper skips prepare and executes only train!</p><h3>Conclusion</h3><p>Combining <strong>DVC</strong> with <strong>dvc-helper</strong> allows you to spend less time managing boilerplate YAML files or writing custom shell scripts to track data, and more time focusing on modeling.</p><ul><li><strong>Check out </strong><strong>dvc-helper on PyPI:</strong> pip install dvc-helper</li><li><strong>Source Code &amp; Contributions:</strong> <a href="https://github.com/RKiranKumarReddy010/DVC-Helper">GitHub — RKiranKumarReddy010/DVC-Helper</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c787b16a274d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Caffeine Works ?]]></title>
            <link>https://medium.com/@rkirankumarreddy599/how-caffeine-works-7fea3c9d42f4?source=rss-b0b587fefc55------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fea3c9d42f4</guid>
            <category><![CDATA[biology]]></category>
            <category><![CDATA[general]]></category>
            <category><![CDATA[caffeine]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[knowledge]]></category>
            <dc:creator><![CDATA[R Kiran Kumar Reddy]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 14:41:43 GMT</pubDate>
            <atom:updated>2026-07-19T14:41:43.285Z</atom:updated>
            <content:encoded><![CDATA[<p>(Avoid the<strong> <em>Italic Text</em></strong><em> </em>if you don’t want to get bored)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9OBn6ZJet3P4JPPZsiWDQ.png" /></figure><p>I am going to elaborate this by a story. In this story we will be three characters. Let me introduce you -<br>Meet <strong>Mr. Adenosine. </strong>He is a sad person. <em>Biologically adenosine acts as a natural inhibitory neurotransmitter and sleep regulator.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/104/1*02q6sok-BPtxPzsUvLbrRw.png" /></figure><p>Let me introduce you with <strong>Mr. Caffeine</strong>. He is the energetic person. But he hated Adenosine because he is too weak. <em>Biologically Caffeine is the world’s most widely consumed psychoactive stimulant, naturally found in coffee, tea, and cacao. It increases alertness by blocking adenosine, a brain chemical that promotes sleep.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/111/1*P8_dIIISwoFVm4VYa3O0SA.png" /></figure><p>Let me introduce you the final character <strong>Miss Dopamine</strong>. She is the happiest person. He likes to spend time with Caffeine and scared of Adenosine. <em>Biologically Dopamine is a critical neurotransmitter and hormone that acts as a chemical messenger in the brain. It plays a major role in your brain’s reward system, regulating motivation, pleasure, memory, learning, and fine motor control.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/96/1*xkGmPz7gpceHGev3TlaGAg.png" /></figure><h3><strong>Story Begins…</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*aKu48m3blVSIYYfDdNlV2w.png" /></figure><p>Once upon a time there are number of sad Adenosines are there in a human brain. They are so tired because that person using his brain continuously. But They need Money to Build a house where they could sleep so they used ATP (<em>Adenosine Triphosphate</em>) the energy currency of the cell. So after building their house (Here the house refers to the receptors), They entered into it. That made the person sleepy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*QQO8z46mvsqCFfG5hua67A.png" /></figure><p>Then this person drink some Caffeine contained Beverages. Then …<br><em>These are the food items where you can find caffeine -</em></p><ul><li><strong><em>Energy Drink (8.4 oz):</em></strong><em> 70–100 mg</em></li><li><strong><em>Espresso (1 oz):</em></strong><em> 60–80 mg</em></li><li><strong><em>Black Tea (8 oz):</em></strong><em> 25–48 mg</em></li><li><strong><em>Green Tea (8 oz):</em></strong><em> 30–50 mg</em></li><li><strong><em>Cola (12 oz):</em></strong><em> 30–40 mg</em></li><li><strong><em>Brewed Coffee (8 oz):</em></strong><em> 95–200 mg</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yBaeAL76XF09eiK1Du4iWQ.png" /></figure><p>One day a noise just echoed, “Leave from my place”. Then Caffeine came from the coffee Drunk by that lady. That caffeine Blocked every Adenosines who were made house on his land. He blocked them. Again All Adenosines are getting upset. At that point of instance when the Caffeine Occupied in that space/ House. That girl woke up and feel refreshed cause her brain receptors are occupied some energetic guy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*6Mv1wq18hnXkAWkljjbyQg.png" /></figure><p>Now she woke up and happy. Wait why she is<strong> happy </strong>? Cause…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0GQqhGaoV9KMCTiqQFFctA.png" /></figure><p>After All Adenosines are getting out of the house, A green light lady running towards the house. Her name is Dopamine. She is so happy cause she is going to live with Caffeine. Then they start living together until the dose ends.</p><p>After the End of the dose The story starts again. It is a never ending loop.</p><p>Hope you like it. This is not about What is Caffeine and chemical explanation. This is just an interpretation of the affect.</p><p>So, Thank you for reading. Have a Great Day. Bye!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/0*oCJ5StCA2gwUmehT.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fea3c9d42f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>