Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/harvard-edge/cs249r_book
/ types & classes
Types & classes
1,860 in github.com/harvard-edge/cs249r_book
⨍
Functions
30,677
◇
Types & classes
1,860
↳
Endpoints
20
↓ 3,108 callers
Class
Q
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:6482
↓ 1,646 callers
Class
Tensor
Educational tensor - the foundation of machine learning computation. This class provides the core data structure for all ML operations: - dat
tinytorch/src/01_tensor/01_tensor.py:260
↓ 490 callers
Class
Z
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:11515
↓ 436 callers
Class
Linear
Linear (fully connected) layer: y = xW + b This is the fundamental building block of neural networks. Applies a linear transformation to
tinytorch/src/03_layers/03_layers.py:288
↓ 213 callers
Class
ValidationIssue
book/cli/commands/validate.py:49
↓ 144 callers
Class
ReLU
ReLU activation: f(x) = max(0, x) Sets negative values to zero, keeps positive values unchanged. Most popular activation for hidden laye
tinytorch/src/02_activations/02_activations.py:340
↓ 142 callers
Class
ValidationRunResult
book/cli/commands/validate.py:73
↓ 128 callers
Class
Scope
One scope inside a binder check group. A "scope" is a single check that lives inside a group (e.g. `refs.citations`, `prose.contractions`). S
book/cli/commands/validate.py:249
↓ 120 callers
Class
SGD
Stochastic Gradient Descent with momentum. SGD is the foundational optimization algorithm that moves parameters in the direction opposit
tinytorch/src/07_optimizers/07_optimizers.py:542
↓ 100 callers
Class
MSELoss
Mean Squared Error loss for regression tasks.
tinytorch/src/04_losses/04_losses.py:412
↓ 97 callers
Class
Conv2d
2D Convolution layer for spatial feature extraction. Implements convolution with explicit loops to demonstrate computational complexity
tinytorch/src/09_convolutions/09_convolutions.py:577
↓ 67 callers
Class
Metadata
Provenance for registry entries (hardware, models, fabrics).
mlsysim/mlsysim/core/types.py:103
↓ 65 callers
Class
DataLoader
Data loader with batching and shuffling support. Wraps a dataset to provide batched iteration with optional shuffling. Essential for eff
tinytorch/src/05_dataloader/05_dataloader.py:577
↓ 62 callers
Class
Field
One field inside a BibTeX entry.
book/cli/checks/bib_lint.py:277
↓ 58 callers
Class
Sigmoid
Sigmoid activation: σ(x) = 1/(1 + e^(-x)) Maps any real number to (0, 1) range. Perfect for probabilities and binary classification.
tinytorch/src/02_activations/02_activations.py:213
↓ 51 callers
Class
Issue
A single editorial issue found by the scanner. Fields map 1:1 to the JSON schema in Pass 15 plan section 3. Required fields (scanner must se
book/tools/audit/ledger.py:58
↓ 45 callers
Class
TensorDataset
Dataset wrapping tensors for supervised learning. Each sample is a tuple of tensors from the same index across all input tensors. All te
tinytorch/src/05_dataloader/05_dataloader.py:327
↓ 43 callers
Class
MaxPool2d
2D Max Pooling layer for spatial dimension reduction. Applies maximum operation over spatial windows, preserving the strongest activatio
tinytorch/src/09_convolutions/09_convolutions.py:1325
↓ 42 callers
Class
Profiler
Professional-grade ML model profiler for performance analysis. Measures parameters, FLOPs, memory usage, and latency with statistical rigor.
tinytorch/src/14_profiling/14_profiling.py:282
↓ 39 callers
Class
CheckResult
interviews/vault/scripts/vault_invariants.py:61
↓ 38 callers
Class
LabMetadata
labs/mlsysbook_labs/schemas.py:13
↓ 34 callers
Class
DesignLedger
The 'Save Game' manager for the MLSys curriculum. Ensures that decisions made in Lab 00 persist through Lab 32.
mlsysim/mlsysim/labs/state.py:19
↓ 34 callers
Class
MultiHeadAttention
Multi-head attention mechanism. Runs multiple attention heads in parallel, each learning different relationships. This is the core compo
tinytorch/src/12_attention/12_attention.py:692
↓ 34 callers
Class
PricePoint
Named rate (pint quantity) with provenance for economics tables.
mlsysim/mlsysim/infrastructure/types.py:64
↓ 33 callers
Class
Embedding
Learnable embedding layer that maps token indices to dense vectors. This is the fundamental building block for converting discrete tokens
tinytorch/src/11_embeddings/11_embeddings.py:373
↓ 32 callers
Class
Provenance
How we know a numeric value (package audit trail; not BibTeX).
mlsysim/mlsysim/core/provenance.py:29
↓ 30 callers
Class
MockModel
tinytorch/src/19_benchmarking/19_benchmarking.py:730
↓ 29 callers
Class
Adam
Adam optimizer with adaptive learning rates. Adam computes individual adaptive learning rates for different parameters from estimates of
tinytorch/src/07_optimizers/07_optimizers.py:839
↓ 29 callers
Class
Case
book/vscode-ext/scripts/smoke_extension_ux.py:18
↓ 29 callers
Class
CheckResult
Result of a single preflight check.
tinytorch/tito/commands/dev/preflight.py:45
↓ 29 callers
Class
ServingModel
Analyzes the two-phase LLM serving lifecycle: Pre-fill vs. Decoding. LLM inference is not a single mathematical operation; it is a stateful
mlsysim/mlsysim/engine/solvers/serving.py:28
↓ 29 callers
Class
Trainer
Complete training orchestrator for neural networks. Handles the full training lifecycle: forward pass, loss computation, backward pass,
tinytorch/src/08_training/08_training.py:503
↓ 28 callers
Class
CheckResult
interviews/vault-cli/src/vault_cli/commands/doctor.py:29
↓ 27 callers
Class
SingleNodeModel
Resolves single-node hardware Roofline bounds and feasibility. This model handles the 'Iron Law' of machine learning systems, calculatin
mlsysim/mlsysim/engine/solvers/performance.py:25
↓ 24 callers
Class
CrossEntropyLoss
Cross-entropy loss for multi-class classification.
tinytorch/src/04_losses/04_losses.py:600
↓ 24 callers
Class
KVCache
Efficient key-value cache for autoregressive generation. Stores K,V matrices for each transformer layer to avoid recomputation during se
tinytorch/src/18_memoization/18_memoization.py:397
↓ 24 callers
Class
TransformerBlock
Complete Transformer Block with self-attention, MLP, and residual connections. This is the core building block of GPT and other transformer
tinytorch/src/13_transformers/13_transformers.py:938
↓ 22 callers
Class
MarkdownStr
A string that ALSO renders as raw Markdown when consumed by Quarto/Jupyter. Quarto's inline ``{python} x`` substitution escapes commas and decima
mlsysim/mlsysim/fmt.py:10
↓ 22 callers
Class
Wall
A single ML Systems Wall. Attributes ---------- number : int Canonical wall number (1–22). name : str Short human-rea
mlsysim/mlsysim/engine/walls.py:50
↓ 21 callers
Class
NetworkFabric
Represents the inter-node network interconnect. Captures the topology, raw bandwidth, latency, and oversubscription ratio of the cl
mlsysim/mlsysim/systems/types.py:92
↓ 21 callers
Class
Tanh
Tanh activation: f(x) = (e^x - e^(-x))/(e^x + e^(-x)) Maps any real number to (-1, 1) range. Zero-centered alternative to sigmoid.
tinytorch/src/02_activations/02_activations.py:460
↓ 20 callers
Class
PdfIssue
book/cli/commands/_pdf_checks.py:60
↓ 19 callers
Class
Check
One line item in the preflight report.
site/newsletter/cli/core/validate.py:28
↓ 19 callers
Class
CompressionModel
Analyzes model compression trade-offs (Accuracy vs. Efficiency). This model simulates the 'Compression Tax' — the accuracy degradation t
mlsysim/mlsysim/engine/solvers/compression.py:27
↓ 19 callers
Class
Fleet
Layer D (Systems/Topology): The complete distributed cluster environment. A Fleet composes a `Node` configuration, a `NetworkFabric`, an
mlsysim/mlsysim/systems/types.py:207
↓ 19 callers
Class
LineWalker
Stateful walker over the lines of a QMD file. Use as an iterator. Each `next()` returns `(line, state, line_num)` where `state` is the LineSt
book/tools/audit/protected_contexts.py:120
↓ 19 callers
Class
NBGraderCommand
NBGrader integration command group.
tinytorch/tito/commands/nbgrader.py:31
↓ 19 callers
Class
Sequential
Container that chains layers together sequentially. After you understand explicit layer composition, Sequential provides a convenient wa
tinytorch/src/03_layers/03_layers.py:891
↓ 18 callers
Class
DistributedModel
Resolves fleet-wide communication, synchronization, and pipelining constraints. This model analyzes the constraints of distributed scale for
mlsysim/mlsysim/engine/solvers/distributed.py:31
↓ 18 callers
Class
LegPlan
interviews/vault-cli/src/vault_cli/ship.py:112
↓ 18 callers
Class
Softmax
Softmax activation: f(x_i) = e^(x_i) / Σ(e^(x_j)) Converts any vector to a probability distribution. Sum of all outputs equals 1.0.
tinytorch/src/02_activations/02_activations.py:716
↓ 18 callers
Class
TestResult
Result of a test phase.
tinytorch/tito/commands/dev/test.py:33
↓ 18 callers
Class
Violation
A lint violation against the §5 rules.
book/cli/checks/bib_lint.py:318
↓ 17 callers
Class
Finding
book/tools/scripts/audit/validate_concept_maps.py:31
↓ 17 callers
Class
NanoGPTWhiteBox
Char-level decoder-only transformer used for the NanoGPT workload. Default config (~11M params) is the iter-1/iter-3 small variant. Pass Nano
mlperf-edu/reference/cloud/nanogpt_train.py:31
↓ 17 callers
Class
PdfCheckItem
book/cli/commands/_pdf_checks.py:70
↓ 17 callers
Class
Sequential
tinytorch/tests/03_layers/test_layers_core.py:376
↓ 16 callers
Class
ContractCase
book/cli/checks/cli_contract.py:44
↓ 16 callers
Class
EmbeddingLayer
Complete embedding system combining token and positional embeddings. This is the production-ready component that handles the full embedding
tinytorch/src/11_embeddings/11_embeddings.py:1210
↓ 15 callers
Class
ClickCheck
labs/tools/interaction_lab_smoke.py:66
↓ 15 callers
Class
CosineSchedule
Cosine annealing learning rate schedule. Starts at max_lr, decreases following a cosine curve to min_lr over T epochs. This provides agg
tinytorch/src/08_training/08_training.py:224
↓ 15 callers
Class
Dropout
Dropout layer for regularization. During training: randomly zeros elements with probability p, scales survivors by 1/(1-p) During infere
tinytorch/src/03_layers/03_layers.py:591
↓ 15 callers
Class
EpubIssue
book/cli/commands/_epub_checks.py:64
↓ 15 callers
Class
SyncResult
Outcome of a progress-sync attempt. ``ok`` -- the request succeeded AND the server confirmed our progress was persist
tinytorch/tito/core/submission.py:38
↓ 14 callers
Class
EconomicsModel
Calculates Total Cost of Ownership (TCO) including Capex and Opex. Combines hardware costs, energy consumption, and maintenance into a s
mlsysim/mlsysim/engine/solvers/economics.py:157
↓ 14 callers
Class
Function
Base class for differentiable operations. Every operation that needs gradients (add, multiply, matmul, etc.) will inherit from this clas
tinytorch/src/06_autograd/06_autograd.py:234
↓ 14 callers
Class
LintIssue
book/cli/checks/lego_units.py:17
↓ 14 callers
Class
SustainabilityModel
Calculates Datacenter-scale Sustainability metrics. Handles Power Usage Effectiveness (PUE), Carbon Intensity, and Water Usage Effective
mlsysim/mlsysim/engine/solvers/economics.py:25
↓ 13 callers
Class
AvgPool2d
2D Average Pooling layer for spatial dimension reduction. Applies average operation over spatial windows, smoothing features while reduc
tinytorch/src/09_convolutions/09_convolutions.py:1740
↓ 13 callers
Class
Benchmark
Professional benchmarking system for ML models and operations. Provides latency, accuracy, and memory benchmarking with statistical rigo
tinytorch/src/19_benchmarking/19_benchmarking.py:665
↓ 13 callers
Class
BenchmarkReport
Benchmark report for model performance. Measures and stores: - Model characteristics (parameters, size) - Performance metrics (accur
tinytorch/src/20_capstone/20_capstone.py:514
↓ 13 callers
Class
PositionalEncoding
Learnable positional encoding layer. Adds trainable position-specific vectors to token embeddings, allowing the model to learn positiona
tinytorch/src/11_embeddings/11_embeddings.py:597
↓ 13 callers
Class
SimpleMLP
Simple 2-layer MLP for benchmarking demonstration. This is a toy model to demonstrate the benchmarking workflow. Students can later appl
tinytorch/src/20_capstone/20_capstone.py:377
↓ 12 callers
Class
LayerNorm
Layer Normalization for transformer blocks. Normalizes across the feature dimension (last axis) for each sample independently, unlike ba
tinytorch/src/13_transformers/13_transformers.py:500
↓ 12 callers
Class
LayoutCommand
Diagnose PDF page-break whitespace issues.
book/cli/commands/layout.py:184
↓ 12 callers
Class
Question
A single StaffML interview question (schema v1.0). Every classification axis is a YAML field. The filesystem path encodes only `track` for na
interviews/vault-cli/src/vault_cli/models.py:224
↓ 12 callers
Class
TrainingMemoryModel
Decomposes per-accelerator training memory into teachable components. This model answers a different question than ``SingleNodeModel``. Roof
mlsysim/mlsysim/engine/solvers/training.py:97
↓ 11 callers
Class
BenchmarkSuite
Comprehensive benchmark suite for ML systems evaluation. Orchestrates multiple benchmark types (latency, accuracy, memory, energy) and g
tinytorch/src/19_benchmarking/19_benchmarking.py:1262
↓ 11 callers
Class
ButtondownError
Raised when the Buttondown API returns an error.
site/newsletter/cli/core/buttondown.py:33
↓ 11 callers
Class
Node
Represents a physical server chassis containing multiple accelerators. Essential for modeling the bandwidth gap between fast intra-node
mlsysim/mlsysim/systems/types.py:129
↓ 11 callers
Class
QueueItem
book/tools/audit/fmt/codemod_fmt.py:76
↓ 11 callers
Class
RegistryIssue
book/cli/commands/_registry_checks.py:13
↓ 11 callers
Class
Scenario
Concrete executable case: a workload on a system with constraints. ``application`` names the product/domain context, while the scenario itse
mlsysim/mlsysim/engine/scenarios.py:15
↓ 10 callers
Class
BatchNorm2d
Batch Normalization for 2D spatial inputs (images). Normalizes activations across batch and spatial dimensions for each channel, then ap
tinytorch/src/09_convolutions/09_convolutions.py:2070
↓ 10 callers
Class
GPT
Complete GPT (Generative Pre-trained Transformer) model. This combines embeddings, positional encoding, multiple transformer blocks, and
tinytorch/src/13_transformers/13_transformers.py:1248
↓ 10 callers
Class
Pipeline
A transparent chain of models and solvers for macro-level analysis. Parameters ---------- resolvers : list[BaseResolver] Ordered
mlsysim/mlsysim/engine/pipeline.py:31
↓ 10 callers
Class
StorageSubsystem
Reusable storage tier or service in a system design.
mlsysim/mlsysim/systems/types.py:31
↓ 10 callers
Class
TailLatencyModel
Analyzes queueing delays and P99 tail latency for deployed inference models. Models inference servers as M/M/c queues to determine if the de
mlsysim/mlsysim/engine/solvers/serving.py:732
↓ 10 callers
Class
Violation
book/cli/checks/math_canonical.py:192
↓ 9 callers
Class
BinaryCrossEntropyLoss
Binary cross-entropy loss for binary classification.
tinytorch/src/04_losses/04_losses.py:813
↓ 9 callers
Class
CharTokenizer
Character-level tokenizer that treats each character as a separate token. This is the simplest tokenization approach - every character in th
tinytorch/src/10_tokenization/10_tokenization.py:443
↓ 9 callers
Class
DataModel
Analyzes the 'Data Wall' — the throughput bottleneck between storage and compute. This model simulates the data pipeline constraints, compar
mlsysim/mlsysim/engine/solvers/data.py:19
↓ 9 callers
Class
EvaluationLevel
A single tier in the Hierarchy of Constraints.
mlsysim/mlsysim/engine/evaluation.py:4
↓ 9 callers
Class
MLPerf
MLPerf-style standardized benchmarking for edge ML systems. MLPerf® is a trademark of MLCommons. Used here purely for educational purposes.
tinytorch/src/19_benchmarking/19_benchmarking.py:2209
↓ 9 callers
Class
TransformerWorkload
Workload representation of an autoregressive Transformer (e.g., LLMs).
mlsysim/mlsysim/models/types.py:163
↓ 9 callers
Class
Violation
book/cli/checks/fmt_prose_contract.py:48
↓ 9 callers
Class
Visual
Static visual attached to a question. v0.1.2 hardened: kind is a closed enum (svg only), path must match `^[a-z0-9-]+\\.svg$`, alt ≥10 chars,
interviews/vault-cli/src/vault_cli/models.py:144
↓ 8 callers
Class
BenchmarkResult
Container for benchmark measurements with statistical analysis. TODO: Implement a robust result container that stores measurements and metad
tinytorch/src/19_benchmarking/19_benchmarking.py:337
↓ 8 callers
Class
CheckCategory
A category of preflight checks.
tinytorch/tito/commands/dev/preflight.py:58
↓ 8 callers
Class
ContinuousBatchingModel
Analyzes production LLM serving with Continuous Batching and PagedAttention. Traditional static batching suffers from severe memory fragment
mlsysim/mlsysim/engine/solvers/serving.py:466
next →
1–100 of 1,860, ranked by callers