mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-13 13:11:05 +00:00
[legacy] move engine to legacy (#4560)
* [legacy] move engine to legacy * [example] fix seq parallel example * [example] fix seq parallel example * [test] test gemini pluging hang * [test] test gemini pluging hang * [test] test gemini pluging hang * [test] test gemini pluging hang * [test] test gemini pluging hang * [example] update seq parallel requirements
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import os
|
||||
from typing import List
|
||||
from colossalai.engine import Engine
|
||||
from torch.profiler import profile as torch_profile
|
||||
from torch.profiler.profiler import ProfilerAction
|
||||
from typing import Any, Callable, Iterable, Optional
|
||||
from torch.autograd import ProfilerActivity
|
||||
import gzip
|
||||
import json
|
||||
import os
|
||||
import tempfile
|
||||
import gzip
|
||||
from typing import Any, Callable, Iterable, List, Optional
|
||||
|
||||
from torch.autograd import ProfilerActivity
|
||||
from torch.profiler import profile as torch_profile
|
||||
from torch.profiler.profiler import ProfilerAction
|
||||
|
||||
from colossalai.legacy.engine import Engine
|
||||
from colossalai.logging import get_dist_logger
|
||||
from colossalai.utils.profiler.extention import ProfilerExtension
|
||||
from colossalai.utils.profiler.stateful_tensor_mem_extention import StatefulTensorMemoryProfilerExtention
|
||||
from colossalai.logging import get_dist_logger
|
||||
|
||||
|
||||
class profile(torch_profile):
|
||||
|
@@ -1,12 +1,14 @@
|
||||
import os
|
||||
import threading
|
||||
import time
|
||||
import torch
|
||||
from enum import Enum
|
||||
from typing import List
|
||||
from colossalai.gemini.stateful_tensor import StatefulTensor
|
||||
|
||||
import torch
|
||||
|
||||
from colossalai.gemini.ophooks import BaseOpHook
|
||||
from colossalai.engine import Engine
|
||||
from colossalai.gemini.stateful_tensor import StatefulTensor
|
||||
from colossalai.legacy.engine import Engine
|
||||
from colossalai.utils.profiler.extention import ProfilerExtension
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user