Create testllm.py
Browse files- testllm.py +13 -0
testllm.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import LlamaConfig, LlamaModel, LlamaForCausalLM, CLIPVisionModel, CLIPImageProcessor, \
|
2 |
+
CLIPVisionConfig
|
3 |
+
|
4 |
+
|
5 |
+
class TestForCausalLM(LlamaForCausalLM):
|
6 |
+
def __init__(self, config=None):
|
7 |
+
super(LlamaForCausalLM, self).__init__(config)
|
8 |
+
|
9 |
+
|
10 |
+
def forward(
|
11 |
+
self,
|
12 |
+
):
|
13 |
+
print("remote running success")
|