Repository navigation
Expand file tree
/
Copy pathty.toml
More file actions
115 lines (108 loc) · 3.35 KB
/
Copy pathty.toml
File metadata and controls
115 lines (108 loc) · 3.35 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# ty: type checking (https://github.com/astral-sh/ty)
# Default: permissive. Strict checks are opt-in per-file via overrides below.
# Phase 1 modules: launcher, attention, config, optim, loggers
# To advance to the next phase, move module paths from the "Phase 2" comment
# into the active overrides list and fix any new errors.
[environment]
python-version = "3.11"
[src]
include = ["nemo_automodel", "examples"]
exclude = [
"tests/**",
"nemo_automodel/components/checkpoint/_backports/**",
]
[analysis]
# Optional dependencies that ty cannot resolve in this env but are legitimately
# imported under try/except or feature gates. Keep this list narrow so that
# accidental stale imports (e.g. after a package reorg) are still surfaced.
allowed-unresolved-imports = [
"bitsandbytes",
"causal_conv1d",
"comet_ml",
"cut_cross_entropy",
"cut_cross_entropy.**",
"databricks",
"databricks.**",
"deep_ep",
"deep_ep.**",
"dion",
"dion.**",
"fast_hadamard_transform",
"ffpa_attn",
"ffpa_attn.**",
"fla.**",
"flash_attn",
"liger_kernel.**",
"lmdb",
"mamba_ssm.**",
"megatron.**",
"mlflow",
"mlflow.**",
"nemo_run",
"pynvml",
"sky",
"torch.distributed._mesh_layout",
"transformer_engine",
"transformer_engine.**",
"transformer_engine_torch",
"transformers.tokenization_utils",
"triton",
"triton.**",
"uccl",
"uccl.**",
"wandb",
"wandb.**",
]
[rules]
unused-ignore-comment = "warn"
possibly-missing-attribute = "ignore"
# Phase 1: small, well-typed, leaf-dependency modules
[[overrides]]
include = [
"nemo_automodel/components/attention/**",
"nemo_automodel/components/_peft/**",
"nemo_automodel/components/datasets/audio/collate_fns.py",
"nemo_automodel/components/config/**",
"nemo_automodel/components/flow_matching/**",
"nemo_automodel/components/launcher/**",
"nemo_automodel/components/loggers/**",
"nemo_automodel/components/moe/load_balance_metrics.py",
"nemo_automodel/components/optim/**",
"nemo_automodel/components/utils/**",
"nemo_automodel/components/quantization/**",
"nemo_automodel/components/training/**",
"nemo_automodel/components/distributed/config.py",
"nemo_automodel/components/distributed/grad_utils.py",
"nemo_automodel/components/distributed/init_utils.py",
"nemo_automodel/components/distributed/tensor_utils.py",
"nemo_automodel/components/distributed/utils.py",
"nemo_automodel/components/eval/tool_call_evaluator.py",
"nemo_automodel/components/loss/kd_loss.py",
"nemo_automodel/components/datasets/reservoir_sampler.py",
"nemo_automodel/components/datasets/lazy_mapped_dataset.py",
]
[overrides.rules]
# Stricter checking for Phase 1 modules
possibly-unresolved-reference = "error"
unresolved-import = "error"
# Phase 2 (uncomment when ready):
# [[overrides]]
# include = [
# "nemo_automodel/components/loss/**",
# "nemo_automodel/components/quantization/**",
# ]
#
# [overrides.rules]
# possibly-unresolved-reference = "error"
# unresolved-import = "error"
# Phase 3 (uncomment when ready):
# [[overrides]]
# include = [
# "nemo_automodel/components/training/**",
# "nemo_automodel/components/distributed/**",
# "nemo_automodel/components/utils/**",
# ]
#
# [overrides.rules]
# possibly-unresolved-reference = "error"
# unresolved-import = "error"