Fix message error when using numpy type data#142
Open
chudegao wants to merge 1 commit intoBlinkDL:mainfrom
Open
Fix message error when using numpy type data#142chudegao wants to merge 1 commit intoBlinkDL:mainfrom
chudegao wants to merge 1 commit intoBlinkDL:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix below issue:
--- Logging error ---
Traceback (most recent call last):
File "/usr/local/miniconda3/envs/zxy/lib/python3.8/logging/init.py", line 1085, in emit
msg = self.format(record)
File "/usr/local/miniconda3/envs/zxy/lib/python3.8/logging/init.py", line 929, in format
return fmt.format(record)
File "/usr/local/miniconda3/envs/zxy/lib/python3.8/logging/init.py", line 668, in format
record.message = record.getMessage()
File "/usr/local/miniconda3/envs/zxy/lib/python3.8/logging/init.py", line 373, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "train.py", line 288, in
train_data = MyDataset(args)
File "/root/zhuangxy/RWKV-LM/RWKV-v4neo/src/dataset.py", line 60, in init
rank_zero_info("Current vocab size =", self.vocab_size, "(make sure it's correct)")
File "/usr/local/miniconda3/envs/zxy/lib/python3.8/site-packages/lightning_utilities/core/rank_zero.py", line 27, in wrapped_fn
return fn(*args, **kwargs)
File "/usr/local/miniconda3/envs/zxy/lib/python3.8/site-packages/lightning_utilities/core/rank_zero.py", line 54, in rank_zero_info
_info(*args, stacklevel=stacklevel, **kwargs)
File "/usr/local/miniconda3/envs/zxy/lib/python3.8/site-packages/lightning_utilities/core/rank_zero.py", line 48, in _info
log.info(*args, **kwargs)
Message: 'Current vocab size ='
Arguments: (50277, "(make sure it's correct)")
Data has 30220625 tokens.