• Nicolas Patry's avatar
    feat(server): Support for env value for GPTQ_BITS and GPTQ_GROUPSIZE. (#580) · 5bd2ab65
    Nicolas Patry authored
    # What does this PR do?
    
    Some models are already converted, and do not have those values in the
    file, this enables users to use them with less friction.
    
    Went for pure env based because adding flags would end up (imo) very
    tedious to maintain. There's a lot of sanitation to do: those flags
    would be errors if not used in conjuction with `--quantize gptq`.
    Then the flags need to exist in the launcher and the server passing them
    all throughout all function calls.
    
    This PR is intended as an easy escape hatch, not the defacto method to
    use gptq in TGI.
    
    Fixes #500
    5bd2ab65
weights.py 5.91 KB