Skip to content

Model changes for time integration in Dream#38

Open
Durga-Prasad1 wants to merge 8 commits into
dev-corrfrom
durgapra-dev-corr
Open

Model changes for time integration in Dream#38
Durga-Prasad1 wants to merge 8 commits into
dev-corrfrom
durgapra-dev-corr

Conversation

@Durga-Prasad1
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/xlm/datamodule.py Outdated
if (token := getattr(self, special_token)) is None:
raise ValueError(f"{special_token} is not set")

def load_auto_tokenizer(pretrained_model_name_or_path: str, special_tokens: dict = None ):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@Durga-Prasad1 Will this method of adding new special tokens work for any tokenizer? It looks like it will. We should add a docstring saying that then.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it does. Added a usage comment.

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