MCPcopy Create free account
hub / github.com/AlmondGod/tinyworlds / InferenceConfig

Class InferenceConfig

utils/config.py:292–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290
291@dataclass
292class InferenceConfig:
293 video_tokenizer_path: Optional[str]
294 latent_actions_path: Optional[str]
295 dynamics_path: Optional[str]
296 device: str
297 generation_steps: int
298 context_window: int
299 fps: int
300 temperature: float
301 use_actions: bool
302 teacher_forced: bool
303 use_latest_checkpoints: bool
304 prediction_horizon: int
305 dataset: str
306 use_gt_actions: bool
307 # Inference performance options
308 amp: bool
309 tf32: bool
310 compile: bool
311 # Interactive mode (user enters action ids)
312 use_interactive_mode: bool
313 preload_ratio: Optional[float] = None
314
315
316def load_config(config_cls, default_config_path: Optional[str] = None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected