Skip to content

Toto-2 2.0.0 with huggingface_hub 0.27.1 model loading raises missing config error #144

Description

@arturnovek-personal

Python 3.12.8
toto-2==2.0.0
huggingface_hub==0.27.1
torch==2.5.1
Toto2Model.from_pretrained("Datadog/Toto-2.0-22m") raises TypeError: Toto2Model.init() missing 1 required positional argument: 'config'

Complete code giving error:
from toto2 import Toto2Model

model = Toto2Model.from_pretrained("Datadog/Toto-2.0-22m")
print("Loaded")

There exists workaround:
from huggingface_hub import snapshot_download
from toto2 import Toto2Model

local_dir = snapshot_download(
repo_id="Datadog/Toto-2.0-22m"
)

print(local_dir)

model = Toto2Model.from_pretrained(local_dir)

print("Loaded!")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions