8000 Several Issues about the quantize.py · Issue #8 · eladhoffer/utils.pytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Several Issues about the quantize.py #8
Open
@FassyGit

Description

@FassyGit

Thanks for composing this code, I am using quantize.py to quantize my model.
And I meet the following issues:

  1. model.register_buffer(n, p): string n cannnot include '.', so I replce all the '.' with '_'. then problem solved.
    2.q_x.scale * (q_x.tensor.float() - q_x.zero_point): Maybe before quantization, the bytetensor should be converted to float tensor?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0