Posts

Showing posts matching the search for cloud

RAG Architecture + Multi-GPU Training (DDP, FSDP, ZeRO)

Image
RAG Architecture + Multi-GPU Training (DDP vs FSDP vs ZeRO) – Complete Production Guide 2026 RAG Architecture + Multi-GPU Training: Complete Production Guide (2026) 🚀 This guide covers: RAG pipelines, LangChain + FAISS, DDP vs FSDP vs ZeRO, security defenses, and cloud deployment. What is Retrieval-Augmented Generation (RAG)? Retrieval-Augmented Generation (RAG) is a hybrid AI architecture that enhances Large Language Models (LLMs) by integrating external knowledge retrieval into the generation process. Instead of relying solely on pre-trained parameters, RAG dynamically fetches relevant information from a vector database at inference time. RAG significantly reduces hallucinations and enables real-time knowledge updates. A typical RAG system consists of three core stages: Ingestion: Documents are chunked, embedded, and stored in a vector database. Retrieval: Queries are embedded and matched using similarity search. Generation: Retriev...

Generate word cloud in R

Image
TEXT (.txt) This working script was tested on R 3.2.5 . Code is adapted from https://github.com/gimoya/theBioBucket-Archives/blob/master/R/txtmining_pdf.R . It reads a text file, processes it to remove unnecessary words and plots it. Code: library(tm) library(wordcloud) library(Rstem) filetxt <- "C:\\Users\\310211146\\Documents\\Other\\May_Report.txt" txt <- readLines(filetxt) txt <- tolower(txt) txt <- removeWords(txt, c("\\f", stopwords())) corpus <- Corpus(VectorSource(txt)) corpus <- tm_map(corpus, removePunctuation) tdm <- TermDocumentMatrix(corpus) m <- as.matrix(tdm) d <- data.frame(freq = sort(rowSums(m), decreasing = TRUE)) d$stem <- wordStem(row.names(d), language = "english") d$word <- row.names(d) d <- d[nchar(row.names(d)) < 20,] agg_freq <- aggregate(freq ~ stem, data = d, sum) agg_word <- aggregate(word ~ stem, data = d, function(x)   x[1]) d <- cbind(freq...

[How To] Install Free SSL Certificate for WordPress

Image
In this tutorial, I have installed a free SSL certificate from Let's Encrypt using the Certbot tool on Google Cloud Platform VM running Debian OS that hosts a WordPress site using Apache server. You can follow similar steps for other Cloud providers / OS distributions / CMS vendors / Web servers . Part-1: Configure Virtual Host for your domain on Apache cd /var/www/html wp option update home 'https://example.com' wp option update siteurl 'https://example.com' sudo nano /etc/apache2/sites-available/example.com.conf sudo apache2ctl configtest sudo a2ensite example.com sudo systemctl reload apache2

[How To] Upgrade to Python 3.9 in Google Colab

Image
Google Colaboratory , or “Colab” for short, is a product from Google Research. Colab allows anybody to write and execute arbitrary python code through the browser and is especially well suited to machine learning, data analysis, and education. More technically, Colab is a hosted Jupyter notebook service that requires no setup to use while providing access free of charge to computing resources, including GPUs. By default, it starts the runtime with Python version 3.7. If you want to upgrade the version in your current notebook, then follow these steps in the given order: 1) !python --version Python 3.7.13 2) !sudo apt-get update -y Get:1 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu bionic InRelease [15.9 kB] Hit:2 http://ppa.launchpad.net/cran/libgit2/ubuntu bionic InRelease Get:3 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ InRelease [3,626 B] Get:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease [15.9 kB] Hit:5 http://ppa.launchpad.net/graphics-d...

Access All iPhone Photos in Windows

Image
If you are an iPhone user and an user of Windows PC then you might have encountered some issues with photo transfers from iPhone to Windows. For a Mac user it might not be that difficult to transfer photos as both are Apple products and there are some good softwares available also which can be used for Photo Transfer. The problem lies with Windows users. One of the problem I encountered recently is that in my Windows PC when connecting iPhone it was not showing all photos, but you can see them in iPhone. I tried many solutions browsing through many sites including Apple and Microsoft support forums and knowledgebase along with some popular sites like wikihow.

Top 10 Sites for Computer Science & Engineering [2019]

Image
*Top 10 Sites for your career:* 1. LinkedIn 2. Indeed 3. Careerealism 4. Job-Hunt 5. JobBait 6. Careercloud 7. GM4JH 8. Personalbrandingblog 9. Jibberjobber 10. Neighbors-helping-neighbors *Top 10 Tech Skills in demand in 2019:* 1. Machine Learning 2. Mobile Development 3. SEO/SEM Marketing 4. Data Visualization 5. Data Engineering 6. UI/UX Design 7. Cyber-security 8. Cloud Computing/AWS 9. Blockchain 10. IOT *Top 10 Sites to learn Excel for free:* Search for these on Google: 1. Microsoft Excel Help Center 2. Excel Exposure 3. Chandoo 4. Excel Central 5. Contextures 6. Excel Hero 7. Mr. Excel 8. Improve Your Excel 9. Excel Easy 10. Excel-Jet *Top 10 Sites for Free Online Education:* *Search for these on Google:* 1. Coursera 2. edX 3. Khan Academy 4. Udemy 5. iTunesU Free Courses 6. MIT OpenCourseWare 7. Stanford Online 8. Codecademy 9. Open Culture Online Courses *Top 10 Sites to review your resume for free:* 1. Zety Resume Builder 2. Resumonk 3. Resume.com 4...