Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adalkiran/llama-nuts-and-bolts
/ functions
Functions
352 in github.com/adalkiran/llama-nuts-and-bolts
⨍
Functions
352
◇
Types & classes
51
↓ 131 callers
Method
Error
()
src/pickle/types.go:51
↓ 74 callers
Function
BFloat16fromFloat32
(f32 float32)
src/dtype/bfloat16.go:31
↓ 51 callers
Method
DebugPrintf
(format string, v ...any)
src/common/logging.go:47
↓ 50 callers
Function
CompareTestTensor
(expected interface{}, expectedSize []int, actual *Tensor, floatThreshold float64, shorten bool)
src/ml/utils.go:115
↓ 35 callers
Method
SetItem
(loc []int, val any)
src/ml/tensor.go:166
↓ 33 callers
Function
NewEmptyTensor
(size []int, dataType DataType)
src/ml/tensor.go:45
↓ 28 callers
Function
CompareTestTensorSkippable
(skip bool, expected interface{}, expectedSize []int, actual *Tensor, floatThreshold float64, shorten bool)
src/ml/utils.go:108
↓ 22 callers
Method
calculateByteOffset
(loc []int)
src/ml/tensor.go:245
↓ 20 callers
Method
HasNext
()
src/ml/tensoriterators.go:30
↓ 20 callers
Method
Next
()
src/ml/tensoriterators.go:13
↓ 18 callers
Function
LinearTransformation
(input *Tensor, weights *Tensor)
src/ml/operations_impl.go:427
↓ 17 callers
Method
Reshape
(newSize []int)
src/ml/tensor.go:386
↓ 15 callers
Function
ARange
(start int, end int, step int, dataType DataType)
src/ml/operations_impl.go:11
↓ 14 callers
Method
Append
(item interface{})
src/pickle/picklereader.go:70
↓ 14 callers
Method
Float32
()
src/dtype/bfloat16.go:19
↓ 14 callers
Method
Slice
(locStart []int, locEnd []int)
src/ml/tensor.go:266
↓ 13 callers
Method
GetItem
(loc []int)
src/ml/tensor.go:154
↓ 13 callers
Method
Transpose
(dim1 int, dim2 int)
src/ml/tensor.go:542
↓ 11 callers
Function
Full
(size []int, dataType DataType, fillValue any)
src/ml/operations_impl.go:55
↓ 11 callers
Method
GetItemByOffset_AsFloat32
(offset int)
src/ml/tensor.go:181
↓ 11 callers
Function
IterateOver
(tensor *Tensor, ignoreTrailingDimensions int)
src/ml/tensoriterators.go:93
↓ 11 callers
Function
TriangularUpper
(input *Tensor, diagonal int)
src/ml/operations_impl.go:175
↓ 10 callers
Method
ConsolePrintf
(format string, v ...any)
src/common/logging.go:35
↓ 9 callers
Method
Forward
(infContext *InferenceContext, x *ml.Tensor)
src/model/llamatransformer.go:633
↓ 9 callers
Function
getLayerTensor
(model *Model, nameFormat string, layerIndex int, expectedShape []int)
src/model/loader.go:194
↓ 9 callers
Method
printLinef
(format string, v ...any)
cmd/main.go:452
↓ 8 callers
Function
CheckBroadcastableOnce
(size1 []int, size2 []int)
src/ml/tensor.go:399
↓ 8 callers
Method
Read
(byteCount int)
src/pickle/picklereader.go:46
↓ 8 callers
Function
createTestInputTensor
(size []int)
src/ml/operations_test.go:52
↓ 7 callers
Method
GetBytesCount
()
src/ml/tensor.go:67
↓ 7 callers
Function
Mean
(input *Tensor, dim int, keepdim bool)
src/ml/operations_impl.go:219
↓ 7 callers
Function
MultiplyElementwise
(input *Tensor, other *Tensor)
src/ml/operations_impl.go:367
↓ 7 callers
Function
NewEmptyTensorEx
(name string, size []int, dataType DataType, allocateRawData bool)
src/ml/tensor.go:32
↓ 7 callers
Method
SetSlice
(locStart []int, locEnd []int, val *Tensor)
src/ml/tensor.go:345
↓ 6 callers
Function
Add
(input *Tensor, other *Tensor)
src/ml/operations_impl.go:307
↓ 6 callers
Function
BFloat16bitsToFloat32
(b16 uint16)
src/dtype/bfloat16.go:55
↓ 6 callers
Method
Close
()
src/common/logging.go:57
↓ 6 callers
Method
ConsoleFatal
(v ...any)
src/common/logging.go:41
↓ 6 callers
Method
GetItem_AsFloat32
(loc []int)
src/ml/tensor.go:203
↓ 6 callers
Function
IterateOverSize
(size []int, ignoreTrailingDimensions int)
src/ml/tensoriterators.go:76
↓ 6 callers
Method
ReadByte
()
src/pickle/picklereader.go:58
↓ 6 callers
Method
ToBFloat16
()
src/ml/tensor.go:430
↓ 6 callers
Method
ToFloat32
(val any)
src/ml/datatypefuncset.go:15
↓ 6 callers
Function
processErrors
(errors ...error)
src/ml/helpers.go:8
↓ 5 callers
Function
FriendlyPanic
(err error)
src/common/utils.go:125
↓ 5 callers
Method
Get
(key string)
src/pickle/types.go:22
↓ 5 callers
Method
GetKeys
()
src/pickle/types.go:41
↓ 5 callers
Function
MatMul
(input *Tensor, other *Tensor)
src/ml/operations_impl.go:449
↓ 5 callers
Method
SetItemByOffset
(offset int, val any)
src/ml/tensor.go:188
↓ 5 callers
Method
SetItemByOffset_FromFloat32
(offset int, val float32)
src/ml/tensor.go:195
↓ 5 callers
Method
SetItem_FromFloat32
(loc []int, val float32)
src/ml/tensor.go:208
↓ 5 callers
Method
String
()
src/ml/tensor.go:71
↓ 5 callers
Method
TokenizeString
(text string, addBeginOfSentence bool)
src/inference/tokenize.go:178
↓ 5 callers
Function
newDataType
(name string, itemSample any, funcSet DataTypeFuncSet)
src/ml/datatype.go:26
↓ 4 callers
Method
Apply_AsFloat32
(fn func(val float32) float32)
src/ml/tensor.go:231
↓ 4 callers
Method
Bits
()
src/dtype/bfloat16.go:15
↓ 4 callers
Method
GetElementCount
()
src/ml/tensor.go:59
↓ 4 callers
Method
GetItemByOffset
(offset int)
src/ml/tensor.go:174
↓ 4 callers
Function
IterateOverTwo
(refTensor *Tensor, expandingTensor *Tensor, ignoreTrailingDimensions int)
src/ml/tensoriterators.go:105
↓ 4 callers
Function
Pow
(input *Tensor, power float64)
src/ml/operations_impl.go:197
↓ 4 callers
Function
WaitGroupDone
(wg *sync.WaitGroup)
src/common/utils.go:19
↓ 4 callers
Function
Zeros
(size []int, dataType DataType)
src/ml/operations_impl.go:66
↓ 4 callers
Function
attentionRepeatKV
(x *ml.Tensor, N_Rep int)
src/model/llamatransformer.go:529
↓ 4 callers
Function
calculateShortenedExpectedIndex
(i int, dimensionSize int, shorten bool)
src/ml/utils.go:11
↓ 4 callers
Function
checkSameDataType
(a *Tensor, b *Tensor)
src/ml/helpers.go:31
↓ 4 callers
Function
getTensor
(model *Model, name string, expectedShape []int)
src/model/loader.go:183
↓ 4 callers
Function
pop
(stack []interface{})
src/pickle/pickledispatch.go:80
↓ 4 callers
Function
testSimulatedEmojiOutput
(t *testing.T, inputStr string, expectedAssistantLines []string, expectedWaitingLines []string)
cmd/main_test.go:70
↓ 4 callers
Method
updateOutput
()
cmd/main.go:392
↓ 3 callers
Method
ByteFallbackString
()
src/model/model.go:98
↓ 3 callers
Method
Close
()
src/torch/torchmodelreader.go:35
↓ 3 callers
Function
DuplicateTensor
(input *Tensor)
src/ml/tensor.go:53
↓ 3 callers
Method
Free
()
src/model/model.go:56
↓ 3 callers
Method
GetElementCount
()
src/model/model.go:60
↓ 3 callers
Method
Item
()
src/ml/tensor.go:213
↓ 3 callers
Function
NewInferenceArgs
()
src/common/inferenceargs.go:7
↓ 3 callers
Function
NewLogger
(consoleWriter io.Writer, debugWriter io.Writer)
src/common/logging.go:20
↓ 3 callers
Function
NewRMSNorm
(epsilon float32, weights *ml.Tensor)
src/model/llamatransformer.go:626
↓ 3 callers
Function
ReadBFloat16LittleEndian
(b []byte)
src/dtype/bfloat16.go:39
↓ 3 callers
Function
checkIsMatrix
(t *Tensor)
src/ml/helpers.go:24
↓ 3 callers
Function
checkIsVector
(t *Tensor)
src/ml/helpers.go:17
↓ 3 callers
Method
copyOfLoc
()
src/ml/tensoriterators.go:34
↓ 3 callers
Function
extractRuneData
(str string)
src/inference/emoji.go:42
↓ 2 callers
Function
AlmostEqualFloat32
(a float32, b float32, threshold float64)
src/common/utils.go:71
↓ 2 callers
Function
Argmax
(input *Tensor, dim int)
src/ml/operations_impl.go:513
↓ 2 callers
Function
CheckBroadcastable
(t1 *Tensor, t2 *Tensor, isCommutative bool)
src/ml/tensor.go:419
↓ 2 callers
Function
DivToScalar
(input *Tensor, scalar any)
src/ml/operations_impl.go:273
↓ 2 callers
Method
Float64
()
src/dtype/bfloat16.go:23
↓ 2 callers
Method
GenerateStringGeneric
(promptTokens []model.TokenId, tokenGeneratorFn TokenGeneratorFn)
src/inference/inference.go:73
↓ 2 callers
Function
InterfaceArrToIntArr
(arr []interface{})
src/common/utils.go:59
↓ 2 callers
Function
InterfaceToInt
(val interface{})
src/common/utils.go:28
↓ 2 callers
Method
IsCompatible
(val any)
src/ml/datatypefuncset.go:13
↓ 2 callers
Function
LoadModel
(modelDir string)
src/model/loader.go:18
↓ 2 callers
Function
LoadModelEx
(modelDir string, includeTensors bool, includeVocab bool)
src/model/loader.go:22
↓ 2 callers
Method
Logf
(format string, v ...any)
src/model/inferencecontext.go:48
↓ 2 callers
Function
NewAppState
()
cmd/main.go:383
↓ 2 callers
Function
NewEmptyTensorLike
(input *Tensor, allocateRawData bool)
src/ml/tensor.go:49
↓ 2 callers
Function
NewInferenceContext
(model *Model, inferenceArgs common.InferenceArgs, logFn func(format string, v ...any))
src/model/inferencecontext.go:17
↓ 2 callers
Function
NewInferenceEngine
(model *model.Model, inferenceArgs common.InferenceArgs, logFn func(format string, v ...any))
src/inference/inference.go:50
↓ 2 callers
Function
NewPickleDict
()
src/pickle/types.go:16
next →
1–100 of 352, ranked by callers