Infinity CS
396 subscribers
133 photos
2 videos
10 files
45 links
Exploring the world of CS, AI, and ML ๐Ÿง . Sharing high-quality resources, tools, and interesting tech breakthroughs daily. Join us to learn and build together!
Download Telegram
Forwarded from The Hacker News
๐Ÿ›‘ ALERT - A Chrome ad blocker with 10 MILLION+ installs has a dormant risk.

Experts say the extension can be remotely configured to run arbitrary JavaScript across websites, without an extension update or store review.

Read the full analysis: https://thehackernews.com/2026/06/chrome-ad-blocker-with-10m-installs.html
โค2
๐Ÿ‡ฎ๐Ÿ‡ณ | Indian Government orders Meta to halt WhatsApp username rollout, seeks response within 3 days ๐Ÿšซ๐Ÿ“ฑ

The Indian government has directed Meta to immediately suspend the rollout of WhatsAppโ€™s upcoming Username feature in India ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ›‘.

According to reports by Reuters ๐Ÿ“ฐ, Indiaโ€™s Ministry of Electronics and Information Technology has sent an official notice to Meta regarding the matter. The new feature would allow users to communicate without revealing their phone numbers ๐Ÿ”’๐Ÿ“ž. However, Indian authorities have raised concerns that this could significantly increase online financial fraud ๐Ÿ’ธ, impersonation, and cybercrime ๐Ÿ•ต๏ธโ€โ™‚๏ธ.

Officials warn that criminals may exploit the feature by creating fake accounts under the names of government institutions or public figures to deceive the public ๐ŸŽญ.

As a result, Meta has been asked to provide a detailed explanation of its security measures within 3 days ๐Ÿ—“๏ธ, and to avoid launching the feature in India until discussions with the government are completed ๐Ÿค๐Ÿ›๏ธ.

Responding to the issue, a WhatsApp spokesperson stated that the feature has not yet been activated ๐Ÿ›‘, and that the company plans to reserve usernames related to government entities, public figures, and verified accounts in advance to prevent misuse โœ….

India remains WhatsAppโ€™s largest market ๐Ÿ“ˆ, with over 500 million users ๐Ÿ‘ฅ. Previously, apps like Telegram and Signal have also faced scrutiny from Indian authorities over features that allow users to hide phone numbers ๐Ÿ•ถ๏ธ๐Ÿ“ฑ.
๐Ÿ‘พ3
Mastering Cloud-Native Integration: A Comprehensive Overview of Ballerina Language ๐ŸŒโ˜๏ธ

In the modern software engineering landscape, building cloud-native systems often feels like assembling a puzzle with pieces that do not quite fit. We live in a world dominated by microservices, distributed architectures, and countless API endpoints. Developers traditionally use languages such as Java, Python, and Go to build distributed systems. However, these languages often treat networking as an additional feature that depends on external libraries, configuration files, and frameworks. To address this challenge, WSO2 develops Ballerina, an open-source, cloud-native programming language specifically designed for network applications, microservices, and system integration. This guide explains what Ballerina is, explores its core concepts, and demonstrates how it simplifies cloud-native application development.

๐Ÿค” Why Ballerina?

Unlike legacy programming languages that treat network interactions as basic I/O (Input/Output) operations, Ballerina treats the network as a first-class citizen. In Ballerina, concepts like clients, services, protocols (HTTP, gRPC, GraphQL), and data formats (JSON, XML) are fundamentally built into the language grammar itself.

Key Pillars;

Network-Aware Syntax - Developers create services and clients without relying on large external frameworks.
Visual Representation - Every Ballerina program can be visualized as a sequence diagram, helping architects and developers understand application flow.
Cloud-Native Support - The compiler generates deployment artifacts for Docker and Kubernetes.
Structural Typing - Ballerina works naturally with JSON and XML, making data integration simple.


๐Ÿงฑ Core Building Blocks


Ballerina provides several built-in concepts for cloud-native development.
Listeners - receive network requests.
Services - expose application functionality.
Resource Methods - map directly to HTTP methods such as
GET, POST, PUT, and DELETE.
Remote Methods - support communication through protocols such as gRPC and WebSocket.


๐ŸŒ Simple REST Service Example

The following example shows how easily Ballerina exposes a REST endpoint.

import ballerina/http;

service /music on new http:Listener(8080) {
    resource function get tracks() returns json {
        return [
            {id: "1", title: "Shape of You"},
            {id: "2", title: "Blinding Lights"}
        ];
    }
}


This example demonstrates several important features:

