Package: ggmlR 0.7.9
ggmlR: 'GGML' Tensor Operations for Machine Learning
Provides 'R' bindings to the 'GGML' tensor library for machine learning, optimized for 'Vulkan' GPU acceleration with a transparent CPU fallback. The package features a 'Keras'-like sequential API and a 'PyTorch'-style 'autograd' engine for building, training, and deploying neural networks. Key capabilities include high-performance 5D tensor operations, 'f16' precision, and efficient quantization. It supports native 'ONNX' model import (50+ operators) and 'GGUF' weight loading from the 'llama.cpp' and 'Hugging Face' ecosystems. Designed for zero-overhead inference via dedicated weight buffering, it integrates seamlessly as a 'parsnip' engine for 'tidymodels' and provides first-class learners for the 'mlr3' framework. See <https://github.com/ggml-org/ggml> for more information about the underlying library.
Authors:
ggmlR_0.7.9.tar.gz
ggmlR_0.7.9.zip(r-4.7)ggmlR_0.7.9.zip(r-4.6)ggmlR_0.7.9.zip(r-4.5)
ggmlR_0.7.9.tgz(r-4.6-x86_64)ggmlR_0.7.9.tgz(r-4.6-arm64)ggmlR_0.7.9.tgz(r-4.5-x86_64)ggmlR_0.7.9.tgz(r-4.5-arm64)
ggmlR_0.7.9.tar.gz(r-4.7-arm64)ggmlR_0.7.9.tar.gz(r-4.7-x86_64)ggmlR_0.7.9.tar.gz(r-4.6-arm64)ggmlR_0.7.9.tar.gz(r-4.6-x86_64)
ggmlR_0.7.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
ggmlR/json (API)
NEWS
| # Install 'ggmlR' in R: |
| install.packages('ggmlR', repos = c('https://zabis13.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/zabis13/ggmlr/issues
Last updated from:3aac7fb9e7. Checks:8 ERROR, 1 OK, 3 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | ERROR | 250 | ||
| linux-devel-x86_64 | ERROR | 306 | ||
| source / vignettes | OK | 368 | ||
| linux-release-arm64 | ERROR | 272 | ||
| linux-release-x86_64 | ERROR | 273 | ||
| macos-release-arm64 | ERROR | 139 | ||
| macos-release-x86_64 | ERROR | 330 | ||
| macos-oldrel-arm64 | ERROR | 188 | ||
| macos-oldrel-x86_64 | ERROR | 453 | ||
| windows-devel | FAIL | 113 | ||
| windows-release | FAIL | 82 | ||
| windows-oldrel | FAIL | 79 |
Exports:ag_addag_batch_normag_clampag_cross_entropy_lossag_dataloaderag_default_deviceag_default_dtypeag_deviceag_dropoutag_dtypeag_embeddingag_evalag_expag_gradcheckag_linearag_load_modelag_logag_matmulag_meanag_mse_lossag_mulag_multihead_attentionag_paramag_powag_reluag_reshapeag_save_modelag_scaleag_sequentialag_sigmoidag_softmaxag_softmax_cross_entropy_lossag_subag_sumag_tanhag_tensorag_to_deviceag_trainag_transposebackwardclip_grad_normcompiledequantize_row_iq1_mdequantize_row_iq1_sdequantize_row_iq2_sdequantize_row_iq2_xsdequantize_row_iq2_xxsdequantize_row_iq3_sdequantize_row_iq3_xxsdequantize_row_iq4_nldequantize_row_iq4_xsdequantize_row_mxfp4dequantize_row_nvfp4dequantize_row_q1_0dequantize_row_q2_Kdequantize_row_q3_Kdequantize_row_q4_0dequantize_row_q4_1dequantize_row_q4_Kdequantize_row_q5_0dequantize_row_q5_1dequantize_row_q5_Kdequantize_row_q6_Kdequantize_row_q8_0dequantize_row_q8_Kdequantize_row_tq1_0dequantize_row_tq2_0dp_trainevaluatefitggml_abort_is_r_enabledggml_absggml_abs_inplaceggml_addggml_add_inplaceggml_add_rel_posggml_add1ggml_applyggml_arangeggml_are_same_layoutggml_are_same_shapeggml_are_same_strideggml_argmaxggml_argsortggml_backend_alloc_ctx_tensorsggml_backend_buffer_clearggml_backend_buffer_freeggml_backend_buffer_get_sizeggml_backend_buffer_get_usageggml_backend_buffer_is_hostggml_backend_buffer_is_multi_bufferggml_backend_buffer_nameggml_backend_buffer_resetggml_backend_buffer_set_usageggml_backend_buffer_usage_anyggml_backend_buffer_usage_computeggml_backend_buffer_usage_weightsggml_backend_cpu_initggml_backend_cpu_set_n_threadsggml_backend_dev_by_nameggml_backend_dev_by_typeggml_backend_dev_countggml_backend_dev_descriptionggml_backend_dev_getggml_backend_dev_get_propsggml_backend_dev_initggml_backend_dev_memoryggml_backend_dev_nameggml_backend_dev_offload_opggml_backend_dev_supports_buftggml_backend_dev_supports_opggml_backend_dev_typeggml_backend_device_registerggml_backend_device_type_accelggml_backend_device_type_cpuggml_backend_device_type_gpuggml_backend_device_type_igpuggml_backend_event_freeggml_backend_event_newggml_backend_event_recordggml_backend_event_synchronizeggml_backend_event_waitggml_backend_freeggml_backend_get_deviceggml_backend_graph_computeggml_backend_graph_compute_asyncggml_backend_graph_plan_computeggml_backend_graph_plan_createggml_backend_graph_plan_freeggml_backend_init_bestggml_backend_init_by_nameggml_backend_init_by_typeggml_backend_loadggml_backend_load_allggml_backend_meta_deviceggml_backend_multi_buffer_alloc_bufferggml_backend_multi_buffer_set_usageggml_backend_nameggml_backend_reg_by_nameggml_backend_reg_countggml_backend_reg_dev_countggml_backend_reg_dev_getggml_backend_reg_getggml_backend_reg_nameggml_backend_registerggml_backend_sched_alloc_graphggml_backend_sched_freeggml_backend_sched_get_backendggml_backend_sched_get_n_backendsggml_backend_sched_get_n_copiesggml_backend_sched_get_n_splitsggml_backend_sched_get_tensor_backendggml_backend_sched_graph_computeggml_backend_sched_graph_compute_asyncggml_backend_sched_newggml_backend_sched_reserveggml_backend_sched_resetggml_backend_sched_set_tensor_backendggml_backend_sched_synchronizeggml_backend_synchronizeggml_backend_tensor_copy_asyncggml_backend_tensor_get_and_syncggml_backend_tensor_get_asyncggml_backend_tensor_get_dataggml_backend_tensor_get_f32_firstggml_backend_tensor_set_asyncggml_backend_tensor_set_dataggml_backend_unloadggml_batch_normggml_blck_sizeggml_build_forward_expandggml_callback_early_stoppingggml_can_repeatggml_ceilggml_ceil_inplaceggml_clampggml_compileggml_concatggml_contggml_conv_1dggml_conv_1d_dwggml_conv_2dggml_conv_2d_directggml_conv_2d_dwggml_conv_2d_dw_directggml_conv_transpose_1dggml_conv_transpose_2d_p0ggml_cosggml_count_equalggml_cpu_addggml_cpu_featuresggml_cpu_get_rvv_vlenggml_cpu_get_sve_cntggml_cpu_has_amx_int8ggml_cpu_has_arm_fmaggml_cpu_has_avxggml_cpu_has_avx_vnniggml_cpu_has_avx2ggml_cpu_has_avx512ggml_cpu_has_avx512_bf16ggml_cpu_has_avx512_vbmiggml_cpu_has_avx512_vnniggml_cpu_has_bmi2ggml_cpu_has_dotprodggml_cpu_has_f16cggml_cpu_has_fmaggml_cpu_has_fp16_vaggml_cpu_has_llamafileggml_cpu_has_matmul_int8ggml_cpu_has_neonggml_cpu_has_riscv_vggml_cpu_has_smeggml_cpu_has_sse3ggml_cpu_has_ssse3ggml_cpu_has_sveggml_cpu_has_vsxggml_cpu_has_vxeggml_cpu_has_wasm_simdggml_cpu_mulggml_cpyggml_cyclesggml_cycles_per_msggml_default_mlpggml_denseggml_diagggml_diag_mask_infggml_diag_mask_inf_inplaceggml_diag_mask_zeroggml_divggml_div_inplaceggml_dupggml_dup_inplaceggml_dup_tensorggml_element_sizeggml_eluggml_elu_inplaceggml_embeddingggml_estimate_memoryggml_evaluateggml_expggml_exp_inplaceggml_extractggml_fitggml_fit_optggml_flash_attn_backggml_flash_attn_extggml_floorggml_floor_inplaceggml_freeggml_freeze_weightsggml_ftype_to_ggml_typeggml_gallocr_alloc_graphggml_gallocr_freeggml_gallocr_get_buffer_sizeggml_gallocr_newggml_gallocr_reserveggml_gegluggml_geglu_quickggml_geglu_splitggml_geluggml_gelu_erfggml_gelu_inplaceggml_gelu_quickggml_get_f32ggml_get_f32_ndggml_get_first_tensorggml_get_i32ggml_get_i32_ndggml_get_layerggml_get_max_tensor_sizeggml_get_mem_sizeggml_get_n_threadsggml_get_nameggml_get_next_tensorggml_get_no_allocggml_get_op_paramsggml_get_op_params_f32ggml_get_op_params_i32ggml_get_rel_posggml_get_rowsggml_get_rows_backggml_get_unary_opggml_gluGGML_GLU_OP_GEGLUGGML_GLU_OP_GEGLU_ERFGGML_GLU_OP_GEGLU_QUICKGGML_GLU_OP_REGLUGGML_GLU_OP_SWIGLUGGML_GLU_OP_SWIGLU_OAIggml_glu_splitggml_graph_computeggml_graph_compute_with_ctxggml_graph_dump_dotggml_graph_get_tensorggml_graph_n_nodesggml_graph_nodeggml_graph_overheadggml_graph_printggml_graph_resetggml_graph_viewggml_group_normggml_group_norm_inplaceggml_gruggml_hardsigmoidggml_hardswishggml_im2colggml_initggml_init_autoggml_injectggml_inputggml_is_availableggml_is_contiguousggml_is_contiguous_0ggml_is_contiguous_1ggml_is_contiguous_2ggml_is_contiguous_channelsggml_is_contiguous_rowsggml_is_contiguously_allocatedggml_is_permutedggml_is_quantizedggml_is_transposedggml_l2_normggml_l2_norm_inplaceggml_layer_addggml_layer_batch_normggml_layer_concatenateggml_layer_conv_1dggml_layer_conv_2dggml_layer_denseggml_layer_dropoutggml_layer_embeddingggml_layer_flattenggml_layer_global_average_pooling_2dggml_layer_global_max_pooling_2dggml_layer_gruggml_layer_lstmggml_layer_max_pooling_2dggml_leaky_reluggml_load_modelggml_load_weightsggml_logggml_log_inplaceggml_log_is_r_enabledggml_log_set_defaultggml_log_set_rggml_lstmggml_marshal_modelggml_meanggml_modelggml_model_backendggml_model_sequentialggml_mulggml_mul_inplaceggml_mul_matggml_mul_mat_idggml_n_dimsggml_nbytesggml_negggml_neg_inplaceggml_nelementsggml_new_f32ggml_new_i32ggml_new_tensorggml_new_tensor_1dggml_new_tensor_2dggml_new_tensor_3dggml_new_tensor_4dggml_normggml_norm_inplaceggml_nrowsggml_op_can_inplaceggml_op_descggml_op_nameGGML_OP_POOL_AVGGGML_OP_POOL_MAXggml_op_symbolggml_ops_registryggml_opt_allocggml_opt_context_optimizer_typeggml_opt_dataset_dataggml_opt_dataset_freeggml_opt_dataset_get_batchggml_opt_dataset_initggml_opt_dataset_labelsggml_opt_dataset_ndataggml_opt_dataset_shuffleggml_opt_dataset_weightsggml_opt_default_paramsggml_opt_epochggml_opt_evalggml_opt_fitggml_opt_freeggml_opt_get_lrggml_opt_grad_accggml_opt_initggml_opt_init_for_fitggml_opt_inputsggml_opt_labelsggml_opt_lossggml_opt_loss_type_cross_entropyggml_opt_loss_type_meanggml_opt_loss_type_mseggml_opt_loss_type_sumggml_opt_loss_type_weighted_mseggml_opt_ncorrectggml_opt_optimizer_nameggml_opt_optimizer_type_adamwggml_opt_optimizer_type_sgdggml_opt_outputsggml_opt_predggml_opt_prepare_allocggml_opt_resetggml_opt_result_accuracyggml_opt_result_freeggml_opt_result_initggml_opt_result_lossggml_opt_result_ndataggml_opt_result_predggml_opt_result_resetggml_opt_set_lrggml_opt_static_graphsggml_out_prodggml_padggml_pad_reflect_1dggml_permuteggml_pool_1dggml_pool_2dggml_pop_layerggml_predictggml_predict_classesggml_print_mem_statusggml_print_objectsggml_quant_block_infoggml_quantize_chunkggml_quantize_freeggml_quantize_initggml_quantize_requires_imatrixggml_regluggml_reglu_splitggml_reluggml_relu_inplaceggml_repeatggml_repeat_backggml_resetggml_reshape_1dggml_reshape_2dggml_reshape_3dggml_reshape_4dggml_resultggml_rms_normggml_rms_norm_backggml_rms_norm_inplaceggml_rollggml_ropeggml_rope_extggml_rope_ext_backggml_rope_ext_inplaceggml_rope_inplaceggml_rope_multiggml_rope_multi_inplaceGGML_ROPE_TYPE_MROPEGGML_ROPE_TYPE_NEOXGGML_ROPE_TYPE_NORMGGML_ROPE_TYPE_VISIONggml_roundggml_round_inplaceggml_runggml_save_modelggml_save_weightsggml_scaleggml_scale_inplaceGGML_SCALE_MODE_BICUBICGGML_SCALE_MODE_BILINEARGGML_SCALE_MODE_NEARESTggml_schedule_cosine_decayggml_schedule_reduce_on_plateauggml_schedule_step_decayggml_setggml_set_1dggml_set_2dggml_set_abort_callback_defaultggml_set_abort_callback_rggml_set_f32ggml_set_f32_ndggml_set_i32ggml_set_i32_ndggml_set_inputggml_set_n_threadsggml_set_nameggml_set_no_allocggml_set_omp_threadsggml_set_op_paramsggml_set_op_params_f32ggml_set_op_params_i32ggml_set_outputggml_set_paramggml_set_seedggml_set_zeroggml_sgnggml_sigmoidggml_sigmoid_inplaceggml_siluggml_silu_backggml_silu_inplaceggml_singgml_soft_maxggml_soft_max_extggml_soft_max_ext_backggml_soft_max_ext_back_inplaceggml_soft_max_ext_inplaceggml_soft_max_inplaceggml_softplusggml_softplus_inplaceGGML_SORT_ORDER_ASCGGML_SORT_ORDER_DESCggml_sqrggml_sqr_inplaceggml_sqrtggml_sqrt_inplaceggml_stepggml_subggml_sub_inplaceggml_sumggml_sum_rowsggml_swigluggml_swiglu_splitggml_tanhggml_tanh_inplaceggml_taskggml_tensor_copyggml_tensor_nbggml_tensor_numggml_tensor_overheadggml_tensor_set_f32_scalarggml_tensor_shapeggml_tensor_typeggml_testggml_time_initggml_time_msggml_time_usggml_timestep_embeddingggml_top_kggml_training_historyggml_transposeGGML_TYPE_BF16GGML_TYPE_F16GGML_TYPE_F32GGML_TYPE_I32ggml_type_nameGGML_TYPE_Q2_KGGML_TYPE_Q3_KGGML_TYPE_Q4_0GGML_TYPE_Q4_1GGML_TYPE_Q4_KGGML_TYPE_Q5_KGGML_TYPE_Q6_KGGML_TYPE_Q8_0ggml_type_sizeggml_type_sizefggml_unary_op_nameggml_unfreeze_weightsggml_unmarshal_modelggml_upscaleggml_used_memggml_versionggml_view_1dggml_view_2dggml_view_3dggml_view_4dggml_view_tensorggml_vulkan_availableggml_vulkan_backend_nameggml_vulkan_device_capsggml_vulkan_device_countggml_vulkan_device_descriptionggml_vulkan_device_memoryggml_vulkan_freeggml_vulkan_initggml_vulkan_is_backendggml_vulkan_list_devicesggml_vulkan_statusggml_win_partggml_win_unpartggml_with_temp_ctxggmlr_parsnip_fit_classifggmlr_parsnip_fit_regrgguf_freegguf_loadgguf_metadatagguf_tensor_datagguf_tensor_infogguf_tensor_namesiq2xs_free_impliq2xs_init_impliq3xs_free_impliq3xs_init_impllr_scheduler_cosinelr_scheduler_stepnn_topo_sortonnx_device_infoonnx_inputsonnx_loadonnx_runonnx_summaryoptimizer_adamoptimizer_sgdquantize_iq1_mquantize_iq1_squantize_iq2_squantize_iq2_xsquantize_iq2_xxsquantize_iq3_squantize_iq3_xxsquantize_iq4_nlquantize_iq4_xsquantize_mxfp4quantize_nvfp4quantize_q1_0quantize_q2_Kquantize_q3_Kquantize_q4_0quantize_q4_1quantize_q4_Kquantize_q5_0quantize_q5_1quantize_q5_Kquantize_q6_Kquantize_q8_0quantize_row_iq2_s_refquantize_row_iq3_s_refquantize_row_iq3_xxs_refquantize_row_iq4_nl_refquantize_row_iq4_xs_refquantize_row_mxfp4_refquantize_row_q2_K_refquantize_row_q3_K_refquantize_row_q4_0_refquantize_row_q4_1_refquantize_row_q4_K_refquantize_row_q5_0_refquantize_row_q5_1_refquantize_row_q5_K_refquantize_row_q6_K_refquantize_row_q8_0_refquantize_row_q8_1_refquantize_row_q8_K_refquantize_row_tq1_0_refquantize_row_tq2_0_refquantize_tq1_0quantize_tq2_0RunGGMLwith_grad_tape
Quickstart: from data to prediction in ~10 lines
Rendered fromquickstart.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-06-08
Keras-like API in ggmlR
Rendered fromkeras-like-api.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-04-13
Autograd Engine
Rendered fromautograd-engine.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-04-13
tidymodels / parsnip Integration
Rendered fromtidymodels-integration.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-04-13
mlr3 Integration
Rendered frommlr3-integration.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-04-13
GPU / Vulkan Backend
Rendered fromgpu-vulkan.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-04-13
Quantization
Rendered fromquantization.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-02-06
Data-Parallel Training
Rendered fromdata-parallel-training.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-04-13
ONNX Model Import
Rendered fromonnx-import.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-04-13
Using ggmlR as a Backend in Your Package
Rendered fromembedding-ggmlR.Rmdusingknitr::rmarkdownon Jun 14 2026.Last update: 2026-06-08
Started: 2026-04-13
