<?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 Pushpendra Singh on Medium]]></title>
        <description><![CDATA[Stories by Pushpendra Singh on Medium]]></description>
        <link>https://medium.com/@pushpendrasingh28?source=rss-1fe1049a2ebc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QWGPa99qo6fh21LzC5HJ1g.jpeg</url>
            <title>Stories by Pushpendra Singh on Medium</title>
            <link>https://medium.com/@pushpendrasingh28?source=rss-1fe1049a2ebc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:30:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pushpendrasingh28/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[Generative AI: Unveiling a New Era of Artificial Creativity]]></title>
            <link>https://pushpendrasingh28.medium.com/generative-ai-unveiling-a-new-era-of-artificial-creativity-df6b36cb33f0?source=rss-1fe1049a2ebc------2</link>
            <guid isPermaLink="false">https://medium.com/p/df6b36cb33f0</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Pushpendra Singh]]></dc:creator>
            <pubDate>Wed, 29 Nov 2023 18:07:00 GMT</pubDate>
            <atom:updated>2023-11-29T18:08:26.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvEtk3CSlnT-nfoEpg9qcw.png" /></figure><h4>Introduction</h4><p>In the realm of artificial intelligence, generative AI stands as a transformative force, capable of producing entirely new content, ranging from captivating images and enchanting melodies to thought-provoking text and groundbreaking designs. This revolutionary technology has the potential to revolutionize industries, empower creative endeavors, and reshape our understanding of artificial intelligence.</p><h4>What is Generative AI?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CNp-47NvyxsTgW9GqANOxQ.png" /><figcaption>Artificial Intelligence vs Machine Learning vs Deep Learning vs Generative AI</figcaption></figure><p>Generative AI encompasses a suite of techniques that enable machines to learn from existing data and generate novel outputs that mimic or extend the underlying patterns. Unlike traditional AI approaches, which primarily focus on analyzing and classifying data, generative AI delves into the creative realm, producing original content that is often indistinguishable from human creations.</p><h4>How Does Generative AI Work?</h4><p>At the heart of generative AI lies the power of machine learning, particularly deep learning algorithms. These algorithms are trained on massive datasets of real-world examples, allowing them to discern the underlying patterns and structures within the data. Once trained, these models can generate new content that adheres to the learned patterns, producing results that are often remarkably similar to the original data.</p><h4>Key Techniques in Generative AI</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*IWXaxrRCjAOMFMhaTYh1eQ.png" /><figcaption>Key Techniques in Generative AI</figcaption></figure><p>Generative AI encompasses a diverse range of techniques, each with its own strengths and applications. Among the most prominent techniques are:</p><ul><li><strong>Generative Adversarial Networks (GANs)</strong>: GANs employ a unique approach by pitting two neural networks against each other. One network, known as the generator, creates new content, while the other, known as the discriminator, tries to distinguish between real and generated samples. This adversarial process drives the generator to produce increasingly realistic outputs.</li><li><strong>Variational Autoencoders (VAEs)</strong>: VAEs focus on learning a latent representation of the data, capturing the underlying essence of the input. This latent representation can then be used to generate new content by manipulating the latent variables.</li><li><strong>Diffusion Models</strong>: Diffusion models are a probabilistic approach to generative AI, gradually adding noise to an initial blank canvas and then iteratively removing the noise to uncover the desired content.</li></ul><h4><strong>Applications of Generative AI</strong></h4><p>The applications of generative AI are vast and ever-expanding, spanning various industries and creative domains. Here are a few notable examples:</p><ul><li><strong>Image Generation</strong>: Generative AI can produce realistic and original images, from stunning landscapes to detailed portraits. This technology has applications in art, design, and product development.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgrb3wbI-xXpi2yw3TB7_Q.png" /><figcaption>Image generated by Stable Diffusion model.</figcaption></figure><ul><li><strong>Music Composition</strong>: Generative AI can compose original music in various genres, mimicking the styles of renowned composers. This technology has potential in the music industry and for creating personalized soundscapes.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F789439948%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fopenai_audio%2Fjukebox-86115728%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-000766300339-ur7rnm-t500x500.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c2d4c01fc4b56f5a22f767bd3ab63c2/href">https://medium.com/media/1c2d4c01fc4b56f5a22f767bd3ab63c2/href</a></iframe><ul><li><strong>Text Generation</strong>: Generative AI can generate human-quality text, including creative writing, code, scripts, and emails. This technology has applications in content creation, marketing, and education.</li><li><strong>Drug Discovery</strong>: Generative AI can accelerate drug discovery by generating new molecules with desired properties. This technology has the potential to revolutionize the pharmaceutical industry.</li><li><strong>Personalized Experiences</strong>: Generative AI can tailor experiences to individual preferences, from generating personalized product recommendations to creating customized user interfaces. This technology has applications in e-commerce, entertainment, and education.</li></ul><h4><strong>Ethical Considerations</strong></h4><p>The advent of generative AI raises important ethical considerations, including potential biases, copyright concerns, and the misuse of technology for creating harmful content. It is crucial to establish ethical guidelines and ensure responsible development and deployment of generative AI technologies.</p><h4>Conclusion</h4><p>Generative AI stands at the forefront of artificial intelligence, poised to transform industries, empower creativity, and redefine our relationship with technology. As generative AI continues to evolve, it is essential to harness its potential responsibly, ensuring that it serves as a force for good, fostering innovation, and enhancing human creativity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df6b36cb33f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Introducing GPT-4: The Next Generation of Language Models”]]></title>
            <link>https://pushpendrasingh28.medium.com/introducing-gpt-4-the-next-generation-of-language-models-9d0ca26dd30e?source=rss-1fe1049a2ebc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d0ca26dd30e</guid>
            <category><![CDATA[openai-gpt-4]]></category>
            <category><![CDATA[gpt-news]]></category>
            <category><![CDATA[gpt-4]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Pushpendra Singh]]></dc:creator>
            <pubDate>Wed, 15 Mar 2023 08:05:05 GMT</pubDate>
            <atom:updated>2023-03-15T08:05:05.507Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RwcfHH-30kp3VffxsOeVuw.jpeg" /></figure><p>The GPT (Generative Pre-trained Transformer) series of language models have made a significant impact on natural language processing (NLP) tasks and revolutionized the field of artificial intelligence. The latest in this series, GPT-4, is highly anticipated due to the success of its predecessor, GPT-3. In this article, we will explore what GPT-4 is, how it is developed, its differences from GPT-3, its advantages, and how people can leverage it.</p><h3>What is GPT-4?</h3><p>GPT-4 is the fourth generation of the GPT series of language models developed by OpenAI. It is a deep learning-based NLP model that is pre-trained on large amounts of text data and can generate coherent and realistic human-like language. GPT-4 will be more powerful than its predecessors in terms of its language generation capabilities, with OpenAI aiming to build a model that can understand and generate complex, nuanced language.</p><h3>How is GPT-4 developed?</h3><p>OpenAI uses a massive amount of data to train their models. The data includes various text sources such as books, articles, websites, and social media. The process of training a model like GPT-4 involves several stages of pre-training and fine-tuning. The pre-training stage involves feeding a large amount of text data to the model to learn the language structure and patterns. In the fine-tuning stage, the model is trained on specific NLP tasks such as text classification, sentiment analysis, and language translation.</p><h3>How is GPT-4 different from GPT-3?</h3><p>GPT-4 is expected to be more powerful than GPT-3 in terms of its language generation capabilities. GPT-4 will have a larger number of parameters, which means that it will be able to process and understand more complex language structures. Additionally, GPT-4 will be able to learn from more diverse data sources, including audio and video.</p><h3>Advantages of GPT-4 and how people can leverage it?</h3><p>The advantages of GPT-4 are numerous, as it will be able to understand and generate complex language more accurately than previous models. Businesses can leverage GPT-4 for tasks such as customer service chatbots, content creation, and data analysis. Additionally, GPT-4 can be used in various industries, including healthcare, finance, and education, to analyze and generate complex text data.</p><h3>Conclusion</h3><p>GPT-4 is the next step in the evolution of natural language processing. With its advanced language generation capabilities and larger parameter size, it will be able to understand and generate more complex language than its predecessors. Businesses and individuals can leverage this technology to improve customer service, generate content, and analyze data more accurately. With GPT-4, we are one step closer to creating truly intelligent machines that can understand and communicate with us in human-like language.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d0ca26dd30e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convert Stable diffusion to TensorFlow-lite model.]]></title>
            <link>https://pushpendrasingh28.medium.com/convert-stable-diffusion-to-tensorflow-lite-model-3f6af7400ca5?source=rss-1fe1049a2ebc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f6af7400ca5</guid>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[wasmedge]]></category>
            <category><![CDATA[tensorflow-lite]]></category>
            <category><![CDATA[machine-learning-python]]></category>
            <dc:creator><![CDATA[Pushpendra Singh]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 18:59:30 GMT</pubDate>
            <atom:updated>2023-02-23T19:09:17.769Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OwLkGM1PSbadbphnfp3DhQ.png" /></figure><h3>Convert Stable diffusion to TensorFlow-Lite model.</h3><h3><strong>Introduction:</strong></h3><p>In the near future, the metaverse is going to create a billion-dollar market and almost every giant MNC and visionary startup are working to take leverage of this market. NFTs will be an inevitable part of the metaverse. Have you heard about one of the most famous machine learning algorithms, Stable Diffusion which is used to create digital artworks or NFTs?</p><p>In this article, I am going to tell you about stable diffusion and its conversion to the Tensorflow-Lite model.</p><p>Let’s get started.</p><h3>Table of contents:</h3><ul><li>What is Stable Diffusion?</li><li>Reason to convert stable diffusion to the TensorFlow-lite model?</li><li>Convert stable diffusion to TensorFlow-lite.</li><li>Inferencing the stable diffusion TensorFlow-lite model.</li><li>Further optimizations.</li></ul><h3>What is Stable Diffusion?</h3><p>Ever wondered “What an astronaut riding a horse on mars” may look like? Me neither .…</p><p>Let’s find out,</p><figure><img alt="It is an image in which an astronaut is riding a horse on the planet mars." src="https://cdn-images-1.medium.com/max/512/1*4NydAL1N-2M5N0Zn1aKMLw.jpeg" /></figure><p><em>Oops… How will the horse breathe in oxygen on Mars without an astronaut suit? It’s a martian horse and it can survive on mars😜😜.</em></p><p>Stable Diffusion is a diffusion-based machine learning algorithm that generates realistic images based on text. It works both as Text-to-Image and Image-to-Image. Most of the recent AI art on the internet is generated using the Stable Diffusion model. Since it is an open-source tool, anyone can easily create fantastic art illustrations from just a text prompt. You can play around with stable diffusion by going to my repository, <a href="https://github.com/pushpendra910/Stable-Diffusion.git">here</a>.</p><p>It is a very heavy model and running it on a CPU takes a lot of time that is why we prefer running it on GPU.</p><p>The latest stable diffusion 2.0 offers a lot of functionalities. You can explore them <a href="https://stability.ai/blog/stable-diffusion-v2-release"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><h3>Reason to convert stable diffusion to TensorFlow lite.</h3><p>Suppose we want to generate images using stable diffusion at some remote locations where the internet is not available. Or suppose you want to decrease the run-time of stable diffusion. How will you do that?</p><p>The answer is we will convert our model to TensorFlow lite. TF Lite optimizes existing models to be less memory and cost-consuming. TensorFlow lite models enable us to do edge inferencing that does not rely on an internet connection. Mobile-friendly deployment becomes easier with TensorFlow Lite.</p><p>The main reason for us at <a href="https://www.qolaba.io/"><strong>Qolaba.io</strong></a> is to convert stable diffusion to TensorFlow lite and then use WasmEdge runtime for WebAssembly programs on a variety of platforms, including desktop and mobile devices, servers, and browsers.</p><p><em>“</em><a href="https://github.com/WasmEdge/WasmEdge"><em>WasmEdge</em></a><em> is a lightweight, high-performance, and extensible </em><a href="https://webassembly.org/"><em>WebAssembly</em></a><em> runtime for cloud-native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices. WasmEdge is currently a </em><a href="https://www.cncf.io/"><em>CNCF (Cloud Native Computing Foundation)</em></a><em> </em><a href="https://www.cncf.io/sandbox-projects/"><em>Sandbox project</em></a><em>.”</em></p><p>Wasmedge supports a variety of programming languages, including Rust, C, C++, and Python, and can be used as a standalone runtime or embedded into other programs.</p><p>Overall, the Wasmedge runtime provides a secure, portable, and efficient platform for running WebAssembly code, with the flexibility to use the programming language of your choice.</p><p>Okay.. so the main question arises, how do we convert a stable diffusion model to TensorFlow-lite?</p><h3>Converting stable diffusion to TensorFlow-lite.</h3><p>Just follow the steps given below…</p><h4><strong>1. Clone the repository.</strong></h4><pre>!git clone https://github.com/pushpendra910/Stable-Diffusion.git</pre><h4><strong>2. Setting GPU.</strong></h4><p>Make sure you have set up your GPU. To set up GPU you need to install Tensorflow, CUDA, and cuDNN I recommend you check the versions of the libraries and python that you are using so that there is no version mismatch otherwise your code will not run on GPU. To check for the version go to this <a href="https://www.tensorflow.org/install/source">link</a> or look at the below table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eJ-k_SuPMwyKNQiwPm44Rw.png" /></figure><h4><strong>2.1</strong> GPU already Set up.</h4><p>If you have already set up your GPU then run the following command in the terminal and move to <strong>step 3.</strong></p><pre>pip install -r requirements_without_tf.txt</pre><h4><strong>2.2</strong> Setup TensorFlow and GPU.</h4><p>To install TensorFlow and other libraries create a <strong>new environment</strong> with <strong>python 3.7</strong> and above and run the commands… We will be working with <strong>TensorFlow==2.10.0.</strong></p><pre>pip install -r requirements.txt</pre><p>To complete your GPU setup, run the commands.</p><pre>pip install tensorflow tensorflow_addons ftfy --upgrade --quiet<br>!sudo apt install --allow-change-held-packages libcudnn8=8.1.0.77-1+cuda11.2</pre><h4><strong>3. Instantiate the stable diffusion model and save it in a folder.</strong></h4><ul><li>Go to the terminal and run the following command.</li></ul><pre>python main.py</pre><h4><strong>4. Now convert your saved models to TensorFlow Lite models.</strong></h4><ul><li>Go to the terminal and run the command.</li></ul><pre>python to-tflite.py</pre><p>Very Good, you have converted stable diffusion to TensorFlow Lite. It’s time to inference it.</p><h3>Inferencing the stable diffusion TensorFlow lite model.</h3><ul><li>Go to the terminal and run the following command.</li></ul><pre>python inferencing_tflite.py</pre><p>You will now notice that the inferencing will take a lot of time on GPU, this is simply because TensorFlow Lite models are not running on GPU. TensorFlow Lite enables the use of GPUs and other specialized processors only through hardware drivers called delegates but TFLite GPU delegate only supports Android and iOS GPU.</p><p>So another way to reduce the inferencing time is to run the TensorFlow Lite models on a multi-core CPU, which will surely take less time.</p><h3>Further Optimizations.</h3><p>Now we have successfully used a stable diffusion model in TensorFlow Lite format, but the inference time is high, so we need to reduce it. For that purpose, we can try</p><ul><li>increasing the number of GPU/CPU cores.</li><li>Running the code on android/ios GPU via Tflite delegates.</li><li>Converting our model to onnx and then using <strong><em>onnxruntime-gpu.</em></strong></li></ul><p>Once this inference time is less, then we can use WasmEdge runtime.</p><p>Try these suggestions on your own and do let me know about your progress or any problem you face on <a href="http://linkedin.com/in/pushpendrasingh959aab184">LinkedIn</a>, <a href="https://instagram.com/humanoid_v.2.0?igshid=ZDdkNTZiNTM=">Instagram</a>, or <a href="https://twitter.com/Pushpendra6202">Twitter</a>.</p><p>Okay, that’s what I had for now. See you in another exciting article. Bye Bye….🙋‍♂️</p><h3>Thankyou🙏</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f6af7400ca5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>