Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UbiquitousLearning/mllm
/ functions
Functions
5,971 in github.com/UbiquitousLearning/mllm
⨍
Functions
5,971
◇
Types & classes
1,855
↳
Endpoints
4
↓ 4 callers
Function
calculateStrides
Helper function to calculate strides for broadcasting
mllm/backends/cpu/ops/MaskedScatterOp.cpp:47
↓ 4 callers
Function
clip
mllm/nn/Functional.cpp:108
↓ 4 callers
Method
clone
mllm/core/Tensor.cpp:659
↓ 4 callers
Method
colon
mllm/compile/ir/IRPrinter.hpp:39
↓ 4 callers
Function
compile
()
algorithms/lazy_vlm/run.py:4
↓ 4 callers
Method
context
mllm/backends/qnn/QNNBackend.hpp:128
↓ 4 callers
Method
convert2Ids
mllm/models/minicpm_o2_6/tokenization_minicpmo.hpp:303
↓ 4 callers
Function
copyTensorsInfo
mllm/backends/qnn/QNNUtils.cpp:191
↓ 4 callers
Method
createRegionAtTop
mllm/compile/ir/Node.cpp:158
↓ 4 callers
Method
device
mllm/nn/Layer.hpp:65
↓ 4 callers
Method
dump
Dumps the JSON object to a formatted string.
mllm/engine/ConfigFile.cpp:40
↓ 4 callers
Function
elementwise_impl
mllm/backends/cpu/kernels/common/elewise-inl.hpp:16
↓ 4 callers
Method
enable_observer
Enable tracking of min/max values to update scale and zero_point.
pymllm/backends/qualcomm/transformers/core/qdq.py:72
↓ 4 callers
Method
encode
mllm/models/deepseek_ocr/tokenization_deepseek_ocr.hpp:52
↓ 4 callers
Method
execute_command
Execute a single, stateless shell command on device. This command will NOT maintain context like environment variables. For s
pymllm/utils/adb.py:299
↓ 4 callers
Function
float_to_fp16s
mllm/backends/qnn/custom-op-package/LLaMAPackage/src/ops/LLaMADequantizeAdd.cpp:91
↓ 4 callers
Function
float_to_fp16s
mllm/backends/qnn/custom-op-package/LLaMAPackage/src/ops/LLaMADequantize.cpp:90
↓ 4 callers
Function
freeQnnTensors
mllm/backends/qnn/QNNUtils.cpp:294
↓ 4 callers
Method
fromPreTrain
mllm/engine/service/Session.cpp:13
↓ 4 callers
Function
gelu_fp32
mllm/backends/cpu/kernels/arm/gelu.cpp:14
↓ 4 callers
Method
getAOpTypes
mllm/compile/ir/linalg/Op.hpp:140
↓ 4 callers
Function
getBlobAddr
mllm/engine/prefix_cache/TLB.cpp:7
↓ 4 callers
Method
getDevice
FIXME: deprecated, context has no device
mllm/compile/ir/Node.cpp:259
↓ 4 callers
Method
getDevices
! \brief Gets a list of devices for this platform. * * Wraps clGetDeviceIDs(). */
mllm/backends/opencl/vendors/OpenCL-Headers/CL/opencl.hpp:2846
↓ 4 callers
Function
getLaneAddr
mllm/engine/prefix_cache/TLB.cpp:17
↓ 4 callers
Method
getOpType
mllm/compile/symbolic_expr/AST.hpp:150
↓ 4 callers
Function
getResponse
mllm/engine/service/Service.cpp:176
↓ 4 callers
Method
getType
mllm/nn/AbstractNnNode.cpp:43
↓ 4 callers
Function
get_combining_class
Get canonical combining class for a codepoint using existing flags data
mllm/preprocessor/tokenizers/llama_cpp_unicode/unicode.cpp:830
↓ 4 callers
Method
get_devices
Get list of connected devices
pymllm/utils/adb.py:230
↓ 4 callers
Function
get_scale_shuffle
mllm/backends/cpu/kernels/common/ggml/quantize/quantize.hpp:250
↓ 4 callers
Method
has_value
mllm-kernel/include/mllm_kernel/tensor.hpp:234
↓ 4 callers
Method
has_value
mllm-kernel/include/mllm_kernel/tensor.hpp:287
↓ 4 callers
Function
initQnnBackend
export initQnnBackend function to initialize QNN backend
mllm/backends/qnn/Register.cpp:17
↓ 4 callers
Method
isGraphFinalized
mllm/backends/qnn/QNNModel.hpp:86
↓ 4 callers
Function
isInt
mllm/backends/qnn/aot/visitor/CastType.cpp:17
↓ 4 callers
Method
is_contiguous
(self)
pymllm/ffi/__init__.py:261
↓ 4 callers
Function
llamafile_sgemm
* Performs optimized matrix multiplication on CPU. * * This subroutine may compute C = Aᵀ * B with column major ordering. * Despite its name, this
mllm/backends/cpu/kernels/common/llamafile/llamafile_sgemm.cpp:827
↓ 4 callers
Function
matmul_fp32
mllm/backends/cpu/kernels/common/blas.cpp:10
↓ 4 callers
Method
opType
mllm/nn/Layer.cpp:36
↓ 4 callers
Function
panic
mllm-kernel/include/mllm_kernel/utils.hpp:82
↓ 4 callers
Method
prevOp
mllm/compile/ir/Node.cpp:36
↓ 4 callers
Function
quantize
mllm/backends/cpu/kernels/arm/quantize/bitspack/bitspack.cpp:100
↓ 4 callers
Method
regChildNode
mllm/nn/AbstractNnNode.cpp:10
↓ 4 callers
Function
registerConvTemplate
* Register a new conversation template */
mllm/models/deepseek_ocr/conversation_preprocess.hpp:243
↓ 4 callers
Method
removeFromSymbolTable
mllm/compile/ir/Node.cpp:248
↓ 4 callers
Function
repeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
pymllm/backends/qualcomm/transformers/llama/modeling_llama.py:217
↓ 4 callers
Function
rotate_half
Rotates half the hidden dims of the input.
pymllm/backends/qualcomm/transformers/qwen3/modeling_qwen3.py:105
↓ 4 callers
Function
rotate_half
Rotates half the hidden dims of the input.
pymllm/backends/qualcomm/transformers/qwen2/modeling_qwen2.py:90
↓ 4 callers
Function
rotate_half
Rotates half the hidden dims of the input.
pymllm/backends/qualcomm/transformers/llama/modeling_llama.py:127
↓ 4 callers
Method
setOutputTensors
mllm/backends/qnn/aot_rt/QnnAOTModule.hpp:30
↓ 4 callers
Function
setRandomSeed
mllm/mllm.cpp:70
↓ 4 callers
Method
set_name
(self, name)
pymllm/ffi/__init__.py:251
↓ 4 callers
Method
set_options
mllm-kernel/include/mllm_kernel/tensor.hpp:245
↓ 4 callers
Method
set_value
mllm-kernel/include/mllm_kernel/tensor.hpp:171
↓ 4 callers
Function
shareQuantSpecSingleInputToSingleOutputAndSetOpQuantAnnoAttr
mllm/backends/qnn/aot/passes/LLMQuantRecipePass.cpp:126
↓ 4 callers
Method
softmax
mllm/backends/cpu/kernels/common/fa2/fwd_bshd.hpp:162
↓ 4 callers
Function
softmax_v1_fp32
Safe sofmax for fp32. Not optimized for stride!=1 situation. When stride is set to 1, this function will utilize vexp1_fast_fp32 method to accelerate
mllm/backends/cpu/kernels/arm/softmax.cpp:18
↓ 4 callers
Function
stack
mllm/nn/Functional.cpp:66
↓ 4 callers
Method
sub
mllm/core/Tensor.cpp:236
↓ 4 callers
Method
token2id
mllm/preprocessor/tokenizers/WordPiece.cpp:166
↓ 4 callers
Method
trace
examples/llama_qnn_aot/modeling_llama_qnn_aot.hpp:422
↓ 4 callers
Function
unhalf
mllm/backends/cpu/kernels/common/llamafile/llamafile_sgemm.cpp:73
↓ 4 callers
Method
zeros
mllm/core/Tensor.cpp:120
↓ 3 callers
Method
ModuleList
mllm/nn/Module.hpp:207
↓ 3 callers
Method
Tensor
mllm/core/Tensor.cpp:76
↓ 3 callers
Method
__init__
(self)
pymllm/ffi/__init__.py:44
↓ 3 callers
Function
_build_cache_name
( device_prefix: str, func_name: str, template_args: Tuple[str, ...] = (), )
mllm-kernel/mllm_kernel/jit_utils/compile.py:248
↓ 3 callers
Function
_log2_ceil
mllm/engine/BuddyMemPool.cpp:12
↓ 3 callers
Function
_make_tvm_ffi_wrapper
(tup: Tuple[str, str])
mllm-kernel/mllm_kernel/jit_utils/compile.py:48
↓ 3 callers
Function
_pack_descriptor
(desc)
pymllm/convertor/model_file_v2.py:67
↓ 3 callers
Function
_resolve_build_directory
( build_directory: str | None, default_name: str, )
mllm-kernel/mllm_kernel/jit_utils/compile.py:236
↓ 3 callers
Method
abs
mllm/core/Tensor.cpp:395
↓ 3 callers
Function
add
mllm/backends/cpu/kernels/common/llamafile/llamafile_sgemm.cpp:79
↓ 3 callers
Method
addTensorWrapper
mllm/backends/qnn/QNNModel.cpp:151
↓ 3 callers
Function
align_alloc
mllm/backends/cpu/CPUAllocator.cpp:10
↓ 3 callers
Function
align_free
mllm/backends/cpu/CPUAllocator.cpp:30
↓ 3 callers
Method
cal
mllm/backends/cpu/kernels/arm/primitives.hpp:21
↓ 3 callers
Function
clamp
mllm/backends/cpu/kernels/arm/mllm_blas/mllm_blas_i8gemm_bitspack_1x4x16_fp32_neondot.hpp:17
↓ 3 callers
Method
clear
mllm/engine/prefix_cache/RadixTree.cpp:37
↓ 3 callers
Method
clearCache
mllm/nn/layers/KVCache.cpp:24
↓ 3 callers
Function
compute_sum
mllm/backends/cpu/kernels/arm/quantize/bitspack/bitspack.cpp:77
↓ 3 callers
Method
convert2Ids
mllm/models/qwen3/tokenization_qwen3.hpp:221
↓ 3 callers
Method
convert_to_conv2d_deploy_hwio
(self)
pymllm/backends/qualcomm/transformers/core/qlinear.py:195
↓ 3 callers
Function
copyGraphsInfo
mllm/backends/qnn/QNNUtils.cpp:148
↓ 3 callers
Function
createProgramLoweringPipeline
mllm/compile/passes/ProgramLoweringPipeline.cpp:335
↓ 3 callers
Function
createTrueBoolAttr
mllm/backends/qnn/aot/passes/MarkQnnGraphPass.cpp:19
↓ 3 callers
Method
cuda
(self)
pymllm/ffi/__init__.py:244
↓ 3 callers
Function
deepCopyQnnTensorInfo
mllm/backends/qnn/QNNUtils.cpp:205
↓ 3 callers
Method
depthIncrease
mllm/nn/AbstractNnNode.cpp:27
↓ 3 callers
Method
dump
mllm/compile/symbolic_expr/AST.hpp:207
↓ 3 callers
Method
enqueueMapSVM
mllm/backends/opencl/vendors/OpenCL-Headers/CL/opencl.hpp:8937
↓ 3 callers
Method
enqueueUnmapSVM
mllm/backends/opencl/vendors/OpenCL-Headers/CL/opencl.hpp:9042
↓ 3 callers
Method
equal
mllm/core/Tensor.cpp:462
↓ 3 callers
Method
eval
mllm/compile/symbolic_expr/AST.hpp:213
↓ 3 callers
Function
exp_ps_f32
adapted from arm limited optimized routine the maximum error is 1.45358 plus 0.5 ulps numbers above 88.38 will flush to infinity numbers beneath -103.
mllm/backends/cpu/kernels/arm/primitives.hpp:432
↓ 3 callers
Function
fillAtbTensorWithShape
Helper to fill ATB tensor with custom shape (for reshape without copy)
mllm/backends/ascend/ops/AscendMatMulOp.cpp:29
↓ 3 callers
Function
flashAttention2
mllm/nn/Functional.cpp:70
↓ 3 callers
Function
float_to_fp16s
mllm/backends/qnn/custom-op-package/LLaMAPackage/src/ops/RoPE.cpp:181
↓ 3 callers
Method
getCurrentSeqCnt
algorithms/lazy_vlm/HKVCache.cpp:79
← previous
next →
401–500 of 5,971, ranked by callers