MCPcopy Index your code
hub / github.com/LaurentMazare/ug

github.com/LaurentMazare/ug @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
669 symbols 2,062 edges 56 files 33 documented · 5% updated 9mo ago★ 754 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ug

rust ci badge

Experimental compiler for deep-learning models inspired by triton, tinygrad, and micrograd.

Extension points exported contracts — how you extend this code

EncoderParam (Interface)
Helper functions to create the various objects on the compute command encoder on a single line. Prevents getting wrong s [7 …
ug-metal/src/utils.rs
Dims (Interface)
(no doc) [11 implementers]
ug-core/src/layout.rs
Device (Interface)
(no doc) [3 implementers]
ug-llama/src/main.rs
WithErr (Interface)
(no doc) [3 implementers]
ug-cuda/src/runtime.rs
WithErr (Interface)
(no doc) [1 implementers]
ug-metal/src/runtime.rs
ShapeWithOneHole (Interface)
(no doc) [16 implementers]
ug-core/src/layout.rs
ToSlice (Interface)
(no doc)
ug-cuda/src/runtime.rs
Dim (Interface)
(no doc) [3 implementers]
ug-core/src/layout.rs

Core symbols most depended-on inside this repo

clone
called by 180
ug-core/src/lazy_buffer.rs
push
called by 132
ug-core/src/block.rs
len
called by 61
ug-core/src/lang.rs
to_a
called by 57
ug-core/src/block.rs
dims
called by 54
ug-core/src/layout.rs
binary
called by 45
ug-core/src/lang.rs
data
called by 40
ug-core/src/lazy_buffer.rs
device
called by 40
ug-core/src/lazy_buffer.rs

Shape

Method 394
Function 132
Class 98
Enum 32
Interface 13

Languages

Rust98%
Python2%

Modules by API surface

ug-core/src/lang.rs78 symbols
ug-pyo3/src/lib.rs68 symbols
ug-core/src/lazy_buffer.rs56 symbols
ug-metal/src/runtime.rs37 symbols
ug-core/src/layout.rs36 symbols
ug-core/src/cpu_runtime.rs36 symbols
ug-cuda/src/runtime.rs32 symbols
ug-core/src/interpreter.rs28 symbols
ug-core/src/lower_op.rs27 symbols
ug-core/src/display.rs25 symbols
ug-core/src/schedule.rs21 symbols
ug-llama/src/model.rs19 symbols

For agents

$ claude mcp add ug \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact