Sources for Guides & Tutorials on Sustainable AI

Welcome to Guides & Tutorials! This is a collaborative space where we, the SustainAI group members share our insights, tutorials, and ideas to spark curiosity and foster dialogue. Here you’ll find a blend of practical how-tos, thought-provoking commentaries, and innovative approaches—all crafted to inspire new perspectives, and encourage the free exchange of knowledge. Dive in, share your thoughts, and join the conversation.

Large Language Models

The Definitive Guide to Chunking Strategies for RAG and LLMs - Souvik

From Fixed-Size to Semantic and Hierarchical Splits — A Practical Guide to Structuring Text for Smarter AI Systems

https://medium.com/ai-advances/the-definitive-guide-to-chunking-strategies-for-llms-and-rag-57e20b9d855d

 

Physics-informed Machine Learning (PIML)

Solving Differential Equations with Physics-Informed Neural Networks (PINNs): A mild introduction with Pytorch - Souvik

In science and engineering, partial differential equations (PDEs) are foundational tools used to describe a wide range of natural phenomena — from the vibrations of a guitar string to the diffusion of heat in a metal rod or the flow of fluids in porous media. Traditionally, solving these equations has required numerical methods such as finite difference or finite element techniques, which discretize the space and time domain into meshes and solve iteratively.

But with the rise of machine learning, a new idea emerged: what if we could use artificial neural networks (ANNs) to learn the solution of a PDE directly?

https://medium.com/@souvikat/solving-differential-equations-with-physics-informed-neural-networks-pinns-a-mild-introduction-5570634149b8

 

Machine Learning Strategies

A Practical Guide to Automatic Differentiation in Python: Operator Overloading from Scratch and other implementation strategies

Cracking the Gradient Code: Exploring Differentiation Techniques for Machine Learning - Souvik

When it comes to Machine Learning and other data-driven optimization techniques, the ultimate goal is often to optimize a loss function to find its minimum. This process is essential because it helps models learn by adjusting their parameters to minimize errors. Among the various methods available, Gradient Descent stands out as the most widely embraced approach for optimizing loss functions. But here’s the kicker — any gradient-based optimization method hinges on one crucial step: calculating those gradients first. It might sound obvious, but this fundamental computation is what drives the entire optimization process forward...

https://medium.com/@souvikat/cracking-the-gradient-code-exploring-differentiation-techniques-for-machine-learning-dc5253f9097a

Nonlinear Parameter Identification Using Optimization Based Prediction Error Method - Souvik

In the world of dynamic system modeling, accurately identifying system parameters is essential for building models that not only represent real-world behaviors but also enable effective prediction, control, and optimization. In the previous article, we explored how optimization-based parameter identification, particularly using the Prediction Error Method (PEM), effectively handles linear systems, offering improvements over traditional techniques like Ordinary Least Squares (OLS). However, real-world systems are rarely purely linear. From mechanical oscillators to chemical reactors and biological networks, most systems exhibit nonlinear dynamics that demand more sophisticated identification approaches.

Nonlinear parameter identification introduces new layers of complexity that go beyond the challenges encountered in linear systems. While linear models benefit from well-defined cost landscapes and closed-form solutions, nonlinear models often involve complex cost functions riddled with multiple local minima, sensitivity to initial conditions, and increased computational demands. These challenges make parameter estimation in nonlinear systems a far more intricate task, where traditional optimization methods can fall short...

Read more: https://medium.com/@souvikat/nonlinear-parameter-identification-using-optimization-based-prediction-error-method-0b923aedb10c

 

 

An Introduction to Linear Model Identification: Ordinary Least Squares (OLS) with Python

Numerical Solutions of ODEs with Python: Euler, Runge Kutta and Beyond - Souvik

Solving Ordinary Differential Equations (ODEs) lies at the core of modeling dynamic systems in engineering. From predicting chemical reactions to simulating mechanical oscillations, numerical solutions to ODEs are crucial for understanding time-dependent processes. While some simple systems have closed-form solutions, most real-world scenarios — especially in chemical engineering — are too complex for analytical approaches. This is where numerical methods come in...

Continue to read: https://medium.com/@souvikat/numerical-solutions-of-odes-with-python-euler-runge-kutta-and-beyond-421d4926d1fd