Skip to content

debug: functionality to dump full tensors and compare#21691

Open
pwilkin wants to merge 1 commit intoggml-org:masterfrom
pwilkin:debug-dump-tensors
Open

debug: functionality to dump full tensors and compare#21691
pwilkin wants to merge 1 commit intoggml-org:masterfrom
pwilkin:debug-dump-tensors

Conversation

@pwilkin
Copy link
Copy Markdown
Member

@pwilkin pwilkin commented Apr 9, 2026

Overview

Extracted from my Gemma BF16 experiments, changes to the debug / compare tensors functionality.

Additional information

This adds the following functionality:

  • support for (selective) full tensor dump for both llama-debug and the run-org-model.sh script
  • a script that compares the tensors pairwise using a "matching tensors" blueprint in YAML format

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: Yes, mostly for generating the python scripts

…-org-model and to compare tensors using a corresponding tensor pair map (gemma4 provided as an example)
@pwilkin pwilkin requested a review from danbev as a code owner April 9, 2026 18:38
@pwilkin pwilkin requested review from CISC and ngxson and removed request for ngxson April 9, 2026 18:39
@github-actions github-actions bot added examples python python script changes labels Apr 9, 2026
@am17an
Copy link
Copy Markdown
Contributor

am17an commented Apr 10, 2026

@pwilkin what about creating a "skill" which is debugging tensors from HF vs llama.cpp and identifying the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples python python script changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants