dsir-wiki-ja-5k / config.py
minato-ryan's picture
Update config.py
2618a43 verified
from typing import Literal
from transformers import PretrainedConfig
class DSIRConfig(PretrainedConfig):
model_type = "dsir"
is_composition = False
def __init__(
self,
n: int = 2,
num_buckets: int = 10_000,
laplace_smoothing: float = 1e-4,
**kwargs
):
super().__init__(**kwargs)
self.n = n
self.num_buckets = num_buckets
self.laplace_smoothing = laplace_smoothing