Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0hq/WebGPT
/ functions
Functions
245 in github.com/0hq/WebGPT
⨍
Functions
245
◇
Types & classes
70
↓ 60 callers
Method
push
({ passes, resultBuffer })
other/test.js:397
↓ 24 callers
Method
initBuffer
(ops, dims)
condensed/condensed.js:117
↓ 21 callers
Function
wgSize
(dim, size)
globals.js:45
↓ 20 callers
Method
initBindGroup
(layout, buffers, label = "")
instructions.js:20
↓ 20 callers
Method
initBindGroup
(layout, buffers, label = "")
condensed/condensed.js:106
↓ 18 callers
Method
initTensor
(data, dims, ops)
condensed/condensed.js:1814
↓ 17 callers
Function
wgSize
(dim, size)
condensed/condensed.js:35
↓ 16 callers
Function
fetchBin
(url)
condensed/condensed.js:29
↓ 16 callers
Method
newInstance
(rows, cols, inputBuf)
instructions.js:683
↓ 16 callers
Method
newInstance
(rows, cols, inputBuf)
condensed/condensed.js:723
↓ 14 callers
Method
bufferSize
(dimA, dimB = 1)
instructions.js:77
↓ 12 callers
Method
fetchAndInitTensor
(url, dims, ops)
model.js:484
↓ 12 callers
Method
initBuffer
(ops, row, col = 1, noDelete = false)
other/scratchpad.js:423
↓ 11 callers
Method
bufferSize
(dimX, dimY = 1, dimZ = 1)
condensed/condensed.js:1831
↓ 10 callers
Method
initPipeline
(code, bindGroupLayouts, label = "", constants = {})
instructions.js:102
↓ 10 callers
Method
initPipeline
(code, bindGroupLayouts, label = "", constants = {})
condensed/condensed.js:149
↓ 10 callers
Method
initResultBuffer
(dims)
instructions.js:57
↓ 10 callers
Method
initTensor
(data, dims, ops)
model.js:490
↓ 10 callers
Method
initUniform
(size, values)
instructions.js:31
↓ 10 callers
Function
zeros
(dim)
globals.js:78
↓ 9 callers
Method
destroy
()
visuals.js:238
↓ 9 callers
Function
validateResult
(result, validate, verbose = false)
other/validation/validation.js:139
↓ 8 callers
Method
initBindGroup
(layout, buffers)
other/scratchpad.js:407
↓ 7 callers
Function
transpose
(array, input_rows, input_cols)
condensed/condensed.js:68
↓ 6 callers
Function
ord
(x)
tokenizer.js:168
↓ 6 callers
Function
ord
(x)
condensed/condensed.js:1391
↓ 5 callers
Function
fetchBin
(url)
globals.js:39
↓ 5 callers
Function
formatAsMatrix
(floatArray, dimA, dimB)
other/validation/validation.js:224
↓ 5 callers
Method
initBuffer
(ops, dims, key = "")
instructions.js:67
↓ 5 callers
Method
initPipeline
(code, bindGroupLayouts, label = "", constants = {})
other/scratchpad.js:52
↓ 5 callers
Function
transpose
(array, input_rows, input_cols)
globals.js:80
↓ 4 callers
Method
bufferSize
(dimX, dimY = 1, dimZ = 1)
model.js:507
↓ 4 callers
Method
bufferSize
(dimX, dimY = 1, dimZ = 1)
other/scratchpad.js:446
↓ 4 callers
Function
range
(x, y)
tokenizer.js:162
↓ 4 callers
Function
range
(x, y)
condensed/condensed.js:1386
↓ 4 callers
Function
sampleFromDistribution
(probs)
globals.js:47
↓ 3 callers
Method
destroy
()
instructions.js:114
↓ 2 callers
Method
bufferSize
(dimX, dimY = 1, dimZ = 1)
other/test.js:497
↓ 2 callers
Function
cpuSoftmax
(logits, temperature = 1.0)
globals.js:59
↓ 2 callers
Method
decode
(arr)
tokenizer.js:20
↓ 2 callers
Method
decode
(arr)
condensed/condensed.js:1244
↓ 2 callers
Method
destroyBuffers
()
instructions.js:132
↓ 2 callers
Method
encode
(str)
tokenizer.js:16
↓ 2 callers
Method
encode
(str)
condensed/condensed.js:1240
↓ 2 callers
Function
get_pairs
(word)
tokenizer.js:199
↓ 2 callers
Function
get_pairs
(word)
condensed/condensed.js:1422
↓ 2 callers
Method
initTensor
(data, dims, ops)
other/test.js:480
↓ 2 callers
Function
initializeOperations
(device)
globals.js:13
↓ 2 callers
Method
load
()
tokenizer.js:8
↓ 2 callers
Function
quantizeMatrix
(matrix, M, N)
other/int8-gemm.js:25
↓ 1 callers
Method
bpe
(token)
tokenizer.js:118
↓ 1 callers
Method
bpe
(token)
condensed/condensed.js:1342
↓ 1 callers
Method
bufferSize
(dimA, dimB = 1)
condensed/condensed.js:126
↓ 1 callers
Method
bufferSize
(dimA, dimB = 1)
other/scratchpad.js:31
↓ 1 callers
Function
bytes_to_unicode
()
tokenizer.js:180
↓ 1 callers
Function
bytes_to_unicode
()
condensed/condensed.js:1403
↓ 1 callers
Function
checkAlmostEqualMatrices
(a, b)
other/validation/validation.js:207
↓ 1 callers
Method
clearBufferCache
()
instructions.js:123
↓ 1 callers
Function
clearOperationCache
()
globals.js:21
↓ 1 callers
Function
cpuSoftmax
(logits, temperature = 1.0)
condensed/condensed.js:49
↓ 1 callers
Function
dequantizeMatrix
(quantizedMatrix, absmax, M, N)
other/int8-gemm.js:48
↓ 1 callers
Method
destroyBuffers
()
condensed/condensed.js:161
↓ 1 callers
Method
destroyBuffers
()
other/scratchpad.js:455
↓ 1 callers
Function
destroyOperationBuffers
()
globals.js:17
↓ 1 callers
Function
destroyOperationBuffers
()
condensed/condensed.js:17
↓ 1 callers
Method
destroyPipelineCache
()
instructions.js:119
↓ 1 callers
Function
dictZip
(x, y)
tokenizer.js:172
↓ 1 callers
Function
dictZip
(x, y)
condensed/condensed.js:1395
↓ 1 callers
Function
export_pytorch_checkpoint_to_bin_files
(ckpt_path, folder_name)
other/conversion_scripts/convert_checkpoint_pytorch.py:30
↓ 1 callers
Function
export_weights_to_files
(model, folder_name)
other/conversion_scripts/convert_pretrained_pytorch.py:19
↓ 1 callers
Method
fastMatMul
(flag)
instructions.js:179
↓ 1 callers
Method
fastMatMul
(flag)
condensed/condensed.js:207
↓ 1 callers
Method
fetchAndSplitQKVBiasTensors
(url, dims, ops)
model.js:470
↓ 1 callers
Method
fetchAndSplitQKVWeightTensors
(url, dims, ops)
model.js:456
↓ 1 callers
Method
fusedShader
(wg_size, transpose)
instructions.js:593
↓ 1 callers
Method
fusedShader
(wg_size, transpose)
condensed/condensed.js:631
↓ 1 callers
Method
getCausalMaskPipeline
()
other/test.js:41
↓ 1 callers
Method
getFormatQPipeline
()
instructions.js:977
↓ 1 callers
Method
getFormatQPipeline
()
condensed/condensed.js:984
↓ 1 callers
Method
getFusedPipeline
(workgroups, transpose)
instructions.js:559
↓ 1 callers
Method
getFusedPipeline
(workgroups, transpose)
condensed/condensed.js:595
↓ 1 callers
Method
getNewAttentionValuesPipeline
()
instructions.js:969
↓ 1 callers
Method
getNewAttentionValuesPipeline
()
condensed/condensed.js:976
↓ 1 callers
Method
getNewAttentionWeightsPipeline
()
instructions.js:961
↓ 1 callers
Method
getNewAttentionWeightsPipeline
()
condensed/condensed.js:968
↓ 1 callers
Method
getNormPipeline
()
instructions.js:401
↓ 1 callers
Method
getNormPipeline
()
condensed/condensed.js:433
↓ 1 callers
Method
getPipeline
(rows)
instructions.js:147
↓ 1 callers
Method
getPipeline
()
instructions.js:328
↓ 1 callers
Method
getPipeline
()
instructions.js:675
↓ 1 callers
Method
getPipeline
()
instructions.js:836
↓ 1 callers
Method
getPipeline
(rows)
condensed/condensed.js:174
↓ 1 callers
Method
getPipeline
()
condensed/condensed.js:358
↓ 1 callers
Method
getPipeline
()
condensed/condensed.js:715
↓ 1 callers
Method
getPipeline
()
condensed/condensed.js:841
↓ 1 callers
Method
getPipeline
(rows)
other/scratchpad.js:82
↓ 1 callers
Method
getPipeline
()
other/test.js:181
↓ 1 callers
Method
getPipeline
()
other/test.js:261
↓ 1 callers
Method
getStatsPipeline
(workgroups)
instructions.js:393
↓ 1 callers
Method
getStatsPipeline
(workgroups)
condensed/condensed.js:425
next →
1–100 of 245, ranked by callers