The HTTP listener is created with a single statement.
The service automatically exposes the
/music/tracks endpoint.
Ballerina converts the returned records into JSON without additional configuration.


โ˜๏ธ Cloud-Native Deployment

One of Ballerina's strongest advantages is its built-in cloud support. Instead of manually creating Dockerfiles and Kubernetes manifests, developers simply compile the project. During compilation, Ballerina analyzes the application and generates deployment artefacts, including Docker images and Kubernetes configuration files. This process reduces manual work and simplifies cloud deployment.

๐Ÿ”„ Data Integration

Ballerina includes native support for JSON, allowing developers to create and return structured data with minimal code.

resource function get summary() returns json {
    return {
        totalTracks: 2,
        systemStatus: "Healthy"
    };
}


Because JSON is a built-in language type, developers do not need additional libraries for serialization or deserialization.


๐ŸŽฏ Conclusion

Ballerina is a programming language designed specifically for cloud-native software development. It combines networking, data integration, and cloud deployment into a single language, reducing the need for external frameworks and boilerplate code. Its built-in support for services, APIs, JSON, Docker, and Kubernetes makes it a practical choice for building modern microservices and distributed applications. For developers who regularly create APIs or integration services, Ballerina offers a clean and efficient development experience.

@TheInfinityAI
โค2
Google Chrome is completely moving to a new extension system called Manifest V3 (MV3) and dropping the old Manifest V2 (MV2) rules. Google claims this change will improve security and performance. ๐Ÿš€

However, this is a huge blow to traditional Ad Blockers: ๐Ÿ›‘
The Main Issue: Unlike MV2, MV3 does not allow ad blockers to inspect web requests in real-time and do dynamic filtering. ๐Ÿ”โŒ

The Impact: Powerful tools like the original uBlock Origin will lose their full strength. Users might notice a drop in performance when blocking YouTube ads, anti-adblock popups, and custom filter rules. ๐Ÿ“‰

Current Status: With the Chrome 150/151 updates, Google has blocked all remaining workarounds that allowed users to run old MV2 extensions. ๐Ÿšซ


What Can You Do Now? ๐Ÿค”



Switch to MV3 Alternatives: Shift to Manifest V3-compatible extensions like uBlock Origin Lite, AdGuard (MV3), or AdBlock Plus (MV3). ๐Ÿ”„

Change Browsers: If you want total freedom and advanced blocking, switch to Firefox (which is keeping full support for powerful MV2-style filtering) or jump to Brave to get native, extension-free ad blocking! ๐ŸฆŠ๐Ÿ›ก

๐Ÿคฃ Meanwhile, Brave Browser...
"Manifest what? ๐Ÿ™„ I don't rely on web extensions to block ads. My ad blocker (Brave Shields) is built right into my core engine and written in Rust. You guys do whatever you want, I'll keep shredding YouTube ads and trackers natively!" ๐Ÿ’ช๐Ÿ”ฅ

@TheInfinityAI
โค2
GigaChat 3.5 Ultra Publicly Released โ€” The New Generation of the Flagship Model

The GigaChat team has released GigaChat 3.5 Ultra as open sourceโ€”a new 432B model under the MIT license. This is the first open-source hybrid of GatedDeltaNet and MLA scaled to hundreds of billions of parameters, featuring a proprietary training recipe we refined through more than 1,500 experiments. The model has grown in terms of code, mathematics, agent scenarios, and application domainsโ€”yet itโ€™s 40% smaller than GigaChat 3.1 Ultra.


Whatโ€™s inside:

๐Ÿ”˜A proprietary hybrid MLA + Gated DeltaNet architecture with a dedicated stabilization framework, without which this hybrid setup would not train reliably at this scale;
๐Ÿ”˜ Gated Attention: the model can locally down-weight overly strong signals from the attention layer;
๐Ÿ”˜GatedNorm: normalization with an explicit gate that controls signal magnitude across features;
๐Ÿ”˜Approximately 4x lower KV cache per token: with the same memory budget, the model can support 2.14x longer context and deliver a 20% throughput increase under load;
๐Ÿ”˜Two MTP heads, enabling up to 2.2x faster generation;
๐Ÿ”˜FP8 across all training stages with no quality degradation compared with bf16, enabled by custom Triton and CUDA kernels;
๐Ÿ”˜A new online RL stage after SFT and DPO.

Results:

๐Ÿ”˜ GigaChat-3.5-Ultra-Base outperforms DeepSeek V3.2 Exp Base and DeepSeek V4 Flash Base on average across a set of general, math, and code benchmarks:
๐Ÿ”˜ GigaChat-3.5-Ultra-Instruct is comparable to DeepSeek V3.2 in terms of average score, despite having half the size;
๐Ÿ”˜ According to the MiniMax-M2.7 LLM judge, the average win rate against GigaChat 3.1 Ultra is 75.9%, and against GPT-5 is 68.7%.

The entire stack โ€” data (our own LLM-filtered Common Crawl, 600+ programming languages in the code), architecture, training methodology, and infrastructure โ€” was built end-to-end by GigaChat team.

โžก๏ธ HuggingFace
Please open Telegram to view this post
VIEW IN TELEGRAM
Process ๐Ÿ–ฅ - Think of a process as an independent program or application running on your computer, such as your web browser or a music player. Each process has its own memory space and resources, meaning they are isolated from one another. ๐Ÿ”’

Thread ๐Ÿงต - A thread is a smaller unit of execution within a process. A single process can have multiple threads working together to perform tasks simultaneously, such as a bot managing multiple streams or handling network requests without freezing the entire application. โšก๏ธ


@TheInfinityAI ๐Ÿค–
Please open Telegram to view this post
VIEW IN TELEGRAM
Article 32: Neural Network Foundations โ€“ How Machines Learn ๐Ÿง 

A Neural Network is a mathematical model inspired by the neurons in a human brain. While a simple model like Linear Regression finds a straight line, a Neural Network can find any complex shape in data.

1. The Structure of a Neural Network

A network consists of layers of Neurons,
Input Layer - receives the raw data (like pixels of an image or numbers in a table).

Hidden Layers - are between the input and output. They perform the math and find hidden patterns. More hidden layers mean the network is Deep.

Output Layer - gives the final prediction


2. Inside the Neuron (The Math)

Every neuron does a simple calculation. It takes inputs, multiplies them by Weights, adds a Bias and passes the result through an Activation Function.
Weights - represent the strength of the connection. If a weight is high, that input is very important.

Bias - extra number that helps the neuron decide when to activate.

Activation Function -mathematical gate that decides the final output of the neuron. (ReLU, Sigmoid and Softmax functions)


3. The Learning Process (Forward Propagation)
- Data enters the Input Layer.

- The machine multiplies the data by the current Weights.

- The data moves through the Hidden Layers.

- The machine makes a Prediction in the Output Layer.

- The machine calculates the Loss


4. How the Machine Corrects Itself (Backpropagation)

This is the most advanced part of DL. Backpropagation is the process of moving backward from the error to update the weights.
The machine uses the Chain Rule from calculus to calculate the Gradient

It finds exactly how much each weight contributed to the total error.

It then changes the weights slightly to make the error smaller for the next time.


Summary ๐Ÿ“

Neural Networks use layers of neurons to find complex patterns. Each neuron uses Weights, Bias and Activation Functions to process data. Forward Propagation makes a prediction, and Backpropagation uses math to correct errors by updating weights. Optimizers like Adam make this process fast and efficient. โœจ ๐Ÿ™Š๐Ÿ˜.

In the next article (Article 33), we discuss Computer Vision, where we learn how CNNs (Convolutional Neural Networks) see images! ๐Ÿ“ทโญ๏ธ ๐Ÿ™Š๐Ÿ˜


โœ๏ธ @TheInfinityAI
Electricity is optional ๐ŸŒš
๐ŸŽ‰3
Article 33: Computer Vision โ€“ Convolutional Neural Networks (CNNs) ๐Ÿ“ท๐Ÿง 

Standard Neural Networks are bad at processing images because an image has thousands or millions of pixels. If you flatten an image into a 1D vector, you lose all spatial information (where pixels are relative to each other). CNNs solve this problem by keeping the 2D grid structure intact. โœ…

1. The Core Idea: Spatial Features ๐ŸŽฏ

When a human looks at a picture of a face, they don't look at individual pixels. They recognize edges, shapes, eyes, noses, and then the whole face. A CNN does the exact same thing in a hierarchy
Early Layers - Detect simple lines, edges and corners.
Middle Layers - Combine edges to detect shapes like circles, squares or textures.
Deep Layers - Combine shapes to detect complex objects like faces, cars or animals.


2. The Main Building Blocks of a CNN ๐Ÿ›

A typical CNN architecture consists of three main operations repeated in layers
I. Convolution Layer (The Feature Extractor)
II.
Activation Layer (ReLU)
III. Pooling Layer (
Downsampling)


3. The Complete Architecture ๐ŸŽฏ

