BitNet icon indicating copy to clipboard operation
BitNet copied to clipboard

gpu/generate.py error

Open Singapore-mor opened this issue 7 months ago • 3 comments

        torch.cuda.synchronize()
        stats.phase("decode" if use_cuda_graphs else "total")

        eos_id = self.tokenizer.eot_id

error: AttributeError: 'Tokenizer' object has no attribute 'eot_id'. Did you mean: 'eos_id'?

is code wrong? should it be eos_id = self.tokenizer.eos_id?

Singapore-mor avatar May 27 '25 02:05 Singapore-mor

Did you miss the --chat-format parameter?

junhuihe-hjh avatar May 27 '25 08:05 junhuihe-hjh

Did you miss the --chat-format parameter?

oh sorry, I just check I use the wrong command '--chatformat' , and you mean '--chat_format'?

Singapore-mor avatar May 27 '25 08:05 Singapore-mor

Actually, both --chat-format (with a hyphen) and --chat_format (with an underscore) are valid.

junhuihe-hjh avatar May 27 '25 09:05 junhuihe-hjh