- Evaluation
- Inception Score
- FID (Freche Inception Distance)
- LVM - Large Visual Model
- GAN
- DDPM: denoising diffusion probabilistic models (https://arxiv.org/abs/2006.11239)
- DDIM: denoising diffusion models (https://arxiv.org/abs/2010.02502)
Saturday, January 18, 2025
LVM - DDPM, DDIM
Saturday, November 16, 2024
LLM - Sampling Temperature, Top K, and Top P, What & How?
In the LLM, using sampling
When we set the temperature, top K, and top P in the LLM, do you know what they are and what the order for applying them is?
- LLM Samplers Explained
- How to sample from the language model
- What is the actual order of execution when Top-K, Top-P, and Temperature are used together for NLP decoding?
- Token selection strategies: Top-K, Top-P, and Temperature
- Can someone explain what Top K and Top P are and what they do and how to use them?
- Mastering LLM Parameters: A Deep Dive into Temperature, Top-K, and Top-P
- The Curious Case of Neural Text Degeneration (Nucleus Sampling)
Thursday, October 10, 2024
PyTorch - get the total number of model parameter
- https://stackoverflow.com/questions/49201236/check-the-total-number-of-parameters-in-a-pytorch-model
- https://discuss.pytorch.org/t/how-do-i-check-the-number-of-parameters-of-a-model/4325
1. simple version
pytorch_total_params = sum(p.numel() for p in model.parameters())
2. listed version
str_name = "name"
str_parameter = "parameter"
print(f"{str_name:50s}: {str_parameter:10s}")
total_params = 0
for name, parameter in model.named_parameters():
if not parameter.requires_grad:
continue
params = parameter.numel()
print(f"{name:50s}: {params:10s}")
total_params += params
print(f"Total Trainable Params: {total_params}")
return total_params
Friday, September 13, 2024
PIL - image resize() from the basic code & idea
PIL: Python Image Library: https://github.com/python-pillow/
Written by Fredrik Lundh(https://groups.google.com/g/dev-python/c/fbv5gWgaGpM?pli=1)
image resize algorithm
- https://en.wikipedia.org/wiki/Image_scaling
- https://en.wikipedia.org/wiki/Affine_transformation#Examples
- affine transformation scaling
- Please refer to "scale about image" image
- https://en.wikipedia.org/wiki/Bicubic_interpolation
- Pillow(PIL) Image resize NEAREST behavior differs depending on the version
- Resizing Images With Bicubic Interpolation
Saturday, August 3, 2024
What is the scheduler in the Stable Diffusion?
1. what is the scheduler?
- Choosing the Best SDXL Samplers for Image Generation
- Schedulers in AI Image Generation
- The ML developers guide to Schedulers in Stable Diffusion
2. sampler or scheduler?
Monday, July 29, 2024
Transformer step by step
Original Paper: Attention Is All You Need
- The Illustrated Transformer by Jay Alammar
- https://www.linkedin.com/posts/eordax_transformers-ai-genai-activity-7221423755506421760-4fyh?utm_source=share&utm_medium=member_desktop
- https://www.linkedin.com/posts/eordax_transformers-encoder-ai-activity-7221063158302425088-kGLD?utm_source=share&utm_medium=member_desktop