26 January 2026
🅼🆁🆂🆆🅸🆃🅲🅷text not yet in the index
因为我用pytorch的时候,torch刚刚出2.0,torch.compile经常出bug。不能等他修,就得自己看源码看是我的代码有问题还是他的代码有bug😆
自然而然知道torch.compile里面是啥了
Endgame Framework | 🙈cpu跑1t参数模型没记错的话torch.compile有好几个后端,那个loop跑在python上的只是其中一个
嗯,是的
可惜那时候我还很菜,不知道graph是啥,代码写的一坨屎,所以勉强能用(torch.compile成功率较高)的后端就默认那个😆
不然估计我也会研究一下其他后端的实现
27 January 2026
28 January 2026
class Group(SQLModel, table=True):
"""Group Model"""
id: Annotated[int | None, Field(primary_key=True)] = None
name: Annotated[str, Field(index=True, description="Name of the group")]
# Error
# heroes: Annotated[list["Hero"], Relationship(back_populates="group")] = []
heroes: list["Hero"] = Relationship(back_populates="group")