MCPcopy Create free account
hub / github.com/ScalingIntelligence/tokasaurus / ExtraModelConfig

Class ExtraModelConfig

tokasaurus/model/types.py:492–508  ·  view source on GitHub ↗

For flags that we define that aren't in the hf config.

Source from the content-addressed store, hash-verified

490
491@dataclass
492class ExtraModelConfig:
493 """
494 For flags that we define that aren't in the hf config.
495 """
496
497 pp_size: int = 1
498 tp_size: int = 1
499 pp_rank: int = 0
500 tp_rank: int = 0
501 tp_group: dist.ProcessGroup | None = None
502
503 torch_compile: bool = False
504
505 rope_scaling: dict | None = None
506
507 enable_chosen_logprobs: bool = True
508 topk_logprobs: int | None = None

Callers 2

make_modelFunction · 0.90
from_pretrainedMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected