Create transfrom.py
Browse files- 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")
|