mirror of https://github.com/hpcaitech/ColossalAI
[polish] polish singleton and global context (#500)
parent
9ec1ce6ab1
commit
a445e118cf
@ -1,6 +1,6 @@
|
||||
from .config import Config, ConfigException
|
||||
from .parallel_context import ParallelContext
|
||||
from .moe_context import MoeContext
|
||||
from .parallel_mode import ParallelMode
|
||||
from .moe_context import MOE_CONTEXT
|
||||
from .process_group_initializer import *
|
||||
from .random import *
|
||||
|
@ -1,7 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- encoding: utf-8 -*-
|
||||
|
||||
from colossalai.context import ParallelContext, MoeContext
|
||||
|
||||
global_context = ParallelContext.get_instance()
|
||||
MOE_CONTEXT = MoeContext.get_instance()
|
||||
from colossalai.context.parallel_context import global_context
|
||||
|
Loading…
Reference in new issue