NVIDIA/Megatron-LM
在 GitHub 查看[BUG] GPT2BPETokenizer (and possibly others) missing decode and offsets methods
Open
#1,633 创建于 2025年6月13日
bugcommunity-requestgood first issuemodule: data pipelinewaiting-on-customer
仓库指标
- Star
- (7,565 star)
- PR 合并指标
- (平均合并 12天 9小时) (30 天内合并 245 个 PR)
描述
I've encountered an issue when running text generation with Megatron-LM. Apologies in advance if there are any mistakes — I'm a new user.
After successfully preprocessing the data using:
python tools/preprocess_data.py --tokenizer-type GPT2BPETokenizer
and completing pretraining, I tried running text generation using:
tools/run_text_generation_server.py
However, I received the following errors:
AttributeError: '_GPT2BPETokenizer' object has no attribute 'decode'
AttributeError: '_GPT2BPETokenizer' object has no attribute 'offsets'
These errors seem to originate from:
It seems like _GPT2BPETokenizer may be missing decode and offsets methods required by the inference script. Any guidance on how to resolve this would be greatly appreciated.