Gaurav Mantri (@gmantri) profile picture

Builder of Purple Leaf @purpleleaf_ai, an AI-powered social media content generation tool. Also blog @ https://xitter.cf/t.co/XWUU7iXivE.

Dallas, TX
Joined April 2009
Extremely disappointed with @FastSpring service! Raised a support ticket asking for clarification on pricing and no response so far (it’s been a few days already). Sad part is that they have been really good with support in past (have used them for almost 7-8 years earlier).
1
140
I wish @vercel has the ability to disable a project so that no deployments can be made for that project (currently the only option for me is to delete a project, AFAIK). cc:\@leeerob @vercel_support
1
112
Tried @Adobe #FireFly today. It is truly an amazing product. Had to cancel my subscription though because API access is only enabled for enterprise customers 😮! Please consider granting API access to individual developers. IMHO, you’re missing out on a much bigger market.
1
175
Gaurav Mantri retweeted
Found this setting on my iPhone today and I feel empowered today. Responses set for Professional network, spammers and friends.
1
1
181
Been using @Azure Copilot and results have been subpar unfortunately😔. IMHO, it should be open sourced (at least the core code) so that the community can contribute or at the very least allow users to raise issues publicly thru some GitHub repo. cc:\@scottgu @shanselman #Azure
2
1
755
This is the menu for a dinner at a wedding 😮. So much show off!!! #indianwedding
1
2
314
Do not share photocopy of Aadhaar with any organization - Government of India Ministry of Electronics and Information Technology
30
190
47
292
36,563
I am curious to know as to why Microsoft built Semantic Kernel? What's the value add it is bringing which is not in other open source tools like @langchain? @Azure #AzureOpenAI #SemanticKernel
1
348
Gaurav Mantri retweeted
A little known part of the origin story of LLMs: A lot of early Natural Language Processing research was funded by US intelligence agencies that had an interest in machine translation (and also speech recognition). This funding helped develop benchmarks, grow communities and nurture researcher interest in translation research disproportionate to its commercial application, and led to new foundational technologies motivated by translation. For example, the transformer paper was originally a paper on mapping from one language to another; now we use transformers to map from a prompt to a response. The most widely used tokenizer (BPE) was also popularized in a paper studying how to translate words not seen in the training set. More on this piece of NLP history in my letter in The Batch! deeplearning.ai/the-batch/is… – at Palo Alto, CA
47
421
56
2,404
450,405
Gaurav Mantri retweeted
Understand how Cosine similarity is used in LLMs Language models need to know how similar texts or words are. But how does it work? I will explain with the help of this single image 🔽 Models usually cannot work with textual data, so we need to convert words into numbers. This is mostly done with word embeddings. These are vector (numerical) representations of text. Note: The embeddings are usually huge, but for simplicity now I will use a vector that contains only X and Y coordinates for words. We have four words in this example: Apple, Banana, Cat and Dog. All of them are converted into vectors and visualized. As the name suggests Cosine similarity can tell how similar two vectors are. The range for cosine is usually between 0 and 1. 0 means no similarity, while 1 means exact match. To calculate Cosine similarity in the 2D space we can use the angle between the two points. Or we can use the formula from linear algebra where a⋅b is the dot product of a and b, and ∥a∥ and ∥b∥ are the magnitudes respectively. You can check the detailed calculation for Cat and Dog below. As you can see from the calculation, since both Cat and Dog are animals, they are pretty similar. But what about Apple and Dog? They are far from each other, and the angle is larger, so the Cosine similarity will be lower! What about huge embeddings? Look at the formula and think about it. The best thing about Cosine similarity is that it is not restricted to 2D vectors. You can do the same calculation for embeddings that contain hundreds of elements. Of course, we cannot visualize words the same way with bigger vectors, but the process is the same.
32
280
10
1,370
238,660
Details of the manoeuvre
1
4
8
854
Gaurav Mantri retweeted
New short course on Fine-tuning LLMs! Many developers are moving beyond only prompting, to also fine-tuning LLMs - that is, taking a pre-trained model and training it further on your own data, which can deliver superior results inexpensively. In this course, @realSharonZhou, CEO of Lamini (disclosure: I’m a minor shareholder) shows you how to recognize when fine-tuning can be help, and how to train an open-source LLM on your own data. I hope you enjoy the course! deeplearning.ai/short-course… – at Loyola, CA
40
480
53
2,416
503,020
Amul has still got it! 😁 #Chandrayaan3
6
26
1,137