wip rrt
This commit is contained in:
25
src/axolotl/integrations/rrt/__init__.py
Normal file
25
src/axolotl/integrations/rrt/__init__.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""
|
||||
Axolotl Plugin for Relaxed Recursive Transformers
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
from axolotl.integrations.base import BasePlugin
|
||||
from axolotl.integrations.rrt.modeling import register_rrt_model
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class RelaxedRecursiveTransformerPlugin(BasePlugin):
|
||||
"""
|
||||
Plugin for Relaxed Recursive Transformers integration with Axolotl
|
||||
"""
|
||||
|
||||
def get_input_args(self):
|
||||
return "axolotl.integrations.rrt.RelaxedRecursiveTransformerArgs"
|
||||
|
||||
def register(self):
|
||||
LOG.info(
|
||||
"Registering Relaxed Recursive Transformers modeling with transformers"
|
||||
)
|
||||
register_rrt_model()
|
||||
2
src/axolotl/integrations/rrt/modeling/__init__.py
Normal file
2
src/axolotl/integrations/rrt/modeling/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def register_rrt_model():
|
||||
pass
|
||||
Reference in New Issue
Block a user