Skip to content

[Feature Request] Support for TEQ #84

Closed as not planned
Closed as not planned

Description

@shauryr

As mentioned in this paper - TEQ: Trainable Equivalent Transformation for Quantization of LLMs.
The authors of this paper are claiming - "The training process is lightweight, requiring only 1K steps and less than 1‰ of the original model’s trainable parameters."

Is this in the pipeline? It would be great if unsloth can support this.

https://arxiv.org/pdf/2310.10944.pdf

https://github.com/intel/neural-compressor

Thank you for building this awesome library!

Activity

  1. danielhanchen commented on Jan 12, 2024

    @danielhanchen
    Member

    @shauryr Interesting I'll take a read of TEQ! I've actually been looking also at HQQ as well :)

  2. added
    feature request
    on Jan 27, 2024
  3. changed the title [-]feature request: Support for TEQ[/-] [+][Feature Request] Support for TEQ[/+] on Oct 9, 2024
  4. self-assigned this
    on Oct 9, 2026
  5. danielhanchen commented on Oct 9, 2026

    @danielhanchen
    Member

    Thanks for the suggestion, and sorry on the delay! We've decided not to add TEQ. It is only implemented in Intel Neural Compressor, and models quantized with it can't be loaded or served by transformers, vLLM or llama.cpp, so it doesn't fit the fine-tune then deploy flow most users follow.

    The same Intel team has since moved on to AutoRound (https://github.com/intel/auto-round), which also learns a lightweight transform during calibration and exports to AutoRound, GPTQ, AWQ and GGUF formats supported by transformers, vLLM and SGLang. You can run it on a model you fine-tuned and merged with Unsloth. Unsloth also supports quantization-aware training through torchao via qat_scheme in FastLanguageModel.from_pretrained.

    Closing as not planned, but feel free to reopen if you have a use case that needs TEQ specifically.

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

Metadata

Metadata

Assignees

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions