fix: deprecate old types
This commit is contained in:
@@ -25,7 +25,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Type, Union
|
from typing import Type, Union
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import transformers
|
import transformers
|
||||||
@@ -155,7 +155,7 @@ class TrainerBuilderBase(abc.ABC):
|
|||||||
def build(self, total_num_steps):
|
def build(self, total_num_steps):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get_callbacks(self) -> List[TrainerCallback]:
|
def get_callbacks(self) -> list[TrainerCallback]:
|
||||||
callbacks = []
|
callbacks = []
|
||||||
|
|
||||||
plugin_manager = PluginManager.get_instance()
|
plugin_manager = PluginManager.get_instance()
|
||||||
|
|||||||
Reference in New Issue
Block a user