How to use llm-semantic-router/qwen3_generative_classifier_r16 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B") model = PeftModel.from_pretrained(base_model, "llm-semantic-router/qwen3_generative_classifier_r16")
How to use llm-semantic-router/qwen3_generative_classifier_r16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="llm-semantic-router/qwen3_generative_classifier_r16")
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llm-semantic-router/qwen3_generative_classifier_r16", dtype="auto")
The community tab is the place to discuss and collaborate with the HF community!