How to use thenlpresearcher/Gemma_StereoDetect_Model with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("google/gemma-2-9b") model = PeftModel.from_pretrained(base_model, "thenlpresearcher/Gemma_StereoDetect_Model")
How to use thenlpresearcher/Gemma_StereoDetect_Model with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("thenlpresearcher/Gemma_StereoDetect_Model", dtype="auto")
The community tab is the place to discuss and collaborate with the HF community!