Upload folder using huggingface_hub fc34e18 verified
Jackson Brune commited on
How to use goodlucky55555/Affine-final2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="goodlucky55555/Affine-final2") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("goodlucky55555/Affine-final2")
model = AutoModelForCausalLM.from_pretrained("goodlucky55555/Affine-final2", device_map="auto")