Text Generation
Transformers
Safetensors
Chinese
English
qwen3
mental-health
psychological-counseling
chinese
long-context
dialogue
campus-counseling
conversational
text-generation-inference
Run this model with HF Jobs
Run EdwinUstb/CPCD-Chat-8B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/EdwinUstb/CPCD-Chat-8B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/EdwinUstb/CPCD-Chat-8B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/EdwinUstb/CPCD-Chat-8B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/EdwinUstb/CPCD-Chat-8B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use EdwinUstb/CPCD-Chat-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EdwinUstb/CPCD-Chat-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EdwinUstb/CPCD-Chat-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EdwinUstb/CPCD-Chat-8B") model = AutoModelForCausalLM.from_pretrained("EdwinUstb/CPCD-Chat-8B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EdwinUstb/CPCD-Chat-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EdwinUstb/CPCD-Chat-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EdwinUstb/CPCD-Chat-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EdwinUstb/CPCD-Chat-8B
- SGLang
How to use EdwinUstb/CPCD-Chat-8B 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 "EdwinUstb/CPCD-Chat-8B" \ --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": "EdwinUstb/CPCD-Chat-8B", "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 "EdwinUstb/CPCD-Chat-8B" \ --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": "EdwinUstb/CPCD-Chat-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use EdwinUstb/CPCD-Chat-8B with Docker Model Runner:
docker model run hf.co/EdwinUstb/CPCD-Chat-8B
Update README.md
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152---frameworks:- Pytorchlicense: apache-2.0tags: []tasks:- text-generation#model-type:##如 gpt、phi、llama、chatglm、baichuan 等#- gpt#domain:##如 nlp、cv、audio、multi-modal#- nlp#language:##语言代码列表 https://help.aliyun.com/document_detail/215387.html?spm=a2c4g.11186623.0.0.9f8d7467kni6Aa#- cn#metrics:##如 CIDEr、Blue、ROUGE 等#- CIDEr#tags:##各种自定义,包括 pretrained、fine-tuned、instruction-tuned、RL-tuned 等训练方法和其他#- pretrained#tools:##如 vllm、fastchat、llamacpp、AdaSeq 等#- vllm---### 当前模型的贡献者未提供更加详细的模型介绍。模型文件和权重,可浏览“模型文件”页面获取。#### 您可以通过如下git clone命令,或者ModelScope SDK来下载模型SDK下载```bash#安装ModelScopepip install modelscope``````python#SDK模型下载from modelscope import snapshot_downloadmodel_dir = snapshot_download('gouchaogui/CPCD-Chat')```Git下载```#Git模型下载git clone https://www.modelscope.cn/gouchaogui/CPCD-Chat.git```<p style="color: lightgrey;">如果您是本模型的贡献者,我们邀请您根据<a href="https://modelscope.cn/docs/ModelScope%E6%A8%A1%E5%9E%8B%E6%8E%A5%E5%85%A5%E6%B5%81%E7%A8%8B%E6%A6%82%E8%A7%88" style="color: lightgrey; text-decoration: underline;">模型贡献文档</a>,及时完善模型卡片内容。</p>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178---license: apache-2.0language:- zh- enlibrary_name: transformerspipeline_tag: text-generationbase_model: Qwen/Qwen3-8B-Basetags:- qwen3- mental-health- psychological-counseling- chinese- long-context- dialogue- campus-counseling---# CPCD-Chat-8BCPCD-Chat-8B is a Chinese long-horizon campus psychological counseling dialogue model developed as part of the **Psy-Chronicle** project.- **Model page**: https://huggingface.co/EdwinUstb/CPCD-Chat-8B- **Project GitHub**: https://github.com/EdwinUSTB/Psy-Chronicle## Model DescriptionCPCD-Chat-8B is fine-tuned from **Qwen3-8B-Base** on CPCD, a synthetic Chinese long-horizon campus psychological counseling dialogue dataset.The model is designed for research on:- long-horizon psychological counseling dialogue generation;- campus mental-health support scenarios;- cross-session counseling memory;- student stress-event evolution;- temporal-causal reasoning in counseling conversations.## DatasetThe model is trained on **CPCD**, a Chinese long-horizon dialogue dataset for college psychological counseling scenarios.CPCD is generated by the Psy-Chronicle framework, which constructs:1. structured student profiles;2. semester-level temporal stress event graphs;3. cross-session counseling dialogues;4. structured memory summaries.Dataset statistics:| Component | Value ||---|---:|| Student profiles | 100 || Counseling dialogue units | 90,000 || Chinese characters | ~11.45M || Scenario | Chinese campus psychological counseling |## Psy-Chronicle FrameworkPsy-Chronicle synthesizes long-horizon counseling trajectories through a structured pipeline:```textStudent Profile↓Temporal Stress Event Graph↓Cross-session Counseling Simulation↓Structured Memory Update↓CPCD Dataset / CPCD-Bench```Unlike single-turn or short multi-turn counseling datasets, Psy-Chronicle focuses on how college students' psychological distress accumulates, interacts, and evolves across a semester.## CPCD-BenchCPCD-Bench evaluates long-horizon campus counseling capabilities from three dimensions:| Task | Description ||---|---|| Session-level Response | Generate appropriate counselor responses using current context and historical memory || Memory Recall | Recall factual information from long counseling histories || Temporal-Causal Reasoning | Analyze chronological event development and causal relationships |## Usage```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLMimport torchmodel_name = "EdwinUstb/CPCD-Chat-8B"tokenizer = AutoTokenizer.from_pretrained(model_name,trust_remote_code=True)model = AutoModelForCausalLM.from_pretrained(model_name,torch_dtype=torch.bfloat16,device_map="auto",trust_remote_code=True)messages = [{"role": "user","content": "我最近因为学业和家庭压力感到很焦虑,不知道该怎么办。"}]text = tokenizer.apply_chat_template(messages,tokenize=False,add_generation_prompt=True)inputs = tokenizer([text], return_tensors="pt").to(model.device)outputs = model.generate(**inputs,max_new_tokens=512,temperature=0.7,top_p=0.9)response = tokenizer.decode(outputs[0][inputs.input_ids.shape[-1]:],skip_special_tokens=True)print(response)```## Intended UseThis model is intended for research on:- psychological counseling dialogue modeling;- long-horizon dialogue generation;- cross-session memory modeling;- campus mental-health support datasets;- temporal-causal reasoning in counseling scenarios.## LimitationsCPCD-Chat-8B is trained on synthetic counseling data. It may generate responses that are incomplete, overly generic, or inappropriate in high-risk mental-health situations.The model should **not** be used as a substitute for professional psychological counseling, clinical diagnosis, or treatment.## Ethical ConsiderationsThis model is released for research and evaluation purposes only.Users should be aware that:- the training data are synthetic and do not represent real counseling records;- the model may fail to detect or properly handle crisis situations;- any deployment-oriented use should include professional review, safety monitoring, and clear user-facing disclaimers.## CitationIf you find this model or project useful, please cite:```bibtex@misc{gou2026psychronicle,title = {Psy-Chronicle: A Structured Pipeline for Synthesizing Long-Horizon Campus Psychological Counseling Dialogues},author = {Chaogui Gou and Jiarui Liang},year = {2026},note = {Preprint},url = {https://github.com/EdwinUSTB/Psy-Chronicle}}```## LicenseThis model is released under the Apache License 2.0.
README.md+164-38