Unused kwargs: ['bnb_8bit_quant_type', 'bnb_8bit_use_double_quant', 'bnb_8bit_compute_dtype'] when using bnb quantization? These kwargs are not used in <class 'transformers.utils.quantization_config.BitsAndBytesConfig'>
Author: JohnConnor123
Pull request: no
Labels: name: bug

### System Info

OS: ubuntu 24.10
python: 3.12
ctransformers: 0.2.27

P.s. All dependencies:
```
[tool.poetry.dependencies]
python = "^3.12"
autoawq = "^0.2.7.post3"
evaluate = "^0.4.3"
rouge-score = "^0.1.2"
ctransformers = "^0.2.27"
gguf = "^0.13.0"
llama-cpp-python = "^0.3.5"
ctranslate2 = "^4.5.0"
exllamav2 = "^0.2.7"
bitsandbytes = "^0.45.0"
```

Why do I get 
```
Unused kwargs: ['bnb_8bit_quant_type', 'bnb_8bit_use_double_quant', 'bnb_8bit_compute_dtype'] when using bnb quantization? These kwargs are not used in <class 'transformers.utils.quantization_config.BitsAndBytesConfig'>.
```
although others use these parameters and everything is fine for them (see screenshot)? Are these outdated settings? If so, can you provide a link to a post with information about removing these parameters?

![image](https://github.com/user-attachments/assets/000ab512-052d-44cc-8422-c9bc33839ea2)



### Who can help?

@MekkCyber

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [X] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction
```
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig

def quantize_bnb(model_id: str, quant_config: dict) -> None:
    quantization_config = BitsAndBytesConfig(**quant_config)

    model = AutoModelForCausalLM.from_pretrained(
        model_id,
        quantization_config=quantization_config,
        torch_dtype="auto",
    )

    model.push_to_hub(
        model_id.split('/')[1] + 
        f"-BNB-{8 if ('load_in_8bit' in quant_config and quant_config['load_in_8bit'] == True) else 4}bit", 
        parent_model=model_id, tags='bnb', model_card='quantization'
    )


if __name__ == "__main__":
    model_id = "bigscience/bloom-560m"
    bnb_config = {
        "load_in_8bit": True,  # 8-bit quantization
        "bnb_8bit_quant_type": 'nf8',  # Normalized float 8
        "bnb_8bit_use_double_quant": True,  # Second quantization after the first
        "bnb_8bit_compute_dtype": 'bfloat16',  # Computation type
    }

    quantize_bnb(model_id=model_id, quant_config=bnb_config)
```

### Expected behavior

I expect not to see this warning

Comments:
cc @MekkCyber @SunMarc 

Thanks for the report  ! Would you like to have a look @MekkCyber ? I think that we either need to remove those kwargs or change it to info level instead 

> Thanks for the report ! Would you like to have a look @MekkCyber ? I think that we either need to remove those kwargs or change it to info level instead

What is the reason for this behavior? Are these parameters deprecated or what?

Hey @JohnConnor123, I can't find any official mention of these kwargs in any previous commit, double quant, quant type and compute dtype are only specified for 4-bit not 8-bit

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.