mirror of
https://github.com/karpathy/nanochat.git
synced 2026-01-30 04:22:02 +00:00
minor helpful message
This commit is contained in:
@@ -111,7 +111,7 @@ def build_model(checkpoint_dir, step, device, phase):
|
|||||||
# Load the Tokenizer
|
# Load the Tokenizer
|
||||||
tokenizer = get_tokenizer()
|
tokenizer = get_tokenizer()
|
||||||
# Sanity check: compatibility between model and tokenizer
|
# Sanity check: compatibility between model and tokenizer
|
||||||
assert tokenizer.get_vocab_size() == model_config_kwargs["vocab_size"]
|
assert tokenizer.get_vocab_size() == model_config_kwargs["vocab_size"], f"Tokenizer vocab size {tokenizer.get_vocab_size()} does not match model config vocab size {model_config_kwargs['vocab_size']}"
|
||||||
return model, tokenizer, meta_data
|
return model, tokenizer, meta_data
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user