Scenario
A tracker flag that stopped the run at start
RolesInference EngineeringAI Evaluation and ReliabilityLLM Product Engineering
- Engine
- Miles main 08752a12 with its own SGLang 0.5.22 build
- Model
- Qwen/Qwen3-0.6B
- Hardware
- one GB10 with 128 GB of unified memory
Situation
A team has read its first runs from the log with grep. For the first long run they want a dashboard, so they add --use-wandb --wandb-mode offline --wandb-project miles-lab to the run's extra arguments. The run stops at start with a TypeError about NoneType and str. No step line was written.
One teammate blames the image and wants the tracker removed for good. Another wants to paste the team's API key into the extra arguments to force an online run, because "offline mode is what broke it".
Questions
- What kind of bug produces this
TypeError, and what does it tell you about the GPU, the engine and the image? - Which flag was missing, and which two log signs show that the tracker then worked?
- The teammate wants to paste the API key into the run arguments. Name two places where that key would then appear.
- Which tracker needs no account and no network, and what does it need instead?
- The team now has a dashboard. What do they keep as well, and why?
Commit to a cause after each listing. Write it down before you read the next one.
Evidence
the run with the tracker on and no group name
The error type and the two operand types.
## wandb without --wandb-group (wandb-tb.log)
~~~~~~~~~~~~~~~~~^~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'Source: manuals/miles-101/capture/gpu/out-gb10/tracker-eval-checks.txt, lines 2-4
the same run with a group name
The run reached step 0 and step 1, and the tracker wrote offline runs.
## wandb with --wandb-group plain (wandb-check.log): step 0: step 1:
W&B offline mode enabled. Data will be saved locally.
debug-internal.log debug.log latest-run offline-run-20261023_034138-mu59u570 offline-run-20261023_034200-mu59u570 offline-run-20261023_034203-mu59u570 Source: manuals/miles-101/capture/gpu/out-gb10/tracker-eval-checks.txt, lines 5-7
the same run with the other tracker
The log line and the two event files.
## tensorboard (tb-check.log): step 0: step 1:
Saving tensorboard log to /root/lab/runs/plain/tb.
events.out.tfevents.1792727435.c56e30506501.2042.0
events.out.tfevents.1792727457.c56e30506501.2515.0Source: manuals/miles-101/capture/gpu/out-gb10/tracker-eval-checks.txt, lines 8-11
the tracker flags the manual uses, and the rule about the group
The last line names the error you see without the group.
-e MILES_EXTRA_ARGS="--use-wandb --wandb-mode offline --wandb-project miles-lab --wandb-group plain --wandb-dir /root/lab/runs/plain/wandb"
```
Keep `--wandb-group`. Without it, the run stops at start with `TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'`. The log should show `W&B offline mode enabled. Data will be saved locally.`, and an `offline-run-` folder appears under `~/miles-lab/runs/plain/wandb/wandb/`.Source: manuals/miles-101/sections/5-1-read-the-run.md, lines 41-44
where the key for an online run goes
The launcher prints the full command in the log, so the key must not be in it.
For an online run, leave out `--wandb-mode offline`. Keep the key out of the command line, because commands go to the shell history and the process list. Put `WANDB_API_KEY=<your key>` in a file that only you can read, such as `~/miles-lab/wandb.env` with mode 600, and add `--env-file ~/miles-lab/wandb.env` to the `docker run` line. Do not put the key in `MILES_EXTRA_ARGS`, because the launcher prints the full command in the log.Source: manuals/miles-101/sections/5-1-read-the-run.md, lines 46-46
the flags for the other tracker
A folder and one flag.
-e TENSORBOARD_DIR=/root/lab/runs/plain/tb -e MILES_EXTRA_ARGS="--use-tensorboard"Source: manuals/miles-101/sections/5-1-read-the-run.md, lines 51-51
The answer
Show the walkthrough
- Read the error.
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'is Python adding a string to a value that isNone. A setting that nobody gave is being joined into a name. Nothing in that line concerns the GPU, the engine or the weights. The run never reached its first step, so the tracker setup is the only code that ran. - Read the run that worked. The same recipe with
--wandb-group plainloggedstep 0andstep 1. The log printedW&B offline mode enabled. Data will be saved locally., and the tracker folder holdsoffline-run-folders next to its debug logs. The manual names the rule: keep--wandb-group, because without it a run ends at startup with exactly this error. - Read the other tracker. The same recipe with
-e TENSORBOARD_DIR=/root/lab/runs/plain/tband--use-tensorboardloggedSaving tensorboard log to /root/lab/runs/plain/tb.and wrote two event files. This tracker needs a folder and one flag, and neither an account nor a network, and you read it on the host withtensorboard --logdir. - Read the key rule. For an online run, leave out
--wandb-mode offline. Keep the key out of the command line, because commands go to the shell history and the process list, and the launcher prints the full command in the log. PutWANDB_API_KEY=<your key>in a file with mode 600 and pass it with--env-file. The extra arguments are the one place the key must never go.
Show the resolution
The crash came from one missing flag, --wandb-group. Add it, keep offline mode until an account and a network are wanted, and check the two signs: the W&B offline mode enabled line and the offline-run- folder. The run then reaches step 0 and step 1 as the check did. For a team with no tracker account, use TensorBoard with a folder and one flag, and open the folder on the host.
Keep the log in any case. The manual read every number in it from the log, and the log is where the first exception of a broken run sits.
Show the wrong turns
“The image is broken, drop the tracker.”
The same image ran the same recipe to
step 1with one more flag. The error names a missing value, not a missing library.“Paste the API key into the extra arguments to force online mode.”
Offline mode was not the cause, and the launcher prints the full command into the log, so the key would sit in the log, the shell history and the process list.
“A dashboard replaces the log.”
The dashboard shows the metrics. The log holds the startup lines, the engine lines and the first exception when a run breaks.
Show the general rule
A type error on a None at startup is a missing setting, and the fastest check is the documented command next to yours. Secrets go in a file that only you can read and reach the process through the environment, never through arguments that a launcher echoes. A dashboard adds a view, and the log stays the record.
Taught in
The Miles manual gives the tracker commands, the group rule and the key rule in the read the run page.