Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
education
tutoring
esl
sft
grpo
conversational
Instructions to use Taxonomy-Aligned-Conversational-Tutor/TACTutor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Taxonomy-Aligned-Conversational-Tutor/TACTutor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Taxonomy-Aligned-Conversational-Tutor/TACTutor") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Taxonomy-Aligned-Conversational-Tutor/TACTutor") model = AutoModelForMultimodalLM.from_pretrained("Taxonomy-Aligned-Conversational-Tutor/TACTutor", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Taxonomy-Aligned-Conversational-Tutor/TACTutor with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Taxonomy-Aligned-Conversational-Tutor/TACTutor" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Taxonomy-Aligned-Conversational-Tutor/TACTutor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Taxonomy-Aligned-Conversational-Tutor/TACTutor
- SGLang
How to use Taxonomy-Aligned-Conversational-Tutor/TACTutor with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Taxonomy-Aligned-Conversational-Tutor/TACTutor" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Taxonomy-Aligned-Conversational-Tutor/TACTutor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Taxonomy-Aligned-Conversational-Tutor/TACTutor" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Taxonomy-Aligned-Conversational-Tutor/TACTutor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Taxonomy-Aligned-Conversational-Tutor/TACTutor with Docker Model Runner:
docker model run hf.co/Taxonomy-Aligned-Conversational-Tutor/TACTutor
Update TACTutor model card for public release
Browse files
README.md
CHANGED
|
@@ -4,31 +4,44 @@ license: apache-2.0
|
|
| 4 |
base_model:
|
| 5 |
- Qwen/Qwen3.5-4B-Base
|
| 6 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
# TACTutor
|
| 10 |
|
| 11 |
-
TACTutor is a
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
-
Project
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
##
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
|
| 26 |
## Loading
|
| 27 |
|
| 28 |
```python
|
| 29 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 30 |
|
| 31 |
-
model_id = "
|
| 32 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 33 |
model = AutoModelForCausalLM.from_pretrained(
|
| 34 |
model_id,
|
|
@@ -38,19 +51,60 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 38 |
)
|
| 39 |
```
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
python3 TACTbench/tactbench.py self-test
|
| 49 |
```
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
## License
|
| 55 |
|
| 56 |
-
The model
|
|
|
|
|
|
|
|
|
| 4 |
base_model:
|
| 5 |
- Qwen/Qwen3.5-4B-Base
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
tags:
|
| 10 |
+
- education
|
| 11 |
+
- tutoring
|
| 12 |
+
- esl
|
| 13 |
+
- sft
|
| 14 |
+
- grpo
|
| 15 |
---
|
| 16 |
|
| 17 |
# TACTutor
|
| 18 |
|
| 19 |
+
TACTutor is a 4B-parameter conversational English tutor from **TACT**
|
| 20 |
+
(Taxonomy-Aligned Conversational Tutor). Starting from Qwen3.5-4B-Base, the
|
| 21 |
+
model was post-trained with supervised fine-tuning (SFT) followed by
|
| 22 |
+
taxonomy-aligned Group Relative Policy Optimization (GRPO). It is distributed
|
| 23 |
+
as a merged Hugging Face Transformers model rather than a LoRA adapter.
|
| 24 |
|
| 25 |
+
- Project code: https://github.com/CinderD/LanguageTutorAgent
|
| 26 |
+
- TACT organization: https://huggingface.co/Taxonomy-Aligned-Conversational-Tutor
|
| 27 |
+
- Demonstration samples: https://huggingface.co/datasets/Taxonomy-Aligned-Conversational-Tutor/TACTBench-Samples
|
| 28 |
|
| 29 |
+
## Intended Use
|
| 30 |
|
| 31 |
+
TACTutor generates the next teacher response in an ongoing English-learning
|
| 32 |
+
conversation. It is intended for research on pedagogically adaptive dialogue,
|
| 33 |
+
including feedback, guided revision, clarification, and learner-supportive
|
| 34 |
+
conversation management.
|
| 35 |
+
|
| 36 |
+
The model is a research artifact, not a replacement for a qualified teacher.
|
| 37 |
+
Outputs should be reviewed before use in high-stakes educational settings.
|
| 38 |
|
| 39 |
## Loading
|
| 40 |
|
| 41 |
```python
|
| 42 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 43 |
|
| 44 |
+
model_id = "Taxonomy-Aligned-Conversational-Tutor/TACTutor"
|
| 45 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 46 |
model = AutoModelForCausalLM.from_pretrained(
|
| 47 |
model_id,
|
|
|
|
| 51 |
)
|
| 52 |
```
|
| 53 |
|
| 54 |
+
One prompt used in our evaluation is:
|
| 55 |
|
| 56 |
+
```text
|
| 57 |
+
You are an expert ESL tutoring teacher.
|
| 58 |
|
| 59 |
+
Your job is to write the next teacher response in an ongoing teacher-student chat.
|
| 60 |
+
Respond naturally and pedagogically. Do not explain your reasoning. Do not mention
|
| 61 |
+
taxonomy labels, rubrics, or evaluation criteria.
|
|
|
|
| 62 |
```
|
| 63 |
|
| 64 |
+
Pass this instruction as the system message, followed by the dialogue history,
|
| 65 |
+
and use the tokenizer's chat template to construct the model input.
|
| 66 |
+
|
| 67 |
+
## Evaluation
|
| 68 |
+
|
| 69 |
+
On the 78-item TACTBench diagnostic benchmark, the selected checkpoint achieved:
|
| 70 |
+
|
| 71 |
+
| Metric | Score |
|
| 72 |
+
| --- | ---: |
|
| 73 |
+
| TACT Overall | 0.832051 |
|
| 74 |
+
| Accept | 0.871795 |
|
| 75 |
+
| Leak | 0.025641 |
|
| 76 |
+
| Off-task | 0.025641 |
|
| 77 |
+
|
| 78 |
+
The scores above were measured before five representative benchmark examples
|
| 79 |
+
were released. Those public examples are demonstration data and should be
|
| 80 |
+
excluded from future hidden-set scoring.
|
| 81 |
+
|
| 82 |
+
## Training Data and Limitations
|
| 83 |
+
|
| 84 |
+
The post-training data are derived from authentic English tutoring dialogue and
|
| 85 |
+
taxonomy-guided augmentation. The complete training corpus and hidden benchmark
|
| 86 |
+
are not included in this repository. Five short demonstration excerpts are
|
| 87 |
+
available in the companion dataset repository.
|
| 88 |
+
|
| 89 |
+
The source dialogue is derived from the Teacher-Student Chatroom Corpus version
|
| 90 |
+
2 (TSCC v2), which is governed by its own user agreement. This model may produce
|
| 91 |
+
incorrect, overly explicit, or contextually inappropriate tutoring responses,
|
| 92 |
+
and its behavior outside English-language tutoring has not been established.
|
| 93 |
+
|
| 94 |
+
## Citation
|
| 95 |
+
|
| 96 |
+
Please cite the following paper when using TACTutor:
|
| 97 |
+
|
| 98 |
+
```bibtex
|
| 99 |
+
@article{yang2026tact,
|
| 100 |
+
title = {TACT: Taxonomy-Aligned Post-Training for Pedagogically Adaptive English Tutoring},
|
| 101 |
+
author = {Yang, Dongjie and Lin, Siyan and Shen, Leixian and Sheng, Rui and Qu, Huamin and Chen, Zixin},
|
| 102 |
+
year = {2026}
|
| 103 |
+
}
|
| 104 |
+
```
|
| 105 |
|
| 106 |
## License
|
| 107 |
|
| 108 |
+
The model weights are released under the Apache License 2.0. The TSCC-derived
|
| 109 |
+
source data remain subject to the TSCC user agreement and are not redistributed
|
| 110 |
+
with the model weights.
|