docs(ai): Comprehensive AI Developer Handbook & Submodule Guides — Training from Scratch in Pure .aira
This commit is contained in:
1 parent
44ad01a87d
commit
a690296e7c
10 files changed
+431
-15
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# 🎨 AIRA Generative Diffusion Models (`ai/diffusion`)
|
||||
|
||||
[](https://github.com/adameehanairagroup/Airalang)
|
||||
[](https://github.com/adameehanairagroup/Airalang)
|
||||
|
||||
Provides native implementations of Denoising Diffusion Probabilistic Models (DDPM) and noise schedules for generative image, audio, and tensor synthesis.
|
||||
|
||||
---
|
||||
|
||||
## 🌊 Diffusion Mechanics in AIRA
|
||||
|
||||
* **Forward Noise Schedule:** Adds Gaussian noise over $T$ timesteps according to variance schedule $eta_1, \dots, eta_T$:
|
||||
$$q(x_t | x_0) = \mathcal{N}(x_t; \sqrt{ar{lpha}_t} x_0, (1 - ar{lpha}_t)\mathbf{I})$$
|
||||
* **Reverse Denoising Process:** The neural network predicts the noise $\epsilon_ heta(x_t, t)$ to iteratively reconstruct clean latent data $x_0$.
|
||||
|
||||
```aira
|
||||
import "ai/diffusion";
|
||||
|
||||
let scheduler = new DDPMScheduler(timesteps=1000, beta_start=0.0001, beta_end=0.02);
|
||||
let noisy_sample = scheduler.add_noise(clean_latent, noise, timestep=500);
|
||||
```
|
||||
Reference in new issue
Block a user