Skip to content

hf torch_dtype -> dtype#49

Open
postylem wants to merge 1 commit intomainfrom
postylem/hf_torch_dtype
Open

hf torch_dtype -> dtype#49
postylem wants to merge 1 commit intomainfrom
postylem/hf_torch_dtype

Conversation

@postylem
Copy link
Copy Markdown
Member

Change torch_dtype -> dtype for huggingface, since they modified that argument recently (see PR huggingface/transformers#39782) resulting in a warning when loading a model

from genlm.backend import load_model_by_name
llm = load_model_by_name("gpt2")
# `torch_dtype` is deprecated! Use `dtype` instead!

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant