BASUDEV_OS

Writing

2026-08-22

Understanding The Term 'LLM'

If you are interested in the field of AI/ML, You probably have learned or heared about the term LLM which stands for Large Language Model. In this Blog, We will be understanding the term LLM in detail. **Large Language Model** Breaking words from this terms we can generate a rough idea regarding what it is. **Large :** It refers to the scale of the model which include its parameter,training data. **Language :** It means patterns, relationship, structure, information in human written text. **Model** : It is a mathematical terms also known as a system which generates output from input. **INTORDUCTION TO LLM** To make it easy imagine LLM as a person who has read the lot of things. He has not memorized but knows about patterns, relationship among them and has become capable to complete the sentence from half sentence based on probability. Getting deeper LLM is usually a Neural Network based on Transformer architecture which is trained on massive text . It holds a capacity to predicts based on probability distribution given a previous sequence of token like p(token n| token 1,...... token n-1). It is trained with billions of paramteter( weights). It requires no labelling to predict next text but can predicts based on token probability without requiring human to manually label. Before going deeper into this lets understand term Token, Token can be a whole word or can be part of words, character or can even be a space. Lets dive into things happen when you give a prompt to AI models like claude, chatgpt. * **TOKENIZATION** In this raw text splits into token which is a small units so AI can process it easily. like for input " I Love Maths." Its get divided in tokenization process as \["I" , "love" , "Maths" "."] Next important things happens in tokenization process is each token is mapped to token ID which is a number. Like for i love maths. I->45 Love ->271 Cats-> 1203 this depends entirely on model's vocabulary. * **EMBEDDING** This is a way of converting token ID from tokenization process to a vector of number. Flowsheet till now ```markdown TEXT ↓ ↓ Token ↓ ↓ Token ID ↓ ↓ Embedding ``` Embedding is mandatory as it helps to find relation and pattern between tokens like Embeddings for Cat, Dog, Cow has similar pattern as they fall in same category Animal while cat,math has less similar pattern like Embedding for cat and dog "cat" → \[0.21, -0.73, 0.45, 0.18, ...] "dog" → \[0.19, -0.69, 0.48, 0.22, ...] * **SELF ATTENTION** This process allows each token to look at other previous token which help to understand the context and helps to find which is important for new token. Lets take an example for a statement " I like Python because It is needed for AI/ML." Here to understand what 'it' means model look to other token of text and find it means Python not other word here. #### Attention Score It needs to understand what attention score means and how it helps in predicting another token. For every token model creates Vector with 3 things Query(Q): What infomation I am looking for Key(K) : What information I already have Value(V) : What information to pass ahead. Using this attention Score is calculated * **FEED FORWARD PROCESS** It process information which is gathered by self attention. * **RESIDUAL CONNECTION** This keeps input representation while adding transformed output. * **LAYER NORM** It keeps resulting information Well Scaled. * **OUTPUT LAYER** Converts information learned by transformer into a final prediction.Transformer Process the input and creates a final representation which is taken by Output Layer and produces score for next token like for Capital City of Nepal is ``` TOKEN SCORE SOFTMAX KATHMANDU 8.5 95% BUTWAL 2.1 2% . . . . . . . . . . . . LONDON 0.1 0.1% ``` Softmax converts raw Score into probability. ![TRANSFORMER](https://miro.medium.com/v2/resize:fit:1200/1*eNYtdGpIaGwd8KWCwLUQ9w.png "TRANSFORMER BLOCK") * **Autoagressive decoding** : This picks next token. This can be done by either 1. **Greedy Decoding**: Choose with highest probability like ``` TOKEN PROBABILITY Butwal 41% Pokhara 30% Kathmandu 21% ``` Here In Greedy Decoding it chooses Butwal 1. **SAMPLING** Here next token is randomly choosed according to probabilities like not only choosing highest probability but choosing least also but there is less probability in choosing from least probable event but high chance of choosing among high probability.This result in more variation. 1. **TEMPERATURE** This is another Key aspect which decides which token is to be choosen If temperature is Low--------> Prefers High probability token High---------> Prefers Low probability token Thus high temperature brings more variation. 1. **TOP K SAMPLING** Top K means consider only top k token For Example ``` IF k=3 TOKEN PROBABILITY School 77% Library 20% Resturant 1% Stadium 0.5% Here while choosing next token it considers only top 3 and ignores rest and next token is from first 3 ``` TOP P SAMPLING This keep enough of most likely token until total probability reach P For example ``` IF P=0.90 TOKEN PROBABILITY SCHOOL 70% LIBRARY 9% HOME 11% RESTURANT 8% Here If we combine probability of first 3 it becomes exactly 90 percent so it stops and ignores 4 th as p is 0.90 which means 90 percent ``` * **APPEND** After choosing token, it add that token to existing text or para. * **REPEAT** Model does same thing again until it decides to stop. This is how it gives response for given text . This is every activity that happens inside LLM Model from giving prompt to generating a response.

2026-08-21

How AI Companies Are Making Money?

This is the question you probably have thought many times. In this article you will be learning how AI related companies are making money from their products/services. **NOTE** **You will be socked to find that by text you are typing in unpaid plan of claude , chatgpt or in any model is not making any money to companies directly as they dont use any advertisement or any thing which genuinely generates revenue.** In this Blog, You will be learning different things which is actually generating a revenue to companies. **1. SUBSCRIPTIONS** Subscription is major source of income for AI models. Subscription allows you to chat or build more and also provides premium response than free tiers. Subscription allows Pro or Plus version of models. This is major source of income of almost every AI companies/models. **2. PAY AS YOU GO MODEL** This is for a developer who don't just chat but also Build its own model with the help of API. When developer binds AI API to his/her model it becomes AI model capable to do task as of Original model. When built model response using API it sends request to Parent Model which is billed in small units called token. More response new model gives or uses AI more developer has to pay. **3. ENTERPRISE SHARING** Big companied just don't want a chatbot of AI Models but want AI wired to their services with extra security, support and customization. This is one of major side income of AI companies which many people don't notice. **4. LICENSING** Software companies want to integrate AI to their services like Copilot in Microsoft 365 for which they have to pay royalty amount to AI companies. **5. SELLING HARDWARE ITEMS** Companies like Nvidia sells several things like chips, GPU to other companies which are essential to build AI models. This is the main income for companies which build hardware items related to AI. **6. ADVERTISING** This is one of the major unnoticed source of income for AI models. We have seen facebook ,Youtube ,Google integrating ads with AI to make result effective. Beside this there are lot of factors which generates more income to AI models but above 6 are major income source of Popular AI models.

2026-08-15

Building My Website

**IDEA** Creating a website used to be my hobby. I have created and registered website in my domain [bhandaribasudev.com.np](bhandaribasudev.com.np) which was made using html css js and was managed by cloudflare 2 years ago. I wanted to build a creative website using framework like react js so just thought of one idea and built. **COLLABORATORS** This website was not only built by my self effort but with my friends as well as with help of AI.I would like to thank everyone who helped me building this project. **FUTURE INTEGRATION** I would like to integrate this website further by adding more products and projects along with making it more interactive as well as Creative. **CHALLENGES** Facing Challenges in building is normal and as usual i faced a lot of challenges like solving build logs but with the help of AI it was easy to solve.

2026-08-15

Witnessing The Greatness of AI

**In Early Childhood Days** Childhood days passed just by knowing what computer is, its parts and how it works. I used to hear about word AI as a part of Fifth Generation Computer which was taught to be hypothetical. Literally I havn't expected anything how future is going to be with Artifical Intelligence. Computer was self a great innovation made by scientist till my childhood. There was no chance of thinking how Artifical Intelligence will be behaving and helping us in several tasks because there was no any sign of such technology going to be build. **Initial Phase** I was shocked to know that first chatbot AI has been discovered named Chatgpt. I researched about it and found that it was the first generative AI which was made to reply to any kind of queries not just by looking in database but from its Transformer Model based on Probability. Text generation with such Accuracy was thing i had never expected in my childhood. Discovery of Other AI models made me feel so happy and curious in this field. Generative Ai didn't just stopped in Text Generation But Also an Image and Video generation which add more curiosity on me regarding how it working. **Current Phase** I am thinking like living in dream as got a chance to witness things which i never expected to happen. Although this is a not a miracle as everything is done by process from Training with Parameter to Form Large Language Model and then rendering processing fine tuning and making it ready for creation based on probability. But for Someone who thought once How this could be Possible to seeing and using make me really feel like this turned out to be a great miracle. Now Using AI to perform many tasks is making my day far more simpler than before. One can easily ask query generate things which has made one's daily tasks much more simpler. Artificial Intelligence Platform like Claude, Kimi has been doing a great job with high level of accuracy making things much more simpler. Other tools are also helping to generate Resume, Code, Pdf etc. **Future of Ai** AI have been making and evolving themselves with more purpose and no chance of getting stopped. Seeing Beginning to Current Phase of AI one can predicts how ai can upgrade to next level without any hesitation. I am sure AI will reach to phase where it can self tune itself to make it more accurate than other models. It is going to train itself from different things so quickly as of now. Threats of AI if it goes out of Human Control is literally going to be dangerous for Humans. Till Current Phase Ai has not been so dangerous but future with Ai needs to be well defined. How long would you think AI might improve itself in Future?