Skip to content

Show TopK Diff in detailed example analysis #17

@bhoov

Description

@bhoov

image

Should also allow Top-10 Diff, corresponding to the search results

image

It is returned as part of the following packet:

    return {
        "text": text,
        "tokens": tokens,
        "m1": {
            ...
        },
        "m2": {
            ...
        },
        "diff": {
            "rank": ...,
            "prob": ...,
            "rank_clamp": ...,
            "topk": topk_token_diff(
                parsed_output1.topk_token_ids.tolist(),
                parsed_output2.topk_token_ids.tolist(),
            ),
        },

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions