lazylegere/Global_Data_on_Sustainable_Energy
Viewer • Updated • 65.7k • 9 • 4
How to use tbite991/Energy_Consumption with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "summarization" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline
pipe = pipeline("summarization", model="tbite991/Energy_Consumption") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("tbite991/Energy_Consumption", dtype="auto")# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("tbite991/Energy_Consumption", dtype="auto")Base model
openai-community/gpt2
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="tbite991/Energy_Consumption")