god-graph 0.6.0-alpha

A graph-based LLM white-box optimization toolbox: topology validation, Lie group orthogonalization, tensor ring compression
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Autograd engine for automatic differentiation
//!
//! This module provides a compute graph-based autograd engine similar to PyTorch's autograd.
//! It records operations during forward pass and computes gradients during backward pass.

pub mod compute_graph;
pub mod op;
pub mod tensor;
pub mod optimizer;

pub use compute_graph::{ComputeGraph, OpId, TensorId, OpType};
pub use tensor::DifferentiableTensor;
pub use optimizer::{Optimizer, Adam, Sgd};

/// Type alias for operations
pub type Op = OpType;