Skip to content

Conversation

@postylem
Copy link
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

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.

2 participants