ggml

ggml is a skill for Claude Code from datathings/marketplace. It costs 42 tokens per session (1,463 once invoked), scanned A, original, Apache-2.0.

A C library for tensor computations, the mathematical operations used by machine-learning models. It supports model inference and training, hardware backends, quantization, computation graphs, and GGUF model files.

In plain words
What is it for?
Use it when working with ggml graphs, GGUF files, quantized models, backend scheduling, or machine-learning operations in C or C++.
Why use it?
It provides low-level building blocks for running or training machine-learning models with controlled memory and hardware use.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ggml plugin — 1 skill shipped together

Good fit Use it when working with ggml graphs, GGUF files, quantized models, backend scheduling, or machine-learning operations in C or C++.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/datathings/marketplace/ggml
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add datathings/marketplace --skill ggml
Clone the repo
git clone --depth 1 https://github.com/datathings/marketplace

Made for: Claude Code.

Or install ggml, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ggml

README.md
[![agentmods](https://agentmods.dev/badge/skills/datathings/marketplace/ggml/github.svg)](https://agentmods.dev/skills/datathings/marketplace/ggml)
Your own site
<a href="https://agentmods.dev/skills/datathings/marketplace/ggml"><img src="https://agentmods.dev/badge/skills/datathings/marketplace/ggml/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ggml

Your own site · 80×15
<a href="https://agentmods.dev/skills/datathings/marketplace/ggml"><img src="https://agentmods.dev/badge/skills/datathings/marketplace/ggml.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,463 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01463
Opus 5 $0.00021 $0.00732
Sonnet 5 $0.00008 $0.00293
Haiku 4.5 $0.00004 $0.00146

Measured 9d ago against content hash c73f2d68a6f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ggml scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ggml/skills/ggml/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ggml

Overview

ggml is a minimalistic C tensor computation library powering llama.cpp and many other ML inference engines. It provides:

  • A define-and-run computation graph model (similar to TensorFlow 1.x)
  • CPU, CUDA, Metal, Vulkan, WebGPU, and other hardware backends
  • 35+ quantization formats (Q4_0, Q8_0, Q5_K, MXFP4, NVFP4, TQ1_0, Q1_0, etc.)
  • GGUF binary file format for model weights and metadata
  • Automatic differentiation and AdamW/SGD optimizers
  • Zero runtime allocations — all memory is pre-reserved

Version: v0.15.3 Language: C (C++ optional) License: MIT Repo: https://github.com/ggml-org/ggml

Quick Start

#include "ggml.h"
#include "ggml-cpu.h"
#include "ggml-backend.h"

int main(void) {
    struct ggml_init_params params = {
        .mem_size   = 64 * 1024 * 1024,  // 64 MB scratch buffer
        .mem_buffer = NULL,
        .no_alloc   = false,
    };
    struct ggml_context * ctx = ggml_init(params);

    struct ggml_tensor * a = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 4);
    struct ggml_tensor * b = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 4);
    struct ggml_tensor * c = ggml_add(ctx, a, b);

    struct ggml_cgraph * gf = ggml_new_graph(ctx);
    ggml_build_forward_expand(gf, c);

    ggml_backend_t backend = ggml_backend_cpu_init();
    ggml_backend_graph_compute(backend, gf);

    ggml_backend_free(backend);
    ggml_free(ctx);
    return 0;
}

Core Concepts

  • ggml_context — memory pool that owns all tensors; freed all at once
  • ggml_tensor — N-D array (max 4 dims); stores type, shape, strides, and a data pointer
  • ggml_cgraph — lazy computation graph; ops are recorded then executed via a backend
  • ggml_backend_t — execution engine (CPU, CUDA, Metal, …); use ggml_backend_load_all() to discover available hardware
  • ggml_backend_sched_t — multi-device scheduler that splits a graph across backends automatically
  • GGUF — binary model format: metadata key-value store + packed tensor data

Read the full file on GitHub · 102 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 102 lines · 42 tokens per session scan A c73f2d68a6f8

Subscribe to this mod's changes

ggml is a skill published in the GitHub repository datathings/marketplace (11 stars, last pushed 12d ago), licensed Apache-2.0. It adds 42 tokens to every session and 1,463 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.