Hanrui / progress /github /SpecForge /tests /test_modeling /test_auto_model.py
Lekr0's picture
Add files using upload-large-folder tool
0b9402c verified
import unittest
from specforge.modeling.auto import AutoEagle3DraftModel, LlamaForCausalLMEagle3
class TestAutoModelForCausalLM(unittest.TestCase):
def test_automodel(self):
"""init"""
model = AutoEagle3DraftModel.from_pretrained(
"jamesliu1/sglang-EAGLE3-Llama-3.1-Instruct-8B"
)
self.assertIsInstance(model, LlamaForCausalLMEagle3)
if __name__ == "__main__":
unittest.main(verbosity=2)