djoneslocker commited on
Commit
beea446
·
verified ·
1 Parent(s): 15c72b6

Added card

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## How to import and run the model:
2
+ Make sure you have the transformers library installed:
3
+ ```pip install transformers```
4
+
5
+ ##Load a Model from the Hub: Use the from_pretrained method to load the model and its tokenizer.
6
+ ```from transformers import AutoTokenizer, AutoModel
7
+
8
+ # Specify the model name
9
+ model_name = "bert-base-uncased"
10
+
11
+ # Load the tokenizer and model
12
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
13
+ model = AutoModel.from_pretrained(model_name)
14
+ ```
15
+
16
+ ## Then what to do
17
+
18
+ Just run the model!