Commit 4271c9c
committed
fix(examples): address PR #1176 review feedback
- Fix module docstring in conversation_utils.py: clarify that
user_suffix augmentations apply to all user turns, not just the last
- Map developer role to system in normalize_messages() to preserve
developer instructions rather than silently dropping them
- Raise ValueError instead of warning+return when combined dataset
is empty in make_nemotron_ptv3_dataset.py
- Re-raise all exceptions in query.py LLM.generate() so datasets.map()
halts on any failure (not only connection errors)
- Make tool role explicit in synthesize(); raise ValueError for truly
unknown roles to catch typos/unsupported roles early
- Fix local file format detection in query.py: use "parquet" loader for
.parquet files instead of hardcoded "json"
- Replace eval with direct argv in query.sh to eliminate shell injection
Signed-off-by: chenhany <chenhany@nvidia.com>1 parent 663d0e1 commit 4271c9c
4 files changed
Lines changed: 17 additions & 15 deletions
File tree
- examples/dataset
- tools/launcher/common
- vllm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
| 274 | + | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 83 | + | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
| |||
168 | 165 | | |
169 | 166 | | |
170 | 167 | | |
171 | | - | |
172 | | - | |
173 | | - | |
| 168 | + | |
| 169 | + | |
174 | 170 | | |
| 171 | + | |
| 172 | + | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
| |||
185 | 183 | | |
186 | 184 | | |
187 | 185 | | |
188 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 122 | + | |
| 123 | + | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
0 commit comments