forked from NVIDIA-NeMo/RL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyrefly.toml
More file actions
139 lines (136 loc) · 6.7 KB
/
pyrefly.toml
File metadata and controls
139 lines (136 loc) · 6.7 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
python-version = "3.12.0"
replace-imports-with-any = [
"nemo_automodel.*",
"pynvml.*",
"hydra._internal.*",
"hydra.core.override_parser.*",
"datasets.*",
"transformers.*",
"vllm.*",
"math_verify.*",
"sympy.*",
"torchdata.*",
"nemo.*",
"megatron.*",
"ray.*",
"numpy.*",
"sphinx.*",
"docutils.*",
]
project-includes = [
# TODO: enable these once we have 100 correctness
#"nemo_rl/**/*.py",
#"examples/**/*.py",
#"docs/*.py",
#"tools/**/*.py",
# Generate the list of errors per file
# uv run --group dev pyrefly check $(git ls-files 'nemo_rl/**/*.py' 'examples/**/*.py' 'docs/*.py' 'tools/**/*.py') --output-format json | jq -r --slurpfile all_files <(git ls-files 'nemo_rl/**/*.py' 'examples/**/*.py' 'docs/*.py' 'tools/**/*.py' | jq -R -s 'split("\n")[:-1]') --arg pwd "$(pwd)/" '(.errors | group_by(.path) | map({(.[0].path | sub($pwd; "")): length}) | add // {}) as $error_counts | $all_files[0][] | . as $file | "\($error_counts[$file] // 0)\t\($file)"' | sort -n
# Generate list of files with 0 errors
# uv run --group dev pyrefly check $(git ls-files 'nemo_rl/**/*.py' 'examples/**/*.py' 'docs/*.py' 'tools/**/*.py') --output-format json | jq -r --slurpfile all_files <(git ls-files 'nemo_rl/**/*.py' 'examples/**/*.py' 'docs/*.py' 'tools/**/*.py' | jq -R -s 'split("\n")[:-1]') --arg pwd "$(pwd)/" '(.errors | group_by(.path) | map({(.[0].path | sub($pwd; "")): length}) | add // {}) as $error_counts | $all_files[0][] | . as $file | if ($error_counts[$file] // 0) == 0 then $file else empty end'
# uv run --group dev pyrefly check $(git ls-files 'nemo_rl/**/*.py' 'examples/**/*.py' 'docs/*.py' 'tools/**/*.py') --output-format json | jq -r --slurpfile all_files <(git ls-files 'nemo_rl/**/*.py' 'examples/**/*.py' 'docs/*.py' 'tools/**/*.py' | jq -R -s 'split("\n")[:-1]') --arg pwd "$(pwd)/" '(.errors | group_by(.path) | map({(.[0].path | sub($pwd; "")): length}) | add // {}) as $error_counts | $all_files[0][] | . as $file | if ($error_counts[$file] // 0) == 0 then " \"\($file)\"," else empty end'
"docs/conf.py",
"docs/helpers.py",
"examples/converters/convert_dcp_to_hf.py",
"examples/converters/convert_megatron_to_hf.py",
"examples/custom_parallel/custom_parallel.py",
"examples/custom_parallel/llama_nemotron_super_49b_custom_plan.py",
"nemo_rl/algorithms/__init__.py",
"nemo_rl/algorithms/advantage_estimator.py",
"nemo_rl/algorithms/interfaces.py",
"nemo_rl/algorithms/reward_functions.py",
"nemo_rl/algorithms/utils.py",
"nemo_rl/data/__init__.py",
"nemo_rl/data/chat_templates.py",
"nemo_rl/data/collate_fn.py",
"nemo_rl/data/datasets/__init__.py",
"nemo_rl/data/datasets/eval_datasets/__init__.py",
"nemo_rl/data/datasets/eval_datasets/aime.py",
"nemo_rl/data/datasets/eval_datasets/gpqa.py",
"nemo_rl/data/datasets/eval_datasets/local_math_dataset.py",
"nemo_rl/data/datasets/eval_datasets/math.py",
"nemo_rl/data/datasets/eval_datasets/mmlu.py",
"nemo_rl/data/datasets/eval_datasets/mmlu_pro.py",
"nemo_rl/data/datasets/preference_datasets/__init__.py",
"nemo_rl/data/datasets/preference_datasets/binary_preference_dataset.py",
"nemo_rl/data/datasets/preference_datasets/helpsteer3.py",
"nemo_rl/data/datasets/preference_datasets/preference_dataset.py",
"nemo_rl/data/datasets/preference_datasets/tulu3.py",
"nemo_rl/data/datasets/processed_dataset.py",
"nemo_rl/data/datasets/raw_dataset.py",
"nemo_rl/data/datasets/response_datasets/__init__.py",
"nemo_rl/data/datasets/response_datasets/aime24.py",
"nemo_rl/data/datasets/response_datasets/clevr.py",
"nemo_rl/data/datasets/response_datasets/dapo_math.py",
"nemo_rl/data/datasets/response_datasets/deepscaler.py",
"nemo_rl/data/datasets/response_datasets/geometry3k.py",
"nemo_rl/data/datasets/response_datasets/helpsteer3.py",
"nemo_rl/data/datasets/response_datasets/nemogym_dataset.py",
"nemo_rl/data/datasets/response_datasets/oai_format_dataset.py",
"nemo_rl/data/datasets/response_datasets/oasst.py",
"nemo_rl/data/datasets/response_datasets/openmathinstruct2.py",
"nemo_rl/data/datasets/response_datasets/refcoco.py",
"nemo_rl/data/datasets/response_datasets/response_dataset.py",
"nemo_rl/data/datasets/response_datasets/squad.py",
"nemo_rl/data/datasets/response_datasets/tulu3.py",
"nemo_rl/data/datasets/utils.py",
"nemo_rl/data/interfaces.py",
"nemo_rl/data/multimodal_utils.py",
"nemo_rl/data/packing/__init__.py",
"nemo_rl/data/processors.py",
"nemo_rl/distributed/__init__.py",
"nemo_rl/distributed/collectives.py",
"nemo_rl/distributed/named_sharding.py",
"nemo_rl/distributed/ray_actor_environment_registry.py",
"nemo_rl/distributed/virtual_cluster.py",
"nemo_rl/distributed/worker_group_utils.py",
"nemo_rl/environments/__init__.py",
"nemo_rl/environments/code_jaccard_environment.py",
"nemo_rl/environments/games/sliding_puzzle.py",
"nemo_rl/environments/interfaces.py",
"nemo_rl/environments/math_environment.py",
"nemo_rl/environments/metrics.py",
"nemo_rl/environments/rewards.py",
"nemo_rl/environments/utils.py",
"nemo_rl/environments/vlm_environment.py",
"nemo_rl/evals/__init__.py",
"nemo_rl/evals/answer_parsing.py",
"nemo_rl/experience/__init__.py",
"nemo_rl/experience/rollouts.py",
"nemo_rl/models/__init__.py",
"nemo_rl/models/automodel/__init__.py",
"nemo_rl/models/dtensor/__init__.py",
"nemo_rl/models/dtensor/parallelize.py",
"nemo_rl/models/generation/__init__.py",
"nemo_rl/models/generation/interfaces.py",
"nemo_rl/models/generation/sglang/__init__.py",
"nemo_rl/models/generation/sglang/config.py",
"nemo_rl/models/generation/vllm/__init__.py",
"nemo_rl/models/generation/vllm/config.py",
"nemo_rl/models/generation/vllm/quantization/fp8_train_utils.py",
"nemo_rl/models/generation/vllm/utils.py",
"nemo_rl/models/generation/vllm/vllm_backend.py",
"nemo_rl/models/huggingface/__init__.py",
"nemo_rl/models/megatron/__init__.py",
"nemo_rl/models/policy/__init__.py",
"nemo_rl/models/policy/interfaces.py",
"nemo_rl/models/policy/utils.py",
"nemo_rl/models/policy/workers/__init__.py",
"nemo_rl/models/policy/workers/patches.py",
"nemo_rl/utils/__init__.py",
"nemo_rl/utils/automodel_checkpoint.py",
"nemo_rl/utils/checkpoint.py",
"nemo_rl/utils/config.py",
"nemo_rl/utils/native_checkpoint.py",
"nemo_rl/utils/nsys.py",
"nemo_rl/utils/nvml.py",
"nemo_rl/utils/packed_tensor.py",
"nemo_rl/utils/prefetch_venvs.py",
"nemo_rl/utils/timer.py",
"nemo_rl/utils/venvs.py",
"tools/model_diagnostics/1.max_model_len_respected.py",
"tools/model_diagnostics/2.long_generation_decode_vs_prefill.py",
"tools/model_diagnostics/4.vllm_precision_compilation_test.py",
]
# Disable TypedDict mutation errors since TypedDict objects are regular dicts at runtime
[errors]
missing-attribute = false