Man pages for ggmlR
'GGML' Tensor Operations for Machine Learning

abind_firstBind Two Arrays Along the First Dimension
ag_addElement-wise addition with broadcasting
ag_batch_normCreate a Batch Normalisation layer
ag_clampElement-wise clamp
ag_cross_entropy_lossCategorical Cross-Entropy loss
ag_dataloaderCreate a mini-batch data loader
ag_default_deviceReturn the current default compute device
ag_default_dtypeReturn the current default dtype for GPU operations
ag_deviceSet the default compute device for ag_* operations
ag_dropoutCreate a Dropout layer
ag_dtypeSet the default floating-point precision for ag_* GPU...
ag_embeddingCreate an Embedding layer
ag_evalSwitch a layer or sequential model to eval mode
ag_expElement-wise exponential
ag_gradcheckNumerical gradient check (like torch.autograd.gradcheck)
ag_linearCreate a dense layer with learnable parameters
ag_load_modelLoad an autograd module from a saved state
ag_logElement-wise natural logarithm
ag_matmulMatrix multiplication
ag_meanMean of elements (or along a dim)
ag_mse_lossMean Squared Error loss
ag_mulElement-wise multiplication
ag_multihead_attentionCreate a Multi-Head Attention layer
ag_paramCreate a parameter tensor (gradient tracked)
ag_powElement-wise power
ag_reluReLU activation
ag_reshapeReshape tensor
ag_save_modelSave an autograd module's state to disk
ag_scaleScale tensor by a scalar constant
ag_sequentialCreate a sequential container of layers
ag_sigmoidSigmoid activation
ag_softmaxSoftmax activation (column-wise)
ag_softmax_cross_entropy_lossFused softmax + cross-entropy loss (numerically stable)
ag_subElement-wise subtraction
ag_sumSum all elements (or along a dim): out = sum(x)
ag_tanhTanh activation
ag_tensorCreate a dynamic tensor (no gradient tracking)
ag_to_deviceMove a tensor to the specified device
ag_trainSwitch a layer or sequential model to training mode
ag_transposeTranspose a tensor
as_gpu_matrixWrap a matrix so multiplies run on the GPU
as.matrix.ggml_matrixExtract the underlying matrix from a ggml_matrix
augment.ggmlr_parsnip_modelAugment new data with predictions from a fitted ggml parsnip...
backwardRun backward pass from a scalar loss tensor
clip_grad_normClip gradients by global L2 norm
compileCompile a Model
dequantize_row_iq2_xxsDequantize Row (IQ)
dequantize_row_mxfp4Dequantize Row (MXFP4)
dequantize_row_nvfp4Dequantize NVFP4 Data
dequantize_row_q1_0Dequantize Q1_0 Data
dequantize_row_q2_KDequantize Row (K-quants)
dequantize_row_q4_0Dequantize Row (Q4_0)
dequantize_row_tq1_0Dequantize Row (Ternary)
dot-ggmlr_batch_shardsSplit a batch index range into (near) equal contiguous shards
dot-ggmlr_largest_geneHighest-expressed gene per cell (op = "largest_gene")
dot-ggmlr_neighbors_gpukNN + shared-nearest-neighbour graphs (op = "neighbors")
dot-ggmlr_normalize_gpuGPU-accelerated LogNormalize (op = "normalize")
dot-ggmlr_pca_gpuGPU-accelerated PCA on a dense expression matrix
dot-ggmlr_scale_gpuGPU-accelerated ScaleData / z-score (op = "scale")
dot-ggmlr_umap_gpuGPU-bound UMAP embedding (op = "umap")
dp_trainData-parallel training across multiple GPUs
evaluateEvaluate a Model
fitTrain a Model
ggml_abort_is_r_enabledCheck if R Abort Handler is Enabled
ggml_absAbsolute Value (Graph)
ggml_abs_inplaceAbsolute Value In-place (Graph)
ggml_addAdd tensors
ggml_add1Add Scalar to Tensor (Graph)
ggml_add_inplaceElement-wise Addition In-place (Graph)
ggml_add_rel_posAdd Relative Position Bias (Graph)
ggml_applyApply a Layer Object to a Tensor Node
ggml_arangeArange (Graph)
ggml_are_same_layoutCheck if Two Tensors Have the Same Layout
ggml_are_same_shapeCompare Tensor Shapes
ggml_are_same_strideCompare Tensor Strides
ggml_argmaxArgmax (Graph)
ggml_argsortArgsort - Get Sorting Indices (Graph)
ggml_backend_alloc_ctx_tensorsAllocate Context Tensors to Backend
ggml_backend_buffer_clearClear buffer memory
ggml_backend_buffer_freeFree Backend Buffer
ggml_backend_buffer_get_sizeGet Backend Buffer Size
ggml_backend_buffer_get_usageGet buffer usage
ggml_backend_buffer_is_hostCheck if buffer is host memory
ggml_backend_buffer_is_multi_bufferCheck if buffer is a multi-buffer
ggml_backend_buffer_nameGet Backend Buffer Name
ggml_backend_buffer_resetReset buffer
ggml_backend_buffer_set_usageSet buffer usage hint
ggml_backend_buffer_usage_anyBuffer usage: Any
ggml_backend_buffer_usage_computeBuffer usage: Compute
ggml_backend_buffer_usage_weightsBuffer usage: Weights
ggml_backend_cpu_initInitialize CPU Backend
ggml_backend_cpu_set_n_threadsSet CPU Backend Threads
ggml_backend_dev_by_nameGet device by name
ggml_backend_dev_by_typeGet device by type
ggml_backend_dev_countGet number of available devices
ggml_backend_dev_descriptionGet device description
ggml_backend_dev_getGet device by index
ggml_backend_dev_get_propsGet device properties
ggml_backend_device_registerRegister a device
ggml_backend_device_type_accelDevice type: Accelerator
ggml_backend_device_type_cpuDevice type: CPU
ggml_backend_device_type_gpuDevice type: GPU
ggml_backend_device_type_igpuDevice type: Integrated GPU
ggml_backend_dev_initInitialize backend from device
ggml_backend_dev_memoryGet device memory
ggml_backend_dev_nameGet device name
ggml_backend_dev_offload_opCheck if device should offload operation
ggml_backend_dev_supports_buftCheck if device supports buffer type
ggml_backend_dev_supports_opCheck if device supports operation
ggml_backend_dev_typeGet device type
ggml_backend_event_freeFree event
ggml_backend_event_newCreate new event
ggml_backend_event_recordRecord event
ggml_backend_event_synchronizeSynchronize event
ggml_backend_event_waitWait for event
ggml_backend_freeFree Backend
ggml_backend_get_deviceGet device from backend
ggml_backend_graph_computeCompute Graph with Backend
ggml_backend_graph_compute_asyncCompute graph asynchronously
ggml_backend_graph_plan_computeExecute graph plan
ggml_backend_graph_plan_createCreate graph execution plan
ggml_backend_graph_plan_freeFree graph execution plan
ggml_backend_init_bestInitialize best available backend
ggml_backend_init_by_nameInitialize backend by name
ggml_backend_init_by_typeInitialize backend by type
ggml_backend_loadLoad backend from dynamic library
ggml_backend_load_allLoad all available backends
ggml_backend_meta_deviceCreate a Meta Backend Device
ggml_backend_multi_buffer_alloc_bufferAllocate multi-buffer
ggml_backend_multi_buffer_set_usageSet usage for all buffers in a multi-buffer
ggml_backend_nameGet Backend Name
ggml_backend_reg_by_nameGet backend registry by name
ggml_backend_reg_countGet number of registered backends
ggml_backend_reg_dev_countGet number of devices in registry
ggml_backend_reg_dev_getGet device from registry
ggml_backend_reg_getGet backend registry by index
ggml_backend_registerRegister a backend
ggml_backend_reg_nameGet registry name
ggml_backend_sched_alloc_graphAllocate graph on scheduler
ggml_backend_sched_freeFree backend scheduler
ggml_backend_sched_get_backendGet backend from scheduler
ggml_backend_sched_get_n_backendsGet number of backends in scheduler
ggml_backend_sched_get_n_copiesGet number of tensor copies
ggml_backend_sched_get_n_splitsGet number of graph splits
ggml_backend_sched_get_tensor_backendGet tensor backend assignment
ggml_backend_sched_graph_computeCompute graph using scheduler
ggml_backend_sched_graph_compute_asyncCompute graph asynchronously
ggml_backend_sched_newCreate a new backend scheduler
ggml_backend_sched_reserveReserve memory for scheduler
ggml_backend_sched_resetReset scheduler
ggml_backend_sched_set_tensor_backendSet tensor backend assignment
ggml_backend_sched_synchronizeSynchronize scheduler
ggml_backend_synchronizeSynchronize backend
ggml_backend_tensor_copy_asyncCopy tensor asynchronously between backends
ggml_backend_tensor_get_and_syncBackend Tensor Get and Sync
ggml_backend_tensor_get_asyncGet tensor data asynchronously
ggml_backend_tensor_get_dataGet Tensor Data via Backend
ggml_backend_tensor_get_f32_firstGet First Float from Backend Tensor
ggml_backend_tensor_set_asyncSet tensor data asynchronously
ggml_backend_tensor_set_dataSet Tensor Data via Backend
ggml_backend_unloadUnload backend
ggml_batch_normCreate a Batch Normalization Layer Object
ggml_blck_sizeGet Block Size
ggml_build_forward_expandBuild forward expand
ggml_callback_early_stoppingEarly stopping callback
ggml_can_repeatCheck If Tensor Can Be Repeated
ggml_ceilCeiling (Graph)
ggml_ceil_inplaceCeiling In-place (Graph)
ggml_clampClamp (Graph)
ggml_compileCompile a Sequential Model
ggml_concatConcatenate Tensors (Graph)
ggml_contMake Contiguous (Graph)
ggml_conv_1d1D Convolution (Graph)
ggml_conv_1d_dwDepthwise 1D Convolution (Graph)
ggml_conv_2d2D Convolution (Graph)
ggml_conv_2d_directDirect 2D Convolution (Graph)
ggml_conv_2d_dwDepthwise 2D Convolution (Graph)
ggml_conv_2d_dw_directDepthwise 2D Convolution, direct (Graph)
ggml_conv_transpose_1dTransposed 1D Convolution (Graph)
ggml_conv_transpose_2d_p0Transposed 2D Convolution, zero padding (Graph)
ggml_cosCosine (Graph)
ggml_count_equalCount Equal Elements (Graph)
ggml_cpu_addElement-wise Addition (CPU Direct)
ggml_cpu_featuresGet All CPU Features
ggml_cpu_get_rvv_vlenGet RISC-V Vector Length
ggml_cpu_get_sve_cntGet SVE Vector Length (ARM)
ggml_cpu_has_amx_int8CPU Feature Detection - AMX INT8
ggml_cpu_has_arm_fmaCPU Feature Detection - ARM FMA
ggml_cpu_has_avxCPU Feature Detection - AVX
ggml_cpu_has_avx2CPU Feature Detection - AVX2
ggml_cpu_has_avx512CPU Feature Detection - AVX-512
ggml_cpu_has_avx512_bf16CPU Feature Detection - AVX-512 BF16
ggml_cpu_has_avx512_vbmiCPU Feature Detection - AVX-512 VBMI
ggml_cpu_has_avx512_vnniCPU Feature Detection - AVX-512 VNNI
ggml_cpu_has_avx_vnniCPU Feature Detection - AVX-VNNI
ggml_cpu_has_bmi2CPU Feature Detection - BMI2
ggml_cpu_has_dotprodCPU Feature Detection - Dot Product (ARM)
ggml_cpu_has_f16cCPU Feature Detection - F16C
ggml_cpu_has_fmaCPU Feature Detection - FMA
ggml_cpu_has_fp16_vaCPU Feature Detection - FP16 Vector Arithmetic (ARM)
ggml_cpu_has_llamafileCPU Feature Detection - Llamafile
ggml_cpu_has_matmul_int8CPU Feature Detection - INT8 Matrix Multiply (ARM)
ggml_cpu_has_neonCPU Feature Detection - NEON (ARM)
ggml_cpu_has_riscv_vCPU Feature Detection - RISC-V Vector
ggml_cpu_has_smeCPU Feature Detection - SME (ARM)
ggml_cpu_has_sse3CPU Feature Detection - SSE3
ggml_cpu_has_ssse3CPU Feature Detection - SSSE3
ggml_cpu_has_sveCPU Feature Detection - SVE (ARM)
ggml_cpu_has_vsxCPU Feature Detection - VSX (PowerPC)
ggml_cpu_has_vxeCPU Feature Detection - VXE (IBM z/Architecture)
ggml_cpu_has_wasm_simdCPU Feature Detection - WebAssembly SIMD
ggml_cpu_mulElement-wise Multiplication (CPU Direct)
ggml_cpyCopy Tensor with Type Conversion (Graph)
ggml_crossprodGPU cross product (drop-in for 'crossprod')
ggml_cyclesGet CPU Cycles
ggml_cycles_per_msGet CPU Cycles per Millisecond
ggml_default_mlpDefault MLP builder for classification and regression
ggml_denseCreate a Dense Layer Object
ggml_diagDiagonal Matrix (Graph)
ggml_diag_mask_infDiagonal Mask with -Inf (Graph)
ggml_diag_mask_inf_inplaceDiagonal Mask with -Inf In-place (Graph)
ggml_diag_mask_zeroDiagonal Mask with Zero (Graph)
ggml_divElement-wise Division (Graph)
ggml_div_inplaceElement-wise Division In-place (Graph)
ggml_dupDuplicate Tensor (Graph)
ggml_dup_inplaceDuplicate Tensor In-place (Graph)
ggml_dup_tensorDuplicate Tensor
ggml_element_sizeGet Element Size
ggml_eluELU Activation (Graph)
ggml_elu_inplaceELU Activation In-place (Graph)
ggml_embeddingCreate an Embedding Layer Object
ggml_estimate_memoryEstimate Required Memory
ggml_evaluateEvaluate a Trained Model
ggml_expExponential (Graph)
ggml_exp_inplaceExponential In-place (Graph)
ggml_extractExtract a feature-by-cell matrix from a single-cell container
ggml_fitTrain a Model (dispatcher)
ggml_fit_optFit model with R-side epoch loop and callbacks
ggml_flash_attn_backFlash Attention Backward (Graph)
ggml_flash_attn_extFlash Attention (Graph)
ggml_floorFloor (Graph)
ggml_floor_inplaceFloor In-place (Graph)
ggml_freeFree GGML context
ggml_freeze_weightsFreeze Layer Weights
ggml_ftype_to_ggml_typeConvert ftype to ggml_type
ggml_gallocr_alloc_graphAllocate Memory for Graph
ggml_gallocr_freeFree Graph Allocator
ggml_gallocr_get_buffer_sizeGet Graph Allocator Buffer Size
ggml_gallocr_newCreate Graph Allocator
ggml_gallocr_reserveReserve Memory for Graph
ggml_gegluGeGLU (GELU Gated Linear Unit) (Graph)
ggml_geglu_quickGeGLU Quick (Fast GeGLU) (Graph)
ggml_geglu_splitGeGLU Split (Graph)
ggml_geluGELU Activation (Graph)
ggml_gelu_erfExact GELU Activation (Graph)
ggml_gelu_inplaceGELU Activation In-place (Graph)
ggml_gelu_quickGELU Quick Activation (Graph)
ggml_get_f32Get F32 data
ggml_get_f32_ndGet Single Float Value by N-D Index
ggml_get_first_tensorGet First Tensor from Context
ggml_get_i32Get I32 Data
ggml_get_i32_ndGet Single Int32 Value by N-D Index
ggml_get_layerGet a Layer from a Sequential Model
ggml_get_max_tensor_sizeGet Maximum Tensor Size
ggml_get_mem_sizeGet Context Memory Size
ggml_get_nameGet Tensor Name
ggml_get_next_tensorGet Next Tensor from Context
ggml_get_no_allocGet No Allocation Mode
ggml_get_n_threadsGet Number of Threads
ggml_get_op_paramsGet Tensor Operation Parameters
ggml_get_op_params_f32Get Float Op Parameter
ggml_get_op_params_i32Get Integer Op Parameter
ggml_get_rel_posGet Relative Position (Graph)
ggml_get_rowsGet Rows by Indices (Graph)
ggml_get_rows_backGet Rows Backward (Graph)
ggml_get_unary_opGet Unary Operation from Tensor
ggml_gluGeneric GLU (Gated Linear Unit) (Graph)
GGML_GLU_OP_REGLUGLU Operation Types
ggml_glu_splitGeneric GLU Split (Graph)
ggml_graph_computeCompute graph
ggml_graph_compute_with_ctxCompute Graph with Context (Alternative Method)
ggml_graph_dump_dotExport Graph to DOT Format
ggml_graph_get_tensorGet Tensor from Graph by Name
ggml_graph_n_nodesGet Number of Nodes in Graph
ggml_graph_nodeGet Graph Node
ggml_graph_overheadGet Graph Overhead
ggml_graph_printPrint Graph Information
ggml_graph_resetReset Graph (for backpropagation)
ggml_graph_viewCreate a View of a Subgraph
ggml_group_normGroup Normalization (Graph)
ggml_group_norm_inplaceGroup Normalization In-place (Graph)
ggml_gruCreate a GRU Layer Object
ggml_hardsigmoidHard Sigmoid Activation (Graph)
ggml_hardswishHard Swish Activation (Graph)
ggml_im2colImage to Column (Graph)
ggml_initInitialize GGML context
ggml_init_autoCreate Context with Auto-sizing
ggml_injectInject a single-cell result back into its container
ggml_inputDeclare a Functional API Input Tensor
ggml_is_availableCheck if GGML is available
ggml_is_contiguousCheck if Tensor is Contiguous
ggml_is_contiguous_0Check Tensor Contiguity (Dimension 0)
ggml_is_contiguous_1Check Tensor Contiguity (Dimensions >= 1)
ggml_is_contiguous_2Check Tensor Contiguity (Dimensions >= 2)
ggml_is_contiguous_channelsCheck Channel-wise Contiguity
ggml_is_contiguously_allocatedCheck If Tensor is Contiguously Allocated
ggml_is_contiguous_rowsCheck Row-wise Contiguity
ggml_is_permutedCheck if Tensor is Permuted
ggml_is_quantizedCheck If Type is Quantized
ggml_is_transposedCheck if Tensor is Transposed
ggml_l2_normL2 Normalization (Graph)
ggml_l2_norm_inplaceL2 Normalization In-place (Graph)
ggml_layer_addElement-wise Addition of Two Tensor Nodes
ggml_layer_batch_normAdd Batch Normalization Layer
ggml_layer_concatenateConcatenate Tensor Nodes Along an Axis
ggml_layer_conv_1dCreate a Conv1D Layer Object
ggml_layer_conv_2dCreate a Conv2D Layer Object
ggml_layer_denseAdd Dense (Fully Connected) Layer
ggml_layer_dropoutAdd Dropout Layer
ggml_layer_embeddingAdd Embedding Layer
ggml_layer_flattenAdd Flatten Layer
ggml_layer_global_average_pooling_2dGlobal Average Pooling for 2D Feature Maps
ggml_layer_global_max_pooling_2dGlobal Max Pooling for 2D Feature Maps
ggml_layer_gruAdd a GRU Layer
ggml_layer_lstmAdd an LSTM Layer
ggml_layer_max_pooling_2dAdd 2D Max Pooling Layer
ggml_leaky_reluLeaky ReLU Activation (Graph)
ggml_load_modelLoad a Full Model (Architecture + Weights)
ggml_load_weightsLoad Model Weights from File
ggml_logNatural Logarithm (Graph)
ggml_log_inplaceNatural Logarithm In-place (Graph)
ggml_log_is_r_enabledCheck if R Logging is Enabled
ggml_log_set_defaultRestore Default GGML Logging
ggml_log_set_rEnable R-compatible GGML Logging
ggml_lstmCreate an LSTM Layer Object
ggml_marshal_modelMarshal a ggmlR model to an in-memory container
ggml_matmulGPU matrix multiply (drop-in for '%*%')
ggml_matmul_f64GPU double-precision matrix multiply
ggml_matrix-classA GPU-backed matrix wrapper
ggml_meanMean (Graph)
ggml_modelCreate a Functional Model
ggml_model_backendBackend a fitted ggml model actually ran on
ggml_model_sequentialCreate a Sequential Neural Network Model
ggml_mulMultiply tensors
ggml_mul_inplaceElement-wise Multiplication In-place (Graph)
ggml_mul_matMatrix Multiplication (Graph)
ggml_mul_mat_idMatrix Multiplication with Expert Selection (Graph)
ggml_nbytesGet number of bytes
ggml_n_dimsGet Number of Dimensions
ggml_negNegation (Graph)
ggml_neg_inplaceNegation In-place (Graph)
ggml_nelementsGet number of elements
ggml_new_f32Create Scalar F32 Tensor
ggml_new_i32Create Scalar I32 Tensor
ggml_new_tensorCreate Tensor with Arbitrary Dimensions
ggml_new_tensor_1dCreate 1D tensor
ggml_new_tensor_2dCreate 2D tensor
ggml_new_tensor_3dCreate 3D Tensor
ggml_new_tensor_4dCreate 4D Tensor
ggml_normLayer Normalization (Graph)
ggml_norm_inplaceLayer Normalization In-place (Graph)
ggml_nrowsGet Number of Rows
ggml_op_can_inplaceCheck if Operation Can Be Done In-place
ggml_op_descGet Operation Description from Tensor
ggml_op_nameGet Operation Name
ggml_ops_registrySupported single-cell operations
ggml_op_symbolGet Operation Symbol
ggml_opt_allocAllocate graph for evaluation
ggml_opt_context_optimizer_typeGet optimizer type from context
ggml_opt_dataset_dataGet data tensor from dataset
ggml_opt_dataset_freeFree optimization dataset
ggml_opt_dataset_get_batchGet batch from dataset
ggml_opt_dataset_initCreate a new optimization dataset
ggml_opt_dataset_labelsGet labels tensor from dataset
ggml_opt_dataset_ndataGet number of datapoints in dataset
ggml_opt_dataset_shuffleShuffle dataset
ggml_opt_dataset_weightsGet dataset per-datapoint weights tensor
ggml_opt_default_paramsGet default optimizer parameters
ggml_opt_epochRun one training epoch
ggml_opt_evalEvaluate model
ggml_opt_fitFit model to dataset
ggml_opt_freeFree optimizer context
ggml_opt_get_lrGet current learning rate from optimizer context
ggml_opt_grad_accGet gradient accumulator for a tensor
ggml_opt_initInitialize optimizer context
ggml_opt_init_for_fitInitialize optimizer context for R-side epoch loop
ggml_opt_inputsGet inputs tensor from optimizer context
ggml_opt_labelsGet labels tensor from optimizer context
ggml_opt_lossGet loss tensor from optimizer context
ggml_opt_loss_type_cross_entropyLoss type: Cross Entropy
ggml_opt_loss_type_meanLoss type: Mean
ggml_opt_loss_type_mseLoss type: Mean Squared Error
ggml_opt_loss_type_sumLoss type: Sum
ggml_opt_loss_type_weighted_mseLoss type: Weighted Mean Squared Error
ggml_opt_ncorrectGet number of correct predictions tensor
ggml_opt_optimizer_nameGet optimizer name
ggml_opt_optimizer_type_adamwOptimizer type: AdamW
ggml_opt_optimizer_type_sgdOptimizer type: SGD
ggml_opt_outputsGet outputs tensor from optimizer context
ggml_opt_predGet predictions tensor from optimizer context
ggml_opt_prepare_allocPrepare allocation for non-static graphs
ggml_opt_resetReset optimizer context
ggml_opt_result_accuracyGet accuracy from result
ggml_opt_result_freeFree optimization result
ggml_opt_result_initInitialize optimization result
ggml_opt_result_lossGet loss from result
ggml_opt_result_ndataGet number of datapoints from result
ggml_opt_result_predGet predictions from result
ggml_opt_result_resetReset optimization result
ggml_opt_set_lrSet learning rate in optimizer context
ggml_opt_static_graphsCheck if using static graphs
ggml_out_prodOuter Product (Graph)
ggml_padPad Tensor with Zeros (Graph)
ggml_pad_reflect_1dReflective 1D Padding (Graph)
ggml_permutePermute Tensor Dimensions (Graph)
ggml_pool_1d1D Pooling (Graph)
ggml_pool_2d2D Pooling (Graph)
ggml_pop_layerRemove the Last Layer from a Sequential Model
ggml_pp_dp_forwardPipeline + data parallel forward pass (PP x DP)
ggml_pp_forwardPipeline-parallel forward pass across per-device layer stages
ggml_predictGet Predictions from a Trained Model
ggml_predict_classesPredict Classes from a Trained Model
ggml_print_mem_statusPrint Context Memory Status
ggml_print_objectsPrint Objects in Context
ggml_quant_block_infoGet Quantization Block Info
ggml_quantize_chunkQuantize Data Chunk
ggml_quantize_freeFree Quantization Resources
ggml_quantize_initInitialize Quantization Tables
ggml_quantize_requires_imatrixCheck if Quantization Requires Importance Matrix
ggml_regluReGLU (ReLU Gated Linear Unit) (Graph)
ggml_reglu_splitReGLU Split (Graph)
ggml_reluReLU Activation (Graph)
ggml_relu_inplaceReLU Activation In-place (Graph)
ggml_repeatRepeat (Graph)
ggml_repeat_backRepeat Backward (Graph)
ggml_resetReset GGML Context
ggml_reshape_1dReshape to 1D (Graph)
ggml_reshape_2dReshape to 2D (Graph)
ggml_reshape_3dReshape to 3D (Graph)
ggml_reshape_4dReshape to 4D (Graph)
ggml_resultConstruct a single-cell result
ggml_rms_normRMS Normalization (Graph)
ggml_rms_norm_backRMS Norm Backward (Graph)
ggml_rms_norm_inplaceRMS Normalization In-place (Graph)
ggml_rollRoll (Graph)
ggml_ropeRotary Position Embedding (Graph)
ggml_rope_extExtended RoPE with Frequency Scaling (Graph)
ggml_rope_ext_backRoPE Extended Backward (Graph)
ggml_rope_ext_inplaceExtended RoPE Inplace (Graph)
ggml_rope_inplaceRotary Position Embedding In-place (Graph)
ggml_rope_multiMulti-RoPE for Vision Models (Graph)
ggml_rope_multi_inplaceMulti-RoPE Inplace (Graph)
ggml_roundRound (Graph)
ggml_round_inplaceRound In-place (Graph)
ggmlR-packageggmlR: 'GGML' Tensor Operations for Machine Learning
ggmlr_parsnip_fit_classifparsnip ggml engine: classification fit
ggmlr_parsnip_fit_regrparsnip ggml engine: regression fit
ggml_runRun a single-cell task on the GGML backend
ggml_save_modelSave a Full Model (Architecture + Weights)
ggml_save_weightsSave Model Weights to File
ggml_scaleScale (Graph)
ggml_scale_inplaceScale Tensor In-place (Graph)
ggml_schedule_cosine_decayCosine annealing LR scheduler
ggml_schedule_reduce_on_plateauReduce on plateau LR scheduler
ggml_schedule_step_decayStep decay LR scheduler
ggml_setSet Tensor Region (Graph)
ggml_set_1dSet 1D Tensor Region (Graph)
ggml_set_2dSet 2D Tensor Region (Graph)
ggml_set_abort_callback_defaultRestore Default Abort Behavior
ggml_set_abort_callback_rEnable R-compatible Abort Handling
ggml_set_f32Set F32 data
ggml_set_f32_ndSet Single Float Value by N-D Index
ggml_set_i32Set I32 Data
ggml_set_i32_ndSet Single Int32 Value by N-D Index
ggml_set_inputMark Tensor as Input
ggml_set_nameSet Tensor Name
ggml_set_no_allocSet No Allocation Mode
ggml_set_n_threadsSet Number of Threads
ggml_set_omp_threadsSet OpenMP Thread Count
ggml_set_op_paramsSet Tensor Operation Parameters
ggml_set_op_params_f32Set Float Op Parameter
ggml_set_op_params_i32Set Integer Op Parameter
ggml_set_outputMark Tensor as Output
ggml_set_paramSet Tensor as Trainable Parameter
ggml_set_seedSet the random seed for reproducible ggmlR runs
ggml_set_zeroSet Tensor to Zero
ggml_sgnSign Function (Graph)
ggml_sigmoidSigmoid Activation (Graph)
ggml_sigmoid_inplaceSigmoid Activation In-place (Graph)
ggml_siluSiLU Activation (Graph)
ggml_silu_backSiLU Backward (Graph)
ggml_silu_inplaceSiLU Activation In-place (Graph)
ggml_sinSine (Graph)
ggml_soft_maxSoftmax (Graph)
ggml_soft_max_extExtended Softmax with Masking and Scaling (Graph)
ggml_soft_max_ext_backSoftmax Backward Extended (Graph)
ggml_soft_max_ext_back_inplaceExtended Softmax Backward Inplace (Graph)
ggml_soft_max_ext_inplaceExtended Softmax Inplace (Graph)
ggml_soft_max_inplaceSoftmax In-place (Graph)
ggml_softplusSoftplus Activation (Graph)
ggml_softplus_inplaceSoftplus Activation In-place (Graph)
GGML_SORT_ORDER_ASCSort Order Constants
ggml_sqrSquare (Graph)
ggml_sqr_inplaceSquare In-place (Graph)
ggml_sqrtSquare Root (Graph)
ggml_sqrt_inplaceSquare Root In-place (Graph)
ggml_stepStep Function (Graph)
ggml_subElement-wise Subtraction (Graph)
ggml_sub_inplaceElement-wise Subtraction In-place (Graph)
ggml_sumSum (Graph)
ggml_sum_rowsSum Rows (Graph)
ggml_swigluSwiGLU (Swish/SiLU Gated Linear Unit) (Graph)
ggml_swiglu_splitSwiGLU Split (Graph)
ggml_tanhTanh Activation (Graph)
ggml_tanh_inplaceTanh Activation In-place (Graph)
ggml_taskConstruct a single-cell compute task
ggml_tcrossprodGPU transposed cross product (drop-in for 'tcrossprod')
ggml_tensor_copyCopy Tensor Data
ggml_tensor_nbGet Tensor Strides (nb)
ggml_tensor_numCount Tensors in Context
ggml_tensor_overheadGet Tensor Overhead
ggml_tensor_set_f32_scalarFill Tensor with Scalar
ggml_tensor_shapeGet Tensor Shape
ggml_tensor_typeGet Tensor Type
ggml_testTest GGML
ggml_time_initInitialize GGML Timer
ggml_time_msGet Time in Milliseconds
ggml_timestep_embeddingTimestep Embedding (Graph Operation)
ggml_time_usGet Time in Microseconds
ggml_top_kTop-K Indices (Graph)
ggml_tp_dp_forwardTPxDP hybrid matrix multiply across replicas of Vulkan device...
ggml_training_historyTraining history of a fitted ggml model
ggml_transposeTranspose (Graph)
GGML_TYPE_F32GGML Data Types
ggml_type_nameGet Type Name
ggml_type_sizeGet Type Size in Bytes
ggml_type_sizefGet Type Size as Float
ggml_unary_op_nameGet Unary Operation Name
ggml_unfreeze_weightsUnfreeze Layer Weights
ggml_unmarshal_modelUnmarshal a ggmlR model from an in-memory container
ggml_upscaleUpscale Tensor (Graph)
ggml_used_memGet Used Memory
ggml_versionGet GGML version
ggml_view_1d1D View with Byte Offset (Graph)
ggml_view_2d2D View with Byte Offset (Graph)
ggml_view_3d3D View with Byte Offset (Graph)
ggml_view_4d4D View with Byte Offset (Graph)
ggml_view_tensorView Tensor
ggml_vulkan_availableCheck if Vulkan support is available
ggml_vulkan_backend_nameGet Vulkan backend name
ggml_vulkan_device_capsGet Vulkan device capabilities
ggml_vulkan_device_countGet number of Vulkan devices
ggml_vulkan_device_descriptionGet Vulkan device description
ggml_vulkan_device_groupsProbe Vulkan device groups (NVLink / multi-GPU peer access)
ggml_vulkan_device_memoryGet Vulkan device memory
ggml_vulkan_freeFree Vulkan backend
ggml_vulkan_hard_exit_availableIs the Vulkan hard-exit path compiled in?
ggml_vulkan_initInitialize Vulkan backend
ggml_vulkan_is_backendCheck if backend is Vulkan
ggml_vulkan_list_devicesList all Vulkan devices
ggml_vulkan_p2p_selftestOpaque-fd device-to-device P2P self-test
ggml_vulkan_shutdownExplicitly tear down the Vulkan instance and devices
ggml_vulkan_split_buffer_typeCreate a Vulkan tensor-split buffer type
ggml_vulkan_split_mul_matTensor-parallel matrix multiply across Vulkan devices
ggml_vulkan_split_row_rangesCompute tensor-parallel row-split ranges
ggml_vulkan_stage_handoffHand a pipeline stage's activation tensor to the next stage's...
ggml_vulkan_statusPrint Vulkan status
ggml_win_partWindow Partition (Graph)
ggml_win_unpartWindow Un-partition (Graph)
ggml_with_temp_ctxExecute with Temporary Context
gguf_freeFree GGUF Resources
gguf_loadLoad a GGUF File
gguf_metadataGet GGUF Metadata
gguf_tensor_dataExtract Tensor Data
gguf_tensor_infoGet Tensor Info
gguf_tensor_namesList Tensor Names in a GGUF File
glance.ggmlr_parsnip_modelOne-row summary of a fitted ggml parsnip model
iq2xs_free_implFree IQ2 Quantization Tables
iq2xs_init_implInitialize IQ2 Quantization Tables
iq3xs_free_implFree IQ3 Quantization Tables
iq3xs_init_implInitialize IQ3 Quantization Tables
is_ag_tensorCheck if object is an ag_tensor
lr_scheduler_cosineCosine-annealing learning rate scheduler
lr_scheduler_stepStep-decay learning rate scheduler
nn_apply_activationApply activation function
nn_build_batch_normBuild batch_norm forward pass
nn_build_conv_1dBuild conv_1d forward pass
nn_build_conv_2dBuild conv_2d forward pass
nn_build_denseBuild dense forward pass
nn_build_dropoutBuild dropout forward pass
nn_build_embeddingBuild embedding forward pass
nn_build_flattenBuild flatten forward pass
nn_build_functional_graphBuild ggml computation graph for a functional model
nn_build_functional_nodeBuild a single ggml tensor for one functional node
nn_build_global_average_pooling_2dBuild global_average_pooling_2d forward pass
nn_build_global_max_pooling_2dBuild global_max_pooling_2d forward pass
nn_build_graphBuild computation graph with allocated weights and inputs
nn_build_gruBuild GRU forward pass for Sequential model
nn_build_layerBuild a layer's forward pass
nn_build_lstmBuild LSTM forward pass for Sequential model
nn_build_max_pooling_2dBuild max_pooling_2d forward pass
nn_count_layer_paramsCount parameters for a single layer
nn_functional_output_shapeInfer output shape of a functional node given its parent...
nn_gru_stepBuild one GRU step
nn_infer_shapesInfer shapes for all layers in model
nn_init_glorot_uniformInitialize weight tensor with Glorot uniform distribution
nn_init_he_uniformInitialize weight tensor with He uniform distribution
nn_init_recurrent_uniformInitialize recurrent weight tensor with small deterministic...
nn_init_zerosInitialize bias tensor to zeros
nn_lstm_stepBuild one LSTM step
nn_topo_sortTopologically sort nodes reachable from output nodes
onnx_device_infoONNX model device/scheduler diagnostics
onnx_inputsList ONNX model inputs
onnx_loadLoad an ONNX model
onnx_runRun ONNX model inference
onnx_summaryONNX model summary
optimizer_adamCreate an Adam optimizer
optimizer_sgdCreate an SGD optimizer
plot.ggml_historyPlot training history
predict.ggml_sequential_modelPredict with a Trained Model
print.ag_tensorPrint method for ag_tensor
print.ggml_functional_modelPrint method for ggml_functional_model
print.ggml_historyPrint method for ggml_history
print.ggml_sequential_modelPrint method for ggml_sequential_model
print.onnx_modelPrint ONNX model summary
quantize_iq2_xxsQuantize Data (IQ)
quantize_mxfp4Quantize Data (MXFP4)
quantize_nvfp4Quantize Data (NVFP4)
quantize_q1_0Quantize Data (Q1_0)
quantize_q2_KQuantize Data (K-quants)
quantize_q4_0Quantize Data (Q4_0)
quantize_row_iq3_xxs_refQuantize Row Reference (IQ)
quantize_row_mxfp4_refQuantize Row Reference (MXFP4)
quantize_row_q2_K_refQuantize Row Reference (K-quants)
quantize_row_q4_0_refQuantize Row Reference (Basic)
quantize_row_tq1_0_refQuantize Row Reference (Ternary)
quantize_tq1_0Quantize Data (Ternary)
reexportsObjects exported from other packages
rope_typesRoPE Mode Constants
RunGGMLRun a GGML GPU operation on a Seurat object
slice_first_dimSlice an Array or Matrix Along Its First Dimension
summary.ggml_sequential_modelSummary method for ggml_sequential_model
tidy.ggmlr_parsnip_modelTidy a fitted ggml parsnip model into a per-layer table
with_grad_tapeRun code with gradient tape enabled
ggmlR documentation built on July 14, 2026, 1:08 a.m.