Index of every page on this site: llms.txt
All skills
openvinotoolkit avatar

/ov-gguf

@993f33e
Run it yourself

Develop and troubleshoot the OpenVINO GGUF frontend (src/frontends/gguf) and the llama.cpp ggml-openvino backend that uses it. Use when checking whether a .gguf or mmproj model is supported; when a .gguf file is rejected as an unsupported architecture; when enabling a llama.cpp model family (llama, qwen, gemma, phi, MoE, hybrid/recurrent) through arch_registry, DecoderBuilder, a ModelBuilder or an ArchitectureExtension; when adding a vision/audio projector or ProjectorExtension; when conversion fails with "Translation for operation type GGML_OP_* is not implemented" or an op translator/op_case in src/op/ needs work; when making a converted model stateful or GenAI/PagedAttention-ready; or when a GGUF model converts but gives garbage, drifting tokens, a llama.cpp mismatch or a decode-only shape failure; or when running or resuming GGUF frontend, backend and GenAI validation batches. Not for general llama.cpp usage or unrelated build/CI failures.

Use this Skill: https://skilld.dev/gh/openvinotoolkit/openvino/ov-gguf

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencespreflight.md

≈1.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Executable validation preflight

Use these helpers for repeated batches or fragile overlays, alongside the existing test harness. They check coverage and link inputs; numerical gates remain in the tests. Save every attempt outside the checkout. Run scripts with Python 3.9 or newer. In the examples, skill_scripts points to this skill's scripts/ directory and validation_reports to the task's artifact directory outside the checkout.

Compiler warning policy

Match the relevant CI warning configuration when compiling changed frontend code and tests, including CMAKE_COMPILE_WARNING_AS_ERROR where enabled. Record the compiler and effective flags; a successful run on one toolchain does not establish another's buildability. Brace conditional assertion macros and use checked or known-safe integer conversions in tensor writes.

Test selection and required fixtures

Capture --gtest_list_tests from the actual binary with the same filter and environment as the subsequent run. Check its exit code before using the listing. Define a contract with exact IDs or glob patterns (*, ?, [abc]), required counts and absolute fixture paths:

Example contract; replace the patterns, counts and paths with the requested scenarios:

{
  "selections": [
    {"pattern": "*", "count": 2},
    {"pattern": "DecoderChecks.PrefillAndCachedDecode", "count": 1},
    {"pattern": "EmbeddingChecks.TokenLookup", "count": 1}
  ],
  "required_files": ["/task/fixtures/decoder.npz"],
  "allowed_skips": []
}

Use counts established from the requested scenarios, not counts copied from an incomplete listing. Include a * selection when the total must be exact. Overlapping selections are independent checks. Allowed skips apply only to optional coverage; required scenarios that skip remain incomplete. File presence does not establish fixture validity or model identity.

python "$skill_scripts/check_test_coverage.py" --contract "$validation_reports/coverage.json" \
    --listing "$validation_reports/selected-tests.txt" --output "$validation_reports/preflight.json"

After execution, retain the test process exit code and summarize its XML using the helper from this skill revision. The JSON includes selected IDs, excluding suppressed/notrun cases. GTest IDs are classname.name; pytest IDs use the XML's corresponding names.

python "$skill_scripts/summarize_tests.py" "$validation_reports/tests.xml" \
    --output "$validation_reports/test-summary.json" --process-exit 0
python "$skill_scripts/check_test_coverage.py" --contract "$validation_reports/coverage.json" \
    --listing "$validation_reports/selected-tests.txt" --summary "$validation_reports/test-summary.json" \
    --output "$validation_reports/coverage-result.json"

Replace 0 with the recorded process exit code. Summary-only checks can be used for pytest with contracts derived from its XML IDs. With both inputs, listed and executed ID multisets must match. Missing cases, duplicate cases, unexpected skips, suite/test failures and missing or nonzero process status fail the coverage check. It does not replace runtime identity or prove that a stale XML file belongs to the attempt: use unique paths and preserve input hashes.

Overlay link inputs

Prefer normal CMake/Ninja targets. If an overlay is necessary, save its actual single compiler-driver link command using POSIX shell quoting in a text file. List the required replacement objects and superseded objects that must be absent:

{
  "required_objects": ["/task/overlay/translation-unit.o"],
  "forbidden_objects": ["/task/base/translation-unit.o"]
}
python "$skill_scripts/audit_link.py" --command-file "$validation_reports/link-command.txt" \
    --directory /task/build --contract "$validation_reports/link-contract.json" \
    --output "$validation_reports/link-audit.json"

The helper reads but never executes the command. It expands response files relative to the link working directory, canonicalizes object paths, rejects duplicate/missing/forbidden objects and refuses shell command sequences or unresolved shell expansions (parameters, globs, braces and tildes). Record expanded arguments; the helper never evaluates shell expressions. Single-quote or escape literal shell characters, for example '$ORIGIN' in a linker rpath. Response-file contents are parsed as literal arguments without shell expansion. Supply the inner compiler command when a wrapper prints cd ... && ...; do not pass a build script. Full findings stay in JSON; the printed summary is bounded. A passing link audit does not prove objects are freshly compiled, dependency-complete or present inside archives. Rebuild all translation units affected by headers/macros using build dependencies, then verify new case registration and runtime identity separately.

Both checks return nonzero on violated contracts or malformed inputs. The XML summarizer returns parsing status only. Exercise the helpers with:

python -m unittest discover -s "$skill_scripts/tests" -v

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning25d3 checks · Risk MEDIUM
  • Gen Agent Trust Hub25d

    The skill provides specialized tools for OpenVINO GGUF development, such as process memory mapping and test result aggregation. While legitimate in its technical purpose, it contains a security concern in the test summarization utility, which uses an XML parser that is susceptible to XML External Entity (XXE) attacks if used with untrusted data.

  • Socket25d

    No alerts

  • Snyk25d

    Risk: LOW · No issues

Signed by skilld at 993f33e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 14 hours ago.

Activeupdated 4 weeks ago

README badge

README badge for openvinotoolkit/openvino/ov-gguf