KadamParth/NCERT_Social_Studies_9th
Viewer • Updated • 4.84k • 26 • 1
How to use JayanAXHF/NCERT_9th_Sc_Ssc with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "question-answering" 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("question-answering", model="JayanAXHF/NCERT_9th_Sc_Ssc") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("JayanAXHF/NCERT_9th_Sc_Ssc", device_map="auto")Configuration Parsing Warning:Config file config.json cannot be fetched (too big)
Configuration Parsing Warning:Config file tokenizer_config.json cannot be fetched (too big)