Skip to content

Comments

fix(config): with for-else clause, add fallback for check the context window size#12

Open
Liberatedwinner wants to merge 2 commits intomainfrom
fix/context-window-size-in-config
Open

fix(config): with for-else clause, add fallback for check the context window size#12
Liberatedwinner wants to merge 2 commits intomainfrom
fix/context-window-size-in-config

Conversation

@Liberatedwinner
Copy link
Collaborator

Hello,

this PR fixes the logic that check the context window size in config.py.

Description

Changes

  • added "initial_context_length" key for searching self.context_window_size in self.kwargs
  • with for-else clause, added fallback for check the context window size

Files changed

  • model/config.py

Copy link
Contributor

@grf53 grf53 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants