Skip to content

Can't quantize nemotron 3.5 #2045

Description

@supersimple33

System Info

Hello when trying to quantize nemotron 3.5 lightning the model barely reduces in size and it seems most is still saved in bf16. (version 0.50.1 running on fedora with a100s) [transformer 5.15.0, torch 2.13)

Reproduction

    tokenizer = AutoTokenizer.from_pretrained(nemo_dir)
    model = AutoModelForCausalLM.from_pretrained(
        nemo_dir,
        quantization_config=quant_config,
    )

    model.save_pretrained(
        quantized_output_dir,
        safe_serialization=True,
    ) # the output here is only roughly 3GB less 

Expected behavior

The model should be at least half the size

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions