File size: 427 Bytes
757ff71
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from transformers import PretrainedConfig
from transformers.models.gemma3.configuration_gemma3 import Gemma3TextConfig

class OpenMythosConfig(Gemma3TextConfig):
    model_type = "open_mythos"
    
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        # Default config for 270m
        self.px_routing_mode = kwargs.get("px_routing_mode", "adaptive")
        self.px_gamma = kwargs.get("px_gamma", 0.10)