transformers / examples /modular-transformers /modular_test_suffix.py
AbdulElahGwaith's picture
Upload folder using huggingface_hub
a9bd396 verified
import torch.nn as nn
from transformers.models.llama.modeling_llama import LlamaDecoderLayer
class TestSuffixDecoderLayer(nn.module):
pass
# Here, we want to add "Llama" as a suffix to the base `TestModel` name for all required dependencies
class TestSuffixLlamaDecoderLayer(LlamaDecoderLayer):
pass