BitNet3-8B-Converted / configuration_bitnet.py
ejbejaranos's picture
Upload folder using huggingface_hub
4d061f7 verified
raw
history blame contribute delete
282 Bytes
from transformers import PretrainedConfig
class BitNetConfig(PretrainedConfig):
model_type = "bitnet"
def __init__(self, weight_bits=1, input_bits=8, **kwargs):
super().__init__(**kwargs)
self.weight_bits = weight_bits
self.input_bits = input_bits