Create proxy_qwen2.py
Browse files- proxy_qwen2.py +14 -0
proxy_qwen2.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
try:
|
| 2 |
+
from mblt_model_zoo.hf_transformers.models.qwen2.configuration_qwen2 import (
|
| 3 |
+
MobilintQwen2Config,
|
| 4 |
+
)
|
| 5 |
+
from mblt_model_zoo.hf_transformers.models.qwen2.modeling_qwen2 import (
|
| 6 |
+
MobilintQwen2ForCausalLM,
|
| 7 |
+
)
|
| 8 |
+
except ImportError:
|
| 9 |
+
raise ImportError(
|
| 10 |
+
"This model requires 'mblt_model_zoo' to be installed. "
|
| 11 |
+
"Please run: pip install mblt_model_zoo[transformers]"
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
__all__ = ["MobilintQwen2Config", "MobilintQwen2ForCausalLM"]
|