Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bbycroft/llm-viz
/ functions
Functions
1,088 in github.com/bbycroft/llm-viz
⨍
Functions
1,088
◇
Types & classes
330
↓ 1 callers
Function
createAluComps
(_args: ICompBuilderArgs)
src/cpu/comps/Alu.tsx:19
↓ 1 callers
Function
createAttentionLayer
(builder: IWasmLayerBuilder)
src/llm/GptModelWasm.ts:109
↓ 1 callers
Function
createAttnLayer
(layerBuilder: ILayerBuilder, prefix: string, input: IBufferTex, residual: IBufferTex)
src/llm/GptModel.ts:434
↓ 1 callers
Function
createBinaryGateComps
(_args: ICompBuilderArgs)
src/cpu/comps/BinaryGates.tsx:44
↓ 1 callers
Function
createBlockLayer
(layerBuilder: ILayerBuilder, prefix: string, input: IBufferTex)
src/llm/GptModel.ts:409
↓ 1 callers
Function
createBlockLayer
(builder: IWasmLayerBuilder)
src/llm/GptModelWasm.ts:97
↓ 1 callers
Function
createCompIoComps
(args: ICompBuilderArgs)
src/cpu/comps/CompPort.tsx:63
↓ 1 callers
Function
createCopyOutputToInputLayer
(layerBuilder: ILayerBuilder, prevOutput: IBufferTex, currInput: IBufferTex)
src/llm/GptModel.ts:952
↓ 1 callers
Function
createCpuEditorState
(sharedContext: ISharedContext | null)
src/cpu/ModelHelpers.tsx:50
↓ 1 callers
Function
createExecutionModel
(sharedContext: ISharedContext, displayModel: IEditSnapshot, existingSystem: IExeSystem | null)
src/cpu/CpuExecution.tsx:35
↓ 1 callers
Method
createExternalPort
(id: string, type: PortType, width: number)
src/cpu/comps/CompBuilder.tsx:258
↓ 1 callers
Function
createFontBuffers
(atlas: IFontAtlas, sharedRender: ISharedRender)
src/llm/render/fontRender.ts:239
↓ 1 callers
Function
createGptModel
(shaderManager: IShaderManager, model: ITensorSet, B: number)
src/llm/GptModel.ts:331
↓ 1 callers
Function
createGpuModelForWasm
(gl: WebGL2RenderingContext, config: IGptModelConfig)
src/llm/GptModelWasm.ts:16
↓ 1 callers
Function
createInputOutputComps
(_args: ICompBuilderArgs)
src/cpu/comps/InputOutput.tsx:32
↓ 1 callers
Function
createInsetGradient
(ctx: CanvasRenderingContext2D, bb: BoundingBox3d, inset: number, colorOuter: string)
src/cpu/comps/SchematicComp.tsx:95
↓ 1 callers
Function
createLayer
(src: IBlkDef, target: IBlockLayerLink | undefined)
src/llm/GptModelLayout.ts:363
↓ 1 callers
Function
createLedOutputComps
(_args: ICompBuilderArgs)
src/cpu/comps/peripheral/LedOutputSimple.tsx:68
↓ 1 callers
Function
createLibraryItemFromComp
(compDef: ICompDef<any>)
src/cpu/comps/CompBuilder.tsx:211
↓ 1 callers
Function
createLineRender
(ctx: IGLContext, sharedRender: ISharedRender)
src/llm/render/lineRender.ts:8
↓ 1 callers
Function
createMLP
(layerBuilder: ILayerBuilder, prefix: string, input: IBufferTex, residual: IBufferTex)
src/llm/GptModel.ts:625
↓ 1 callers
Function
createMlpLayer
(builder: IWasmLayerBuilder)
src/llm/GptModelWasm.ts:128
↓ 1 callers
Method
createModel
(config: IGptModelConfig)
src/llm/NativeBindings.ts:84
↓ 1 callers
Function
createMuxComps
(_args: ICompBuilderArgs)
src/cpu/comps/Mux.tsx:19
↓ 1 callers
Function
createNodePosMap
(layout: IEditSchematic)
src/cpu/Wire.tsx:365
↓ 1 callers
Function
createQueryManager
(ctx: IGLContext)
src/llm/render/queryManager.ts:15
↓ 1 callers
Function
createRegFileCtrlComps
(_args: ICompBuilderArgs)
src/cpu/comps/riscv/RegisterControl.tsx:30
↓ 1 callers
Function
createRegisterComps
(_args: ICompBuilderArgs)
src/cpu/comps/Registers.tsx:29
↓ 1 callers
Function
createRiscvExtraComps
(_args: ICompBuilderArgs)
src/cpu/comps/RiscvExtra.tsx:27
↓ 1 callers
Function
createRiscvInsDecodeComps
(_args: ICompBuilderArgs)
src/cpu/comps/RiscvInsDecode.tsx:10
↓ 1 callers
Function
createShaderManager
(gl: WebGL2RenderingContext)
src/utils/shader.ts:37
↓ 1 callers
Function
createSimpleMemoryComps
(_args: ICompBuilderArgs)
src/cpu/comps/SimpleMemory.tsx:44
↓ 1 callers
Function
createSoftmaxLayer
(layerBuilder: ILayerBuilder, input: IBufferTex)
src/llm/GptModel.ts:883
↓ 1 callers
Function
createSoftmaxLayer
(builder: IWasmLayerBuilder)
src/llm/GptModelWasm.ts:88
↓ 1 callers
Function
createSyncObject
(render: IRenderState)
src/llm/render/syncObjects.ts:12
↓ 1 callers
Function
createTestValues
()
src/llm/NativeBindings.ts:175
↓ 1 callers
Function
cutSelection
(ev: KeyboardEvent, editorState: IEditorState, setEditorState: StateSetter<IEditorState>)
src/cpu/Clipboard.ts:10
↓ 1 callers
Method
decomposeToTRS
()
src/utils/matrix.ts:241
↓ 1 callers
Method
deleteCustomSchematic
(id: string)
src/cpu/schematics/SchematicLibrary.tsx:61
↓ 1 callers
Function
depArgsToDeps
(args: IBlkDepArgs)
src/llm/GptModelLayout.ts:102
↓ 1 callers
Method
destroy
()
src/llm/LayerView.tsx:248
↓ 1 callers
Function
dimStyleText
(style: DimStyle)
src/llm/walkthrough/WalkthroughTools.ts:399
↓ 1 callers
Function
dimStyleTextShort
(style: DimStyle)
src/llm/walkthrough/WalkthroughTools.ts:407
↓ 1 callers
Function
dist
(ev1: { clientX: number, clientY: number }, ev2: { clientX: number, clientY: number })
src/utils/pointer.ts:33
↓ 1 callers
Method
distSq
(a: Vec4)
src/utils/vector.ts:152
↓ 1 callers
Function
divideSpacing
(opts: IFontOpts, inner: ITextBlock)
src/llm/components/TextLayout.ts:113
↓ 1 callers
Function
dragSegment
(wire: IWireGraph, node0Idx: number, node1Idx: number, delta: Vec3)
src/cpu/Wire.tsx:277
↓ 1 callers
Function
drawAllArrows
(state: IRenderState, layout: IGptModelLayout)
src/llm/components/Arrow.ts:34
↓ 1 callers
Function
drawArc
(state: IProgramState, a: Vec3, b: Vec3, color: Vec4, mtx: Mat4f, thick: number)
src/llm/components/DataFlow.ts:855
↓ 1 callers
Function
drawArrowCorner
(state: IRenderState, center: Vec3, mode: CornerMode, opts: IArrowOpts)
src/llm/components/Arrow.ts:456
↓ 1 callers
Function
drawArrowHead
(state: IRenderState, a: Vec3, b: Vec3, opts: IArrowOpts)
src/llm/components/Arrow.ts:424
↓ 1 callers
Function
drawAttention
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:610
↓ 1 callers
Function
drawBezierRibbon
()
src/llm/components/Arrow.ts:300
↓ 1 callers
Function
drawBlockInfo
(state: IProgramState)
src/llm/components/BlockInfo.ts:9
↓ 1 callers
Function
drawBlockLabels
(state: IRenderState, layout: IGptModelLayout)
src/llm/components/SectionLabels.ts:10
↓ 1 callers
Function
drawCellIndexAndValue
(args: IDataFlowArgs, bb: BoundingBox3d)
src/llm/components/DataFlow.ts:716
↓ 1 callers
Function
drawCirclePlane
(render: IRenderState, center: Vec3, radius: number, color: Vec4, mtx: Mat4f)
src/llm/components/DataFlow.ts:135
↓ 1 callers
Function
drawDepArrows
(args: IDataFlowArgs, bb: BoundingBox3d)
src/llm/components/DataFlow.ts:759
↓ 1 callers
Function
drawEndCircle
(p: Vec3, isHover: boolean)
src/cpu/WireRender.tsx:255
↓ 1 callers
Function
drawFieldToCanvas
(state: IFluidSimState, canvas: HTMLCanvasElement, arr: Float32Array)
src/fluidsim/FluidSimView.tsx:275
↓ 1 callers
Function
drawFinalArrow
()
src/llm/components/DataFlow.ts:788
↓ 1 callers
Function
drawGeluActivation
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:644
↓ 1 callers
Function
drawGrid
(mtx: AffineMat2d, ctx: CanvasRenderingContext2D, gridState: ICanvasGridState, fillStyle = '#aaa', special: bo
src/cpu/CanvasRenderHelpers.tsx:32
↓ 1 callers
Function
drawGridAtScale
(scale: number)
src/cpu/CanvasRenderHelpers.tsx:55
↓ 1 callers
Function
drawLayerNorm
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:440
↓ 1 callers
Function
drawLayerNormMuAgg
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:401
↓ 1 callers
Function
drawLayerNormSigmaAgg
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:418
↓ 1 callers
Function
drawOLIndexLookup
(args: IDataFlowArgs, offset: Vec3)
src/llm/components/DataFlow.ts:206
↓ 1 callers
Function
drawOLInputEmbed
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:175
↓ 1 callers
Function
drawOLMatrixMul
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:285
↓ 1 callers
Function
drawOLPosEmbedLookup
(args: IDataFlowArgs, offset: Vec3)
src/llm/components/DataFlow.ts:251
↓ 1 callers
Function
drawResidualAdd
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:489
↓ 1 callers
Function
drawSoftmax
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:562
↓ 1 callers
Function
drawSoftmaxAggExp
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:535
↓ 1 callers
Function
drawSoftmaxAggMax
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:519
↓ 1 callers
Function
drawToCanvas
(state: IFluidSimState, canvas: HTMLCanvasElement, sourceArr: Float32Array)
src/fluidsim/FluidSimView.tsx:206
↓ 1 callers
Function
drawZeroSymbol
(args: IDataFlowArgs)
src/llm/components/DataFlow.ts:505
↓ 1 callers
Function
editCtxFromRefId
(ref: IElRef)
src/cpu/SubSchematics.tsx:9
↓ 1 callers
Function
editEnabled
(ev: React.ChangeEvent, end: boolean, enabled: boolean)
src/cpu/comps/riscv/RegisterControl.tsx:112
↓ 1 callers
Function
editSnapshotDirect
(updateSnapshot: (element: IEditSnapshot, state: IEditorState) => IEditSnapshot)
src/cpu/Editor.tsx:128
↓ 1 callers
Function
editValueOverride
(end: boolean, value: number, valueMode: HexValueInputType)
src/cpu/comps/CompPort.tsx:203
↓ 1 callers
Function
elIsHoveredOrActive
(el: IEl)
src/llm/components/TocDiagram.tsx:222
↓ 1 callers
Function
endQuery
(manager: IQueryManager, name: string)
src/llm/render/queryManager.ts:56
↓ 1 callers
Method
ensureSuiteLoaded
(fileName: string)
src/cpu/library/CodeSuiteManager.tsx:38
↓ 1 callers
Function
evToScreen
(viewLayout: IViewLayoutContext, ev: IPointerEvent)
src/cpu/CompBoundingBox.tsx:155
↓ 1 callers
Function
fetchFontAtlasData
()
src/llm/render/fontRender.ts:64
↓ 1 callers
Function
findById
(id: string, offset?: Vec3, el?: IEl)
src/llm/components/TocDiagram.tsx:204
↓ 1 callers
Function
fixWires
(layout: IEditSchematic, wires: IWireGraph[], editIdx: number)
src/cpu/Wire.tsx:404
↓ 1 callers
Function
floatAsInt
(f: number)
src/llm/NativeBindings.ts:235
↓ 1 callers
Function
focusSelfAttentionHead
(args: IWalkthroughArgs, timers: ReturnType<typeof focusSelfAttentionHeadTimers>)
src/llm/walkthrough/Walkthrough04_SelfAttention.tsx:667
↓ 1 callers
Function
focusSelfAttentionHeadTimers
(args: IWalkthroughArgs, duration: number)
src/llm/walkthrough/Walkthrough04_SelfAttention.tsx:655
↓ 1 callers
Method
fromColMajor
(flatArr: ArrayLike<number>, offset: number = 0)
src/utils/matrix.ts:127
↓ 1 callers
Method
fromJson
(obj: ITensorJson)
src/utils/tensor.ts:175
↓ 1 callers
Method
fromOrtho
(left: number, right: number, bottom: number, top: number, near: number, far: number)
src/utils/matrix.ts:214
↓ 1 callers
Method
fromQuat
(q: Vec4)
src/utils/matrix.ts:163
↓ 1 callers
Method
fromScale
(s: Vec3)
src/utils/matrix.ts:169
↓ 1 callers
Method
fromVec3
(v: Vec3, w: number = 1.0)
src/utils/vector.ts:175
↓ 1 callers
Method
g
(index: number[])
src/utils/tensor.ts:94
↓ 1 callers
Method
g
(r: number, c: number)
src/utils/matrix.ts:357
↓ 1 callers
Function
genCommentary
(c: ICommentary, t: number)
src/llm/Commentary.tsx:306
← previous
next →
501–600 of 1,088, ranked by callers