Skip to content

fix(tokenizer): drop a CLI hint for a command that does not exist - #116

Merged
HenryNdubuaku merged 1 commit into
cactus-compute:mainfrom
dajiaohuang:fix/tokenizer-missing-hint
Sep 12, 2026
Merged

HenryNdubuaku merged 1 commit into
cactus-compute:mainfrom
dajiaohuang:fix/tokenizer-missing-hint

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

get_tokenizer() tells the reader to run needle tokenizer-train when the tokenizer is missing and the Hugging Face download fails, but there is no such subcommand -- the CLI offers run, finetune, generate-data, build, download, fetch, and playground. Following the hint only yields invalid choice: 'tokenizer-train' and no way forward.

The message now names the repo the tokenizer actually ships in. The exception type and the raise ... from e chain are unchanged.

The branch is reachable on the documented quickstart path: setup installs editable (pip install -e ".[train]"), so needle/model/tokenizer.model is absent -- no .model/.vocab file is tracked -- and the first needle run or needle playground depends on that download.

🤖 Generated with Claude Code

When the tokenizer is absent and the Hugging Face download fails, the
RuntimeError told the reader to run `needle tokenizer-train`. There is no
such subcommand -- the CLI offers run, finetune, generate-data, build,
download, fetch, and playground -- so following the hint only yields
"invalid choice: 'tokenizer-train'" and no way forward.

Name the repo the tokenizer ships in instead.
@dajiaohuang
dajiaohuang force-pushed the fix/tokenizer-missing-hint branch from f6ef883 to 5869ace Compare September 11, 2026 10:51
@HenryNdubuaku
HenryNdubuaku merged commit aaf62b4 into cactus-compute:main Sep 12, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants