Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[🤗] Safely get model_name from opt #4395

Merged
merged 3 commits into from
Mar 3, 2022
Merged

[🤗] Safely get model_name from opt #4395

merged 3 commits into from
Mar 3, 2022

Conversation

spencerp
Copy link
Contributor

@spencerp spencerp commented Mar 3, 2022

Patch description
I used HuggingFaceDictionaryAgent in my own agent, which crashed because my agent doesn't have the --model-name flag. By accessing "model_name" with .get(), these conditions work as expected in agents other than Gpt2Agent.

Context of breaking change: #4360

Testing steps
Used my agent (code not checked in) and verified code did not crash.
CircleCI

Copy link
Contributor

@klshuster klshuster 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!

@klshuster
Copy link
Contributor

it looks like teacher tests are failing when testing the LCCC dataset?

@stephenroller
Copy link
Contributor

LCCC is another issue. This is great, thanks

@spencerp spencerp merged commit fcd7cc5 into main Mar 3, 2022
@spencerp spencerp deleted the hf-model-name-fix branch March 3, 2022 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants