initial code changes 39b253a
Sanjay Chouhan commited on
How to use scsanjaychouhan/HindiLLM-small with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="scsanjaychouhan/HindiLLM-small") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("scsanjaychouhan/HindiLLM-small")
model = AutoModel.from_pretrained("scsanjaychouhan/HindiLLM-small", device_map="auto")