Skip to content

Commit

Permalink
Add print
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Jun 13, 2024
1 parent 0a12b37 commit b237877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -3084,6 +3084,7 @@ def get_model(
else:
tokenizer = tokenizer_loader.from_pretrained(tokenizer_base_model, **tokenizer_kwargs)
if max_seq_len is None and hasattr(tokenizer, 'model_max_length'):
print("Using max_seq_len=%s defined by tokenizer" % tokenizer.model_max_length)
max_seq_len = tokenizer.model_max_length
# sets raw (no cushion) limit
# If using RoPE with scaling, then for non-exllama models (e.g. HF models),
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "83a158485531a363b55214d126a47d6020914b87"
__version__ = "0a12b3728a683b73bb21fdc20e9c4846e4710c02"

0 comments on commit b237877

Please sign in to comment.