KevinXiong2022 commited on
Commit
4b95202
1 Parent(s): abf7ffa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -1,9 +1,5 @@
1
- from transformers import BertConfig, BertModel
2
 
3
- # Building the config
4
- config = BertConfig()
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