Instructions to use ulises-c/socrates-bert-classifiers-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ulises-c/socrates-bert-classifiers-zh with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ulises-c/socrates-bert-classifiers-zh")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ulises-c/socrates-bert-classifiers-zh", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Socratic teaching classifiers on bge-small-zh (Chinese, clean retrains)
Two small classifiers from the project "Reproducing and Extending KELE"
(https://github.com/ulises-c/csen-346). Each reads a tutoring dialogue up to the student's
latest turn and predicts where the teacher should be next in the SocRule framework of the KELE
paper. Both were fine-tuned from BAAI/bge-small-zh-v1.5 on the training part of the Chinese
SocratDataset (90/10 split by
dialogue, seed 42) and tested on the 4,304 turns of its 681 test dialogues.
| Folder | Predicts | Accuracy on the test turns | Card |
|---|---|---|---|
state-34way/ |
one of 34 teaching states | 61.59% (n = 4,304) | state-34way/README.md |
stage-5way/ |
one of 5 teaching stages | 86.64% (n = 4,304) | stage-5way/README.md |
The 34-state classifier is the "BERT consultant" in the project's evaluation runs. The 5-stage classifier is not used in the pipeline; it backs the stage-accuracy figure in the paper.
A larger 34-state classifier built on Qwen3.5-0.8B (68.45%) is at ulises-c/socrates-state-classifier-qwen3.5-lora.
Loading
Each model is in its own subfolder, so pass subfolder:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
repo, sub = "ulises-c/socrates-bert-classifiers-zh", "state-34way" # or "stage-5way"
tokenizer = AutoTokenizer.from_pretrained(repo, subfolder=sub)
model = AutoModelForSequenceClassification.from_pretrained(repo, subfolder=sub).eval()
The card in each folder gives the input format, the per-stage accuracy, the weights' sha256, and the limits. In short: Chinese only, elementary-school science only, labels produced by the KELE authors' pipeline and not by human annotators, one training run each, and accuracy inside a running dialogue is lower than on the test turns.
Contact
Model tree for ulises-c/socrates-bert-classifiers-zh
Base model
BAAI/bge-small-zh-v1.5