After several Convolution, ReLU and Pooling layers, the 2D feature maps are flattened into a 1D vector. This vector is passed to a Fully Connected Layer (a standard Neural Network layer) to make the final classification prediction.
๐Ÿ–ผ Input Image
โ†“
๐Ÿงฎ Convolution + โšก๏ธ ReLU
โ†“
๐Ÿ“‰ Max Pooling
โ†“
๐Ÿงฎ Convolution + โšก๏ธ ReLU
โ†“
๐Ÿ“‰ Max Pooling
โ†“
๐Ÿ“„ Flatten
โ†“
๐Ÿง  Fully Connected Layer
โ†“
๐ŸŽฏ Softmax Output


4. Advanced Concept: Transfer Learning ๐Ÿš€โ™ป๏ธ

Training a deep CNN from scratch requires millions of images and massive computing power. In practice, engineers use Transfer Learning.
We take a model (like ResNet, VGG, or EfficientNet) that was already trained on a huge dataset like ImageNet (over 1 million images).

We freeze the feature extraction layers and only re-train the final output layers for our specific task.

This saves hours of training time and achieves high accuracy even with a small dataset.


Summary ๐Ÿ“โœจ

CNNs are designed for visual data. They use Convolutional Layers with filters to extract features, ReLU for non-linearity, and Pooling Layers to downsample data. Instead of training from scratch, developers use Transfer Learning to build high-accuracy computer vision applications fast. โœจ ๐Ÿ™Š๐Ÿ˜.

In the next article (Article 34), we discuss Sequence Modeling (RNN, LSTM, & GRU), where we learn how machines process time-series data and text! ๐Ÿ’ฌ๐Ÿค–
๐Ÿ™Š๐Ÿ˜

โœ๏ธ @TheInfinityAI
NN & DL Course.pdf
14.3 MB
Neural Networks & Deep Learning ๐Ÿง ๐Ÿ“š

Want to master Deep Learning from the ground up? This PDF contains comprehensive notes covering the complete DeepLearning. Save this PDF and keep it as your Deep Learning handbook!

#AI #MachineLearning #DeepLearning #NeuralNetworks #CNN #RNN #LSTM #Python #DataScience #ArtificialIntelligence #AndrewNg #DeepLearningAI #ComputerVision #NLP #LearnAI @TheInfinityAI
More more more short plz
๐Ÿคฃ2
Article 34: Sequence Modeling โ€“ RNN, LSTM, and GRU ๐Ÿง ๐Ÿ“š

Standard Neural Networks assume that all inputs and outputs are independent of each other. But in language, the word "bank" means something different depending on the previous words ("river bank" vs. "money bank"). Sequence models have a memory to remember past information.

1. Recurrent Neural Networks (RNNs) ๐Ÿ”„

An RNN processes a sequence one step at a time. It keeps an internal state (a hidden memory) that gets passed from one step to the next.

The Math (Step-by-Step) ๐Ÿงฎ
At time step t,
The network takes the current input and the previous memory

It combines them to make the new memory

It uses new memory to produce an output

More - Click here...

2. The Big Problem with Standard RNNs โš ๏ธ

Standard RNNs work well for short sequences, but they fail on long sequences due to the Vanishing Gradient Problem.
๐Ÿ“‰ Vanishing Gradient
When backpropagating through many time steps (Backpropagation Through Time), the gradients get multiplied repeatedly by small numbers.

๐Ÿ˜ต The Result
The gradient becomes nearly zero. The model forgets what happened at the beginning of the text or series.


3. Long Short-Term Memory (LSTM) ๐Ÿš€๐Ÿง 

To fix the vanishing gradient problem, the LSTM architecture was invented. An LSTM adds a Cell State that acts like a highway for information to flow unchanged, controlled by three mathematical Gates,
Forget Gate - Decides what information from the past to throw away.

Input Gate - Decides what new information to store in the cell state.

Output Gate - Decides what the next hidden state should be based on the updated cell state.

More - Click here...

4. Gated Recurrent Unit (GRU) โšก๏ธ

A GRU is a streamlined version of the LSTM. It merges the cell state and hidden state and reduces the three gates down to Two Gates,
Reset Gate - Decides how much past information to forget.
Update Gate - Combines the jobs of the input gate and forget gate.

GRUs have fewer parameters than LSTMs. It making them faster to train while offering nearly identical performance.

Summary ๐Ÿ“

RNNs process sequence data step-by-step using a hidden memory. Standard RNNs suffer from Vanishing Gradients, so we use LSTMs (3 gates) or GRUs (2 gates) to retain long-term dependencies effectively.

In the next article (Article 35), we start Phase 10: Advanced AI & Transformers, diving into Attention Mechanisms and Transformers! โšก๏ธ๐Ÿ”ฅ ๐Ÿ™Š๐Ÿ˜

โœ๏ธ @TheInfinityAI
Article 35: Attention Mechanisms and Transformers โšก๏ธ๐Ÿค–๐Ÿง 

In 2017, Google published the famous paper "
Attention Is All You Need." It introduced the Transformer which replaced RNNs and LSTMs entirely. Transformers can process an entire sentence at the exact same time (parallel processing), making them much faster and more accurate.

1. What is Attention? ๐Ÿ‘€๐Ÿ”

When you read a sentence like: "The animal didn't cross the street because it was too tired," what does "it" refer to? Humans know "it" refers to the animal.

An Attention Mechanism allows the model to look at all words in a sentence simultaneously and assign weights (importance) to the connections between them. It directly connects the word "it" to "animal."

2. The Math Behind Self-Attention ๐Ÿงฎ๐Ÿง 

To compute self-attention, the model converts every word vector into three vectors using learned weight matrices
Query (Q) - What the word is looking for.
Key (K) - What the word represents.
Value (V) - The actual information content of the word.


Learn more about "The Scaled Dot-Product Attention Formula"

3. Multi-Head Attention ๐Ÿง ๐Ÿง ๐Ÿง 

Instead of calculating attention just once, Transformers use Multi-Head Attention.
The model runs the attention formula multiple times (e.g., 8 or 16 heads) in parallel.

Each head focuses on a different type of relationship (e.g., one head tracks grammar, another tracks pronoun references, another tracks action object links).


4. Key Components of Transformer Architecture ๐Ÿ—๐Ÿค–

A Transformer model consists of an Encoder and a Decoder
Positional Encoding - Because Transformers process all words at once, they do not inherently know word order. Positional encodings add mathematical sine and cosine values to input vectors to inject word positions.

Encoder - Takes input text, processes it through Multi-Head Attention and Feed-Forward Neural Networks, and outputs rich contextual representations. (Used in models like BERT).

Decoder - Uses masked self-attention to generate text word-by-word by predicting the next token. (Used in models like GPT).


Summary ๐Ÿ“โœจ

Attention Mechanisms allow models to learn which words are important to one another and capture relationships across an entire sequence. ๐Ÿ”—๐Ÿง 

Transformers use,
๐Ÿ”Ž Query, Key, and Value (Q, K, V)
๐Ÿง  Self-Attention
๐Ÿ‘ฅ Multi-Head Attention
๐Ÿ“ Positional Encoding
โšก๏ธ Parallel Processing

Together, these ideas form the foundation of many modern Generative AI and Large Language Models (LLMs).

In the final article (Article 36), we explore Large Language Models (LLMs) and Generative AI! ๐Ÿค–โœจ๐Ÿš€


โœ๏ธ @TheInfinityAI
1
Article 36: Large Language Models (LLMs) and Generative AI ๐Ÿค–๐Ÿš€

Generative AI refers to models that create new content like text, images or audio rather than just classifying existing data. LLMs are Decoder only Transformers trained on massive textual datasets to predict and generate text.

1. How LLMs Work (Next-Token Prediction) ๐Ÿ”ฎ

At its core, an LLM performs a probability calculation, given a sequence of words (tokens), it predicts the most likely next token.

more...

2. The Training Pipeline of an LLM ๐Ÿ—

Building a production-grade LLM involves three major phases
I. Pre-training (Unsupervised / Self-Supervised)
II. Supervised Fine-Tuning (SFT)
III. Alignment (RLHF & DPO)


3. Key Paradigms in Modern Generative AI โœจ
Retrieval-Augmented Generation (RAG)
Diffusion Models (
Image Generation)
Mixture of Experts (
MoE)


Summary ๐Ÿ“๐Ÿ“š

LLMs utilize Decoder-based Transformer architectures to predict text sequentially. They undergo Pre-training, Supervised Fine-Tuning (SFT), and Alignment (RLHF/DPO) to become instruction-following assistants. Frameworks like RAG and architectural techniques like Mixture of Experts (MoE) extend these models into production systems. ๐Ÿ’ฌ๐Ÿค๐Ÿš€๐ŸŒ

Congratulations, we have completed the entire A to Z Machine Learning and AI Roadmap from fundamental statistics to modern Generative AI models now. ๐Ÿ—บ๐Ÿค–

โœ๏ธ @TheInfinityAI
๐Ÿ‘2โค1๐ŸŽ‰1