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!")
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!")