hollywoodfrancis commited on
Commit
598b868
·
verified ·
1 Parent(s): 1919895

Create transfrom.py

Browse files
Files changed (1) hide show
  1. transfrom.py +8 -0
transfrom.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Use a pipeline as a high-level helper
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("text-generation", model="hollywoodfrancis/LLM")
5
+
6
+ # Load model directly
7
+ from transformers import AutoModel
8
+ model = AutoModel.from_pretrained("hollywoodfrancis/LLM")