-
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy path__init__.py
More file actions
41 lines (31 loc) · 984 Bytes
/
Copy path__init__.py
File metadata and controls
41 lines (31 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""Wizard package for interactive training configuration.
Re-exports public API for backward compatibility. Imports are lazy so submodules
like ``config_store`` can load without pulling Rich/questionary (used by tests and
lightweight callers).
"""
from __future__ import annotations
from typing import Any
__all__ = [
"wizard_main",
"WizardConstants",
"TrainingMethod",
"ModelSpecs",
"get_wizard_device_info",
"detect_datasets",
]
def __getattr__(name: str) -> Any:
if name == "wizard_main":
from gemma_tuner.wizard.runner import wizard_main
return wizard_main
if name in (
"WizardConstants",
"TrainingMethod",
"ModelSpecs",
"detect_datasets",
"get_wizard_device_info",
):
from gemma_tuner.wizard import base
return getattr(base, name)
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
def __dir__() -> list[str]:
return sorted(__all__)