MCPcopy Create free account

hub / github.com/harvard-edge/cs249r_book / functions

Functions13,553 in github.com/harvard-edge/cs249r_book

↓ 14 callersFunctionv2_05_status
(condition)
labs/vol2/lab_05_dist_train.py:138
↓ 14 callersFunctionworktree_root
()
book/tools/scripts/audit/svg_audit.py:84
↓ 13 callersFunctionI
(e)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 13 callersMethod__init__
Initialize function with input tensors. Args: *tensors: Input tensors that will be saved for backward pass
tinytorch/src/06_autograd/06_autograd.py:254
↓ 13 callersFunction_make_lq
( id: str, chains: list[ChainRef] | None = None, topic: str = "kv-cache-management", competenc
interviews/vault-cli/tests/test_legacy_export.py:24
↓ 13 callersFunction_quantity_to_float
(value: Any, unit: str, default: float)
labs/mlsysbook_labs/deployment.py:122
↓ 13 callersFunction_reduce_broadcast_grad
Reduce gradient to match original tensor shape after broadcasting. TODO: Implement gradient shape reduction for broadcast operations. A
tinytorch/src/06_autograd/06_autograd.py:405
↓ 13 callersFunctionaudit
(paths: list[Path])
book/cli/checks/fmt_semantic_suffix.py:193
↓ 13 callersFunctioncalc_activation_memory
Estimates the activation memory required for a Transformer model during training. Implements the per-layer analytical bounds of Korthikanti
mlsysim/mlsysim/physics/memory.py:66
↓ 13 callersFunctioncloseModal
()
tinytorch/quarto/community/modules/auth.js:431
↓ 13 callersFunctiondispatch_stack
Compute dispatch, transfer, synchronization, memory, and feasibility.
labs/mlsysbook_labs/frameworks.py:240
↓ 13 callersFunctionfmt
(n: int)
interviews/vault-cli/src/vault_cli/commands/release.py:368
↓ 13 callersFunctionfmt_unit
Extract the unit string of a Pint Quantity. Returns a MarkdownStr. For non-Pint values, returns ``default`` wrapped in MarkdownStr. Pair
mlsysim/mlsysim/fmt.py:809
↓ 13 callersMethodforward
Apply ReLU activation element-wise. TODO: Implement ReLU function APPROACH: 1. Use np.maximum(0, x.data) for elemen
tinytorch/src/02_activations/02_activations.py:352
↓ 13 callersMethodforward
(self, x)
tinytorch/src/08_training/08_training.py:1536
↓ 13 callersFunctionfused_gelu
Fused GELU activation that combines all operations in a single kernel. GELU combines the benefits of ReLU and sigmoid: - Smooth everywhe
tinytorch/src/17_acceleration/17_acceleration.py:424
↓ 13 callersFunctiongetBasePath
()
tinytorch/quarto/community/modules/config.js:8
↓ 13 callersMethodgetByKey
(storeName, key)
socratiq/src_shadow/js/libs/utils/indexDb.js:121
↓ 13 callersFunctionhtml_text
(component)
labs/tests/test_ui_helpers.py:22
↓ 13 callersFunctionis_bolded
Check if text is already bolded.
book/tools/scripts/content/format_tables.py:238
↓ 13 callersFunctionresolve_precision
Return ``(canonical_key, bytes_per_element)`` for a supported precision. The single entry point solvers use to turn a user-facing precision strin
mlsysim/mlsysim/core/units.py:135
↓ 13 callersFunctionrunInTerminal
(command: string, cwd: string, label: string)
mlsysim/vscode-ext/src/utils/terminal.ts:83
↓ 13 callersMethodsolve
Solves for compression gains and estimated accuracy impact. Parameters ---------- model : Workload The m
mlsysim/mlsysim/engine/solvers/compression.py:45
↓ 13 callersFunctionv2_13_guardrail_badge
(ok)
labs/vol2/lab_13_security_privacy.py:315
↓ 12 callersFunction_check_node
Inspects a runtime registry object to verify its provenance lineage.
mlsysim/mlsysim/tools/audit_provenance.py:88
↓ 12 callersMethod_log
Add a line to the log.
tinytorch/tito/commands/dev/preflight.py:225
↓ 12 callersMethod_page_overflow
Pure geometry: true margin-column chars/images whose bottom runs below the usable bottom (footer band top + tol). Returns (over_chars,
book/cli/commands/layout.py:2320
↓ 12 callersFunction_require_quantity
(value, *, name: str)
mlsysim/mlsysim/physics/quantities.py:32
↓ 12 callersFunctiona
(e)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 12 callersMethodclear
(e)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 12 callersMethodcount_flops
Count FLOPs (Floating Point Operations) for one forward pass. TODO: Implement FLOP counting by dispatching to per-layer-type helpers
tinytorch/src/14_profiling/14_profiling.py:475
↓ 12 callersMethodescapeHtml
* Escape HTML for safe display
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:5909
↓ 12 callersFunctiongetAllChapterMapEntries
()
socratiq/src_shadow/js/libs/utils/tocExtractor.js:569
↓ 12 callersMethodgetElement
(selector)
socratiq/src_shadow/js/components/onboarding/sr-onboarding-handler.js:19
↓ 12 callersFunctiongetStorage
(key: string, fallback: T)
interviews/staffml/src/lib/progress.ts:36
↓ 12 callersFunctioni
(e,t)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 12 callersFunctioninline_protected_spans
Return a sorted, merged list of (start, end) protected spans in a line. Spans cover: inline code, inline math, \\index{...}, protected attribute
book/tools/audit/protected_contexts.py:403
↓ 12 callersMethodmeasure_memory
Measure memory usage during forward pass. TODO: Implement memory tracking using tracemalloc and helper methods APPROACH:
tinytorch/src/14_profiling/14_profiling.py:555
↓ 12 callersFunctionsaveChatHistory
()
socratiq/src_shadow/js/index.js:2757
↓ 12 callersFunctionscaled_dot_product_attention
Complete scaled dot-product attention. TODO: Compose the helpers into the full attention operation APPROACH: 1. Call _compute_attention_
tinytorch/src/12_attention/12_attention.py:511
↓ 12 callersMethodscatter
(*args, **kwargs)
tinytorch/src/19_benchmarking/19_benchmarking.py:220
↓ 12 callersFunctionsetStorage
(key: string, value: T)
interviews/staffml/src/lib/progress.ts:45
↓ 12 callersMethodshowLoadingState
(message = 'Loading...')
socratiq/src_shadow/js/components/spaced_repetition/handlers/ui-notification-handler.js:109
↓ 12 callersFunctiont
(e,t)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 12 callersFunctiontitleCase
(value: string)
interviews/staffml/src/app/explore/page.tsx:51
↓ 12 callersFunctiontraining_memory_stack
Compute the training memory stack for a strategy and batch size.
labs/mlsysbook_labs/training.py:258
↓ 12 callersFunctionv2_01_metric_card
(label, value, note, color)
labs/vol2/lab_01_introduction.py:339
↓ 12 callersFunctionv2_03_status_label
(condition)
labs/vol2/lab_03_communication.py:606
↓ 12 callersFunctionv2_13_fmt_pct
(value, digits=1)
labs/vol2/lab_13_security_privacy.py:312
↓ 11 callersFunction_add
(code: str, samples: list, label: str)
book/cli/commands/_index_checks.py:75
↓ 11 callersMethodbenchmark_model
Benchmark model performance comprehensively. Args: model: Model to benchmark (must have .forward() and .count_parameters
tinytorch/src/20_capstone/20_capstone.py:543
↓ 11 callersFunctioncount_by
(questions: list[Question], *attrs: str)
interviews/vault/scripts/plan_gap_improvements.py:166
↓ 11 callersMethodcreate
* Create a new record
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:7281
↓ 11 callersFunctioncreate_tokenizer
Factory function to create and train tokenizers. TODO: Create appropriate tokenizer based on strategy APPROACH: 1. Check strategy t
tinytorch/src/10_tokenization/10_tokenization.py:1339
↓ 11 callersMethodfn
(x)
tinytorch/tests/06_autograd/test_gradient_correctness.py:264
↓ 11 callersMethodforward
Forward pass through Conv2d layer. This method composes four steps: 1. Validate input is 4D (shared helper) 2. Compu
tinytorch/src/09_convolutions/09_convolutions.py:759
↓ 11 callersMethodgetSafeGroqLimit
* Get safe token limit for Groq on-demand tier * @returns {number} Safe token limit (6000 to leave room for response)
socratiq/src_shadow/js/libs/utils/tokenCounter.js:99
↓ 11 callersFunctionmatches_any
(text: str, patterns: list[str])
book/tools/audit/release/classify_annotations.py:169
↓ 11 callersFunctionmountPixiOnCanvas
(canvas, opts = {})
site/assets/games/runtime.mjs:113
↓ 11 callersMethodonInfoMessage
(e, t)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:10095
↓ 11 callersMethodonInfoMessage
(e,t)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 11 callersMethodparameters
Return all trainable parameters. TODO: Collect parameters from all linear layers APPROACH: 1. Get parameters from q
tinytorch/src/12_attention/12_attention.py:869
↓ 11 callersFunctionpress_enter_to_continue
()
tinytorch/milestones/03_1986_mlp/01_rumelhart_tinydigits.py:258
↓ 11 callersFunctionpress_enter_to_continue
()
tinytorch/milestones/06_2018_mlperf/01_optimization_olympics.py:605
↓ 11 callersMethodrun
Execute the command and return exit code.
tinytorch/tito/commands/base.py:71
↓ 11 callersFunctionrunInVisibleTerminal
(command: string, cwd: string, label = 'MLSysBook command')
book/vscode-ext/src/utils/terminal.ts:289
↓ 11 callersFunctionsave_state
(figures: List[Figure], meta: Dict)
book/tools/scripts/audit/svg_audit.py:835
↓ 11 callersFunctionscalar_value
Coerce a scalar (plain or ``Sourced``) to a plain ``float``. ``Sourced`` already subclasses ``float``, so ``float(x)`` handles both cases ide
mlsysim/mlsysim/core/provenance.py:169
↓ 11 callersFunctionsecureRandomIndex
(e)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:1
↓ 11 callersFunctionshake
(target, amount, ms)
site/assets/games/runtime.mjs:483
↓ 11 callersMethodshow
(*args, **kwargs)
tinytorch/src/19_benchmarking/19_benchmarking.py:244
↓ 11 callersMethodsolve
Calculates distributed training performance using the 3D/4D Parallelism model. Parameters ---------- model : Workloa
mlsysim/mlsysim/engine/solvers/distributed.py:65
↓ 11 callersFunctionto_plain
Convert common result objects into JSON-compatible plain data.
labs/mlsysbook_labs/schemas.py:131
↓ 11 callersFunctionu
(e,t)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 11 callersFunctionv1_13_evaluate_policy
( serving, model, packet, candidate, *, cost_multiplier=1.0,
labs/vol1/lab_13_model_serving.py:370
↓ 11 callersFunctionv2_01_fmt_count
(value)
labs/vol2/lab_01_introduction.py:311
↓ 11 callersFunctionv2_10_fmt_currency
(value, unit)
labs/vol2/lab_10_inference.py:147
↓ 11 callersFunctionv2_14_tax_label
(tax)
labs/vol2/lab_14_robust_ai.py:698
↓ 11 callersFunctionvisible_error_markers
(page)
labs/tools/interaction_lab_smoke.py:376
↓ 11 callersFunctionwrite_json
(path: Path, data: Any)
interviews/vault/scripts/plan_gap_improvements.py:803
↓ 10 callersFunction_entry_diff_summary
(orig, new)
book/tools/bib_sync_preserve.py:238
↓ 10 callersFunction_part_value
(part: Any, *keys: str, default: str = "")
labs/mlsysbook_labs/ui.py:613
↓ 10 callersFunction_question
(zone: str, bloom: str)
interviews/vault-cli/tests/test_models.py:127
↓ 10 callersFunctiona
(e,t,n="system-link")
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 10 callersFunctionaudit_dir
()
book/tools/scripts/audit/svg_audit.py:87
↓ 10 callersFunctioncalc_pipeline_bubble
Pipeline bubble fraction (GPipe / 1F1B / Interleaved 1F1B). Calculates the proportion of idle time (bubble) injected into the pipeline
mlsysim/mlsysim/physics/performance.py:172
↓ 10 callersFunctionclip_grad_norm
Clip gradients by global norm to prevent exploding gradients. This is crucial for training stability, especially with RNNs and deep networks
tinytorch/src/08_training/08_training.py:346
↓ 10 callersFunctioncontent_hash
SHA-256 of canonical JSON over whitelisted semantic fields.
interviews/vault-cli/src/vault_cli/hashing.py:79
↓ 10 callersFunctionctx
()
interviews/staffml-vault-worker/tests/worker.test.ts:97
↓ 10 callersFunctiondefault_line_skip
The line-skip predicate that almost every check should use. Skips: YAML frontmatter, code fences, display math, HTML style/script blocks, Pyt
book/tools/audit/protected_contexts.py:638
↓ 10 callersFunctionembed
(text)
socratiq/src_shadow/js/libs/vector_db/vectordb/embeddings/xenova_embeddings_gte.js:38
↓ 10 callersFunctionestimateTokens
* Estimates the number of tokens in a text string * Rough approximation: 1 token ≈ 4 characters for English text * @param {string} text - The text t
socratiq/src_shadow/js/utils/textExtractor.js:10
↓ 10 callersFunctionextract_python_cells
Yield (start_line, source) for each ```{python}``` fenced block. start_line is the 1-based line number of the fence itself, so a node at ast
book/tools/audit/fmt/audit_fmt_usage.py:86
↓ 10 callersFunctionfmt_params
Format model-parameter counts as checked count quantities. Accepts a Pint ``param``/``count`` quantity or a raw parameter count. The default
mlsysim/mlsysim/fmt.py:1324
↓ 10 callersMethodforward
Forward pass through MLP. TODO: Implement the feed-forward computation APPROACH: 1. First linear transformation: em
tinytorch/src/13_transformers/13_transformers.py:755
↓ 10 callersMethodforward
Forward pass through GPT model. TODO: Implement the complete GPT forward pass APPROACH: 1. Get token embeddings and
tinytorch/src/13_transformers/13_transformers.py:1307
↓ 10 callersMethodforward
Forward pass through dropout layer. Composes the two helpers: first decide whether dropout applies, then generate and apply
tinytorch/src/03_layers/03_layers.py:709
↓ 10 callersMethodforward
Compute cross-entropy loss between logits and target class indices. TODO: Implement cross-entropy loss with numerical stability
tinytorch/src/04_losses/04_losses.py:607
↓ 10 callersMethodforward
(self, x)
tinytorch/tests/03_layers/test_layers_core.py:347
↓ 10 callersFunctiongate_result
(name: str, status: str, details: list[str] | None = None)
interviews/vault/scripts/validate_generation_gates.py:70
← previousnext →301–400 of 13,553, ranked by callers