Spaces:
Runtime error
Runtime error
KevinXiong2022
commited on
Commit
•
4b95202
1
Parent(s):
abf7ffa
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
-
from transformers import
|
2 |
|
3 |
-
|
4 |
-
|
5 |
|
6 |
-
# Building the model from the config
|
7 |
-
model = BertModel(config)
|
8 |
-
|
9 |
-
print(config)
|
|
|
1 |
+
from transformers import AutoModel
|
2 |
|
3 |
+
checkpoint = "meta-llama/Llama-2-7b"
|
4 |
+
model = AutoModel.from_pretrained(checkpoint)
|
5 |
|
|
|
|
|
|
|
|