Skip to content

Useful shortcuts and Commands in Mac

Shift-Command-3 captures the entire screen, and Shift-Command-4 allows you to select a specific area Working with the terminal On a Mac, the SSH configuration file, config, is typically stored in your home directory within a… 

Data Parallelism & Model Parallelism

Let’s break down the two concept and how to implement it. The Difference: Data Parallelism vs. Model Parallelism Think of it like a factory: PyTorch Underutilizing GPUs? Unraveling the Mystery of nn.Parallel and Single-GPU Usage… 

Generate Images and Videos at Low Cost with Vertex AI

Harnessing the power of Google’s state-of-the-art generative AI models, Imagen 4 for image creation and Google Veo for video production, is now more accessible than ever through the Vertex AI platform. By leveraging the Vertex… 

How to change working directory in Colab

In Google Colab, cd changes the directory only within the current cell. However, Colab resets the working directory when a new cell runs. To make sure the directory change is persistent, try the following: Method… 

Effective GPU Monitoring in Slurm Environments

Monitoring GPU usage within an SSH-accessed Slurm environment requires a combination of Slurm commands and GPU monitoring utilities, which are essential for optimizing performance and resource management. These tools not only help in tracking GPU… 

How to Check GPU Access in SLURM Clusters

To determine the number of GPUs your account can access in a SLURM-managed cluster, follow these steps: Check Account and Partition Access: Use the command sacctmgr show associations to view your account’s associations with partitions.… 

Fixed: OSError: You are trying to access a gated repo. Make sure to have access to it at https://huggingface.co….

OSError: You are trying to access a gated repo. Make sure to have access to it at https://huggingface.co/google/gemma-3-27b-it. 401 Client Error. (Request ID: Root=1-67da7d97-6326b5f53a96415516d2c709;7a741876-1aae-4afd-8d26-afd122bc2c2d) Cannot access gated repo for url https://huggingface.co/google/gemma-3-27b-it/resolve/main/config.json. Access to model google/gemma-3-27b-it… 

How to debug codes generated by ChatGPT

Debugging code generated by ChatGPT by pasting the error into ChatGPT for it to resolve its own problem, most of the time, is a very bad choice for me. So, most of the time, I… 

Generate Images with Leonardo AI

Leonardo AI is an innovative tool for generating images through text prompts. Leveraging advanced algorithms, it offers features like image editing, upscaling, and community sharing. Users can create unique visuals effortlessly for various projects.

Animate an image with Leonardo AI

In this post, I will illustrate how to use Leonardo AI to animate an image effectively and creatively. This powerful tool allows users to bring static visuals to life, providing an engaging experience for viewers.

PySpark: selecting and accessing data

The content outlines various PySpark functions used for data manipulation in DataFrames. Key functions include filtering with where(), limiting rows with limit(), returning distinct rows, dropping columns, and grouping by criteria. Each function includes a brief example, illustrating how to access, modify, and aggregate data effectively within PySpark.

PySpark data frame creation song

This song and example code help remember PySpark data frame creation functions easier. Key functions include creating Data Frames, displaying data, printing schemas, and filtering. The document facilitates understanding how to manipulate data effectively in PySpark, making it a useful reference for users working with large datasets.

pandas function song – grouping the data

This song and code examples help us understand and remember various Pandas functions for data manipulation, including grouping, aggregating, and transforming data. Key functions include groupby(), pivot_table(), resample(), rolling(), expanding(), cumsum(), cumprod(), cut(), qcut(), aggregate(), and transform().

Pandas function song

A cute, catchy song on various Pandas functions applied to DataFrames. Key functions include sorting values, resetting the index, dropping columns and duplicates, sampling data, and handling missing values. Example codes illustrate each function’s output, demonstrating how to manipulate and visualize data effectively with Pandas.

PyTorch basic computation function song

The provided content showcases a series of PyTorch functions with descriptions and examples. Functions like torch.abs, torch.ceil, torch.floor, torch.clamp, torch.std, torch.prod, and torch.unique are explained with their respective use cases. These functions are fundamental for manipulating tensors in PyTorch.

error: Content is protected !!