Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use modelId + remove some self.assert #2405

Merged
merged 2 commits into from
Jul 22, 2024
Merged

Do not use modelId + remove some self.assert #2405

merged 2 commits into from
Jul 22, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Jul 20, 2024

HfApi.model_info(...).modelId is deprecated and used only in tests. Let's use HfApi.model_info(...).id everywhere instead. cc @julien-c "Time to finally remove this, it's been long enough" (see https://github.com/huggingface-internal/moon-landing/pull/10713, private).

Also took the opportunity to (non-exhaustively) switch some self.assert to assert in tests. All diff is semantically the same as before.

@Wauplin Wauplin requested review from julien-c and LysandreJik July 20, 2024 05:22
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Wauplin Wauplin merged commit 78542a4 into main Jul 22, 2024
17 checks passed
@Wauplin Wauplin deleted the some-cleaning branch July 22, 2024 07:38
loadams added a commit to microsoft/DeepSpeed that referenced this pull request Jul 22, 2024
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.

3 participants