How to use cesun/cbllm-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cesun/cbllm-classification")
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cesun/cbllm-classification", dtype="auto")
This repository contains the model described in the paper Concept Bottleneck Large Language Models.
Code: https://github.com/Trustworthy-ML-Lab/CB-LLMs
-