You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While intending to run my Bagua code on google colab, the error appeared already with this import from bagua.torch_api.bucket import BaguaBucket.
The error itself is "PydanticUserError: Please use typing_extensions.TypedDict instead of typing.TypedDict on Python < 3.12." But in bagua.bagua_define.py we have
if sys.version_info >= (3, 9):
from typing import TypedDict # pytype: disable=not-supported-yet
else:
from typing_extensions import TypedDict # pytype: disable=not-supported-yet
from pydantic import BaseModel
Environment
Your operating system and version: "Ubuntu 22.04.3 LTS"
Your python version: 3.10.12
Your PyTorch version: not relevant
How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?: Comes pre-installed in Google Colab; No
Have you tried using latest bagua master (python3 -m pip install --pre bagua)?: Yes, does not work either
Describe the bug
While intending to run my Bagua code on google colab, the error appeared already with this import
from bagua.torch_api.bucket import BaguaBucket
.The error itself is "PydanticUserError: Please use
typing_extensions.TypedDict
instead oftyping.TypedDict
on Python < 3.12." But in bagua.bagua_define.py we haveEnvironment
python3 -m pip install --pre bagua
)?: Yes, does not work eitherReproducing
Please provide a minimal working example. This means the runnable code.
Please also write what exact commands are required to reproduce your results.
Additional context
It''s on Google Colab.
The text was updated successfully, but these errors were encountered: