sapveloper retweeted
Linear Regression clearly Explained!
Linear Regression models relationship bitheen a dependant variable (y) & two or more independent variables (x1, x2 ...)
❗️ For the sake of simplicity we discuss linear regression with a single independent variable.
Mathematical Representation:
y=mx+c
where:
- y is the dependent variable
- x is the independent variable
- m is the slope of the line
- c is the y intercept
Cost Function:
❗️The goal is to find the best values for m and c that minimize the error between the predicted values & the actual values for all data points.
This is how the cost function looks, a mean squared error:
MSE= 1/N∑(yi−(m*xi+c))**2
Where:
- N is the number of data points.
- yi is the actual value for the ith data point.
- mxi+c is the predicted value for the ith data point.
How it works (Optimisation)❓
To minimize the MSE, we can use gradient descent.
The basic idea is to:
- Start with some initial value of m & c
- Compute the gradient of the MSE w.r.t. both m & c.
- Update m & c in the direction of the negative gradient.
Implementation from Scratch:
Now that we understand how things work it's fairly simple to implement linear regression in Python!
Check this out 👇
That's a wrap!
If you interested in:
- Python 🐍
- ML/MLOps 🛠
- CV/NLP 🗣
- LLMs 🧠
- AI Engineering ⚙️
Find me → @akshay_pachaar ✔️
Everyday, I share tutorials on above topics!
I also write a weekly Newsletter on AI Engineering, link in the next tweet!
Cheers!! 🥂
sapveloper retweeted
Expand productivity in your organisation with AI. Microsoft Copilot for Microsoft 365 now supports plugin extensibility, letting you create customised tools to extend Microsoft 365.
Get details about building and publishing plugins. msft.it/6018imKt0
#MSIgnite
sapveloper retweeted
Monte Carlo simulations:
A way to estimate portfolio values over 1000s of price paths.
Yesterday I published a step-by-step walk through of using Python to do it.
You can read it free:
sapveloper retweeted
Before we start a quick primer on tokenization!
Raw text → Tokenization → Embedding → Model
Embedding is a meaningful representation of each token (roughly a word) using a bunch of numbers.
This embedding is what we provide as an input to our language models.
Check this👇
sapveloper retweeted
We are revolutionizing the debugging experience within VS, now supercharged by GitHub Copilot.
Copilot's enhanced debugging capabilities were showcased at #MSIgnite last week.
Do check this out & share your feedback with us!
@ProseMsft @gustavoas @arjun_rad @SumitGulwani
In this module, learn how to use GitHub Copilot in Visual Studio to debug your apps. Remember: the only good bug is a squashed bug! Read on: msft.it/6011iGWCt #AI #VisualStudio
sapveloper retweeted
We are making data manipulation easy and fun with the new Copilot. Check out and share your experience :D
@ProseMsft @AnirudhKhatry @pidgeyusedgust @SumitGulwani
This quoted post is unavailable.
sapveloper retweeted
Microsoft is Offering FREE Certification Courses!
No Fee, No Subscription, No Registration Required, Just Start Learning.
These Courses Includes Video Lectures, Tutorial and Easy Notes.
Discover the Following Free Courses.
1. Microsoft Azure Fundamentals
- Course AZ-900T00
- 24-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
2. Developing Solutions for Microsoft Azure
- Course AZ-204T00
- 120-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
3. Microsoft Azure Administrator
- Course AZ-104T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
4. Configuring and Operating Microsoft Azure Virtual Desktop
- Course AZ-140
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
5. Designing Microsoft Azure Infrastructure Solutions
- Course AZ-305T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
6. Designing and Implementing Microsoft DevOps solutions
- Course AZ-400T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
7. Microsoft Azure Data Fundamentals
- Course DP-900T00
- 24-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
8. Microsoft Azure AI Fundamentals
- Course AI-900T00
- 24-Hour Course
- Course Link
learn.microsoft.com/en-us/tr…
9. Designing and Implementing a Microsoft Azure AI Solution
- Course AI-102T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
10. Develop Generative AI Solutions with Azure OpenAI Service
- Course AI-050T00
- 24-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
11. Microsoft Security, Compliance, and Identity Fundamentals
- Course SC-900T00
- 24-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
12. Data Engineering on Microsoft Azure
- Course DP-203T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
13. Microsoft Security Operations Analyst
- Course SC-200T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
14. Designing and Implementing Microsoft Azure Networking Solutions
- Course AZ-700T00
- 72-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
15. Designing and implementing a data science solution on Azure
- Course DP-100T01
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
16. Administering Microsoft Azure SQL Solutions
- Course DP-300T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
17. Microsoft Cybersecurity Architect
- Course SC-100T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
18. Microsoft Azure Security Technologies
- Course AZ-500T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
19. Azure Support Engineer Troubleshooting Azure Connectivity
- Course AZ-720T00
- 72-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
20. Administering Windows Server Hybrid Core Infrastructure
- Course AZ-800T00
- 96-Hour Course
- Cours Link:
learn.microsoft.com/en-us/tr…
21. Configuring Windows Server Hybrid Advanced Services
- Course AZ-801T00
- 96-Hour Course
- Course Link:
learn.microsoft.com/en-us/tr…
Follow @ZabihullahAtal It's all about Empowering You with AI Tools, AI, and Tech Updates, with Free Courses..
sapveloper retweeted
The best way to gauge the quality of someone’s ideas isn’t to listen to them talking. It’s to read their writing.
Compelling speakers can mask weak logic with strong charisma. Putting key points on a page exposes flawed reasoning.
Compelling writing requires clear thinking.
sapveloper retweeted
LoRA is a genius idea.
To understand the fine-tuning of Large Language Models, you must understand how LoRA works.
By the end of this post, you'll know everything important about how it works.
Large Language Models are good generalists, but they have little specialization. We train them in many different tasks, so they know a bit about everything but not enough about anything.
Think of a kid who can play three different sports at a high level. While he can be proficient across the board, he won't get a scholarship unless he specializes. That's how the kid can reach his full potential.
We can do the same with these large models. We can train them to solve a particular task and nothing else.
We call this process "fine-tuning." We start with everything the model knows and adjust its knowledge to help it improve on the task we care about.
Fine-tuning is revolutionary, but it's not free.
Fine-tuning a large model takes time, care, and lots of money. Many companies can't afford the process. Some can't pay for the hardware. Some can't hire people who know how to do it. Most companies can't do either.
That's where LoRA comes in.
We realized we could approximate a large matrix of parameters using the product of two smaller matrices. There was a lot of wasted space within these large models. What would happen if we find a new, more optimal representation?
Did you ever buy a map at a gas station? Giant pages showing every small road, path, and lake around you. They were exhaustive but hard to navigate. These are like parameters in a large model.
LoRA turns a gas station map into a cartoon treasure map. Every useless parameter is gone. Only two roads, a palm tree, and a cross pointing at the treasure. We don't need to fine-tune the entire model anymore. We can only focus on the small treasure map that LoRA gives us.
It's a mind-blowing trick.
We can train the small approximation matrices from LoRA instead of fine-tuning the entire model. LoRA is cheaper, faster, and uses less memory and storage space.
You can also merge the approximation matrices with the model during deployment time. They work like simple adapters. You load up the one you need to solve a problem and use a different one for the next task.
Then, we have QLoRA, which makes the process much more efficient by adding 4-bit quantization. QLoRA deserves its own separate post.
The team at @monsterapis has created an efficient no-code LoRA/QLoRA-powered LLM fine-tuner.
What they do is pretty smart:
They automatically configure your GPU environment and fine-tuning pipeline for your specific model. For example, if you want to fine-tune Mixtral 8x7B on a smaller GPU, they will automatically use QLoRA to keep your costs down and prevent memory issues.
The @monsterapis platform specializes in no-code LoRA-powered fine-tuning. It's the fastest and most affordable offering for fine-tuning models in the market. They sponsored me and gave me 10,000 free credits for anyone who uses the code "SANTIAGO" in their dashboard:
monsterapi.ai/finetuning
If you want to read their latest updates, get free credits and special offers, join their Discord server: discord.com/invite/mVXfag4kZ…
TL;DR:
• Traditional fine-tuning trains the entire model. It requires a complex setup, higher memory, and expensive hardware.
• LoRA: Trains a small portion of the model. It's faster, requires much less memory, and affordable hardware.
• QLoRA: Much more efficient than LoRA, but it requires a more complex setup.
• No-code fine-tuning with LoRA/QLoRA: The best of both worlds. Low cost and easy setup.
sapveloper retweeted
New book here: amzn.to/46O41Nw by @predictanalytic
In his new book, "The #AI Playbook", Eric Siegel delivers invaluable insights, essential requirements, and practical steps for successful business deployments of #MachineLearning. The book introduces & proposes bizML as a stronger, updated, industry-standard methodology for successful #ML projects, seeking to be more pertinent, compelling, and widely adopted than the decades old CRISP-DM methodology:
amzn.to/46O41Nw by @predictanalytic
sapveloper retweeted
We are one step closer to having AI generate code better than humans!
There's a new open-source, state-of-the-art code generation tool. It's a new approach that improves the performance of Large Language Models generating code.
The paper's authors call the process "AlphaCodium" and tested it on the CodeContests dataset, which contains around 10,000 competitive programming problems.
The results put AlphaCodium as the best approach to generate code we've seen. It beats DeepMind's AlphaCode and their new AlphaCode2 without needing to fine-tune a model!
I'm linking to the paper, the GitHub repository, and a blog post below, but let me give you a 10-second summary of how the process works:
Instead of using a single prompt to solve problems, AlphaCodium relies on an iterative process that repeatedly runs and fixes the generated code using the testing data.
1. The first step is to have the model reason about the problem. They describe it using bullet points and focus on the goal, inputs, outputs, rules, constraints, and any other relevant details.
2. Then, they make the model reason about the public tests and come up with an explanation of why the input leads to that particular output.
3. The model generates two to three potential solutions in text and ranks them in terms of correctness, simplicity, and robustness.
4. Then, it generates more diverse tests for the problem, covering cases not part of the original public tests.
5. Iteratively, pick a solution, generate the code, and run it on a few test cases. If the tests fail, improve the code and repeat the process until the code passes every test.
There's a lot more information in the paper and the blog post. Here are the links:
• Paper: arxiv.org/abs/2401.08500
• Blog: codium.ai/blog/alphacodium-s…
• Code: github.com/Codium-ai/AlphaCo…
I attached an image comparing AlphaCodium with direct prompting using different models.
2024 has barely started, and we are making a ton of progress!
sapveloper retweeted
🚀 Introducing AlphaCodium -
A first-of-its-kind open-source code generation tool that surpasses most human competitors in code contests ⭐️
Inspired by DeepMind's AlphaCode❤️🔥, but beats it (judge by yourself!)
1/
sapveloper retweeted
Entrepreneurship isn't about the money.
It's about controlling the 4 Ws:
• When you work
• Where you work
• What you work on
• Who you work with
You control your future.
Start with systems and then scale.
sapveloper retweeted
This paper has a terrific start: "Science is curiously asymmetric. New ideas are meticulously tested using data, statistics, and formal models. Yet those ideas originate in a notably less meticulous process involving intuition, inspiration, and creativity."
Recently accepted by #QJE, “Machine Learning as a Tool for Scientific Discovery,” by Ludwig (@profjensludwig) and Mullainathan (@m_sendhil): doi.org/10.1093/qje/qjad055
sapveloper retweeted
If you really want to do something useful in AI, instead of training another tiny llama, pick up this project hazyresearch.stanford.edu/bl… and train a 1B-parameter multilingual BERT with 32k input size. The code is here github.com/HazyResearch/m2. The data is all over @huggingface. The world will thank you.
sapveloper retweeted
My new paper with @JosephEStiglitz argues that developing economies are at a turning point and need a new growth strategy based on green investment, labor-absorbing services, and new "industrial" policies focused on these two areas drodrik.scholar.harvard.edu/…
sapveloper retweeted
100+ resources to become a great engineering leader!
I've created a GitHub repository that contains 100+ resources to level up and become a great engineering leader in 2024!
P.S. Like or repost to spread the word, so this reaches to anyone who needs it!
github.com/gregorojstersek/r…
sapveloper retweeted
Understanding #DeepLearning (download 541-page PDF eBook): udlbook.github.io/udlbook/ by @SimonPrinceAI
——————
#BigData #DataScience #AI #ML #MachineLearning #NeuralNetworks #ReinforcementLearning #NLProc #ComputerVision #Algorithms #DataScientists #mathematics
sapveloper retweeted
Be a Full Stack Developer in 2024. Top FREE Courses:
❯ HTML and CSS: freecodecamp.org/learn/2022/…
❯ JavaScript: openclassrooms.com/en/course…
❯ Python: cs50.harvard.edu/python/
❯ MySQL: scaler.com/topics/course/sql…
❯ MongoDB: learn.mongodb.com/learning-p…
❯ Full Stack: fullstackopen.com/en/
❯ Node.js: scaler.com/topics/course/nod…
❯ Node.js, Express: learn.microsoft.com/training…
❯ React: fullstackopen.com/en/part1
❯ Java: scaler.com/topics/course/jav…
❯ Git: learn.microsoft.com/training…
❯ GraphQL: fullstackopen.com/en/part8
❯ Microservices: cognitiveclass.ai/courses/re…
❯ Cloud: openclassrooms.com/en/course…
❯ Serverless: cognitiveclass.ai/courses/co…
❯ Linux: cybrary.it/course/comptia-li…
❯ DevOps, CI/CD: cognitiveclass.ai/courses/bu…
❯ Docker: cognitiveclass.ai/courses/do…
❯ Kubernetes, OpenShift: cognitiveclass.ai/courses/ku…
































