Download syxin_old/Specforge/tests/test_modeling/test_auto_model.py from FasterDFlash/Hanrui: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/FasterDFlash/Hanrui/resolve/main/syxin_old/Specforge/tests/test_modeling/test_auto_model.py
- Command line
-
hf download hf://FasterDFlash/Hanrui/syxin_old/Specforge/tests/test_modeling/test_auto_model.py
-
curl -L -o test_auto_model.py https://huggingface.co/FasterDFlash/Hanrui/resolve/main/syxin_old/Specforge/tests/test_modeling/test_auto_model.py
446 Bytes
| 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) | |