Text Generation
Transformers
Safetensors
Chinese
qwen2
counseltraj
counseltrajlm
counseling
conversational
merged
text-generation-inference
Instructions to use UEC-InabaLab/CounselTrajLM-Qwen2.5-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UEC-InabaLab/CounselTrajLM-Qwen2.5-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="UEC-InabaLab/CounselTrajLM-Qwen2.5-7B") 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("UEC-InabaLab/CounselTrajLM-Qwen2.5-7B") model = AutoModelForCausalLM.from_pretrained("UEC-InabaLab/CounselTrajLM-Qwen2.5-7B", 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 UEC-InabaLab/CounselTrajLM-Qwen2.5-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "UEC-InabaLab/CounselTrajLM-Qwen2.5-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UEC-InabaLab/CounselTrajLM-Qwen2.5-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/UEC-InabaLab/CounselTrajLM-Qwen2.5-7B
- SGLang
How to use UEC-InabaLab/CounselTrajLM-Qwen2.5-7B 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 "UEC-InabaLab/CounselTrajLM-Qwen2.5-7B" \ --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": "UEC-InabaLab/CounselTrajLM-Qwen2.5-7B", "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 "UEC-InabaLab/CounselTrajLM-Qwen2.5-7B" \ --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": "UEC-InabaLab/CounselTrajLM-Qwen2.5-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use UEC-InabaLab/CounselTrajLM-Qwen2.5-7B with Docker Model Runner:
docker model run hf.co/UEC-InabaLab/CounselTrajLM-Qwen2.5-7B
Add CounselTraj arXiv paper link
Browse files- README.md +3 -0
- SHA256SUMS +1 -1
README.md
CHANGED
|
@@ -17,6 +17,8 @@ tags:
|
|
| 17 |
|
| 18 |
# CounselTrajLM — Qwen2.5-7B
|
| 19 |
|
|
|
|
|
|
|
| 20 |
CounselTrajLM is a Chinese counseling dialogue model fine-tuned on
|
| 21 |
[CounselTrajD](https://github.com/UEC-InabaLab/CounselTraj#counseltrajd) to generate
|
| 22 |
the next counselor response from dialogue history. This version uses
|
|
@@ -111,5 +113,6 @@ licensing and attribution information is provided in the
|
|
| 111 |
author = "Qi, Zhiyang and Inaba, Michimasa",
|
| 112 |
booktitle = "Proceedings of the 20th Conference of the European Chapter of the Association for Computational Linguistics",
|
| 113 |
year = "2027",
|
|
|
|
| 114 |
}
|
| 115 |
```
|
|
|
|
| 17 |
|
| 18 |
# CounselTrajLM — Qwen2.5-7B
|
| 19 |
|
| 20 |
+
📄 **Paper:** [arXiv:2611.24168](https://arxiv.org/abs/2611.24168)
|
| 21 |
+
|
| 22 |
CounselTrajLM is a Chinese counseling dialogue model fine-tuned on
|
| 23 |
[CounselTrajD](https://github.com/UEC-InabaLab/CounselTraj#counseltrajd) to generate
|
| 24 |
the next counselor response from dialogue history. This version uses
|
|
|
|
| 113 |
author = "Qi, Zhiyang and Inaba, Michimasa",
|
| 114 |
booktitle = "Proceedings of the 20th Conference of the European Chapter of the Association for Computational Linguistics",
|
| 115 |
year = "2027",
|
| 116 |
+
url = "https://arxiv.org/abs/2611.24168",
|
| 117 |
}
|
| 118 |
```
|
SHA256SUMS
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
832dd9e00a68dd83b3c3fb9f5588dad7dcf337a0db50f7d9483f310cd292e92e LICENSE
|
| 2 |
-
|
| 3 |
b13601bed14fe2fc7b0646538b34017b61e35e7d06f63fc98861f0569d56ae78 base_origin.json
|
| 4 |
cd8e9439f0570856fd70470bf8889ebd8b5d1107207f67a5efb46e342330527f chat_template.jinja
|
| 5 |
9245e2b4e65a3c73658f3c52ad92d9894e6a343433b70ee20597d44ad3b2f473 config.json
|
|
|
|
| 1 |
832dd9e00a68dd83b3c3fb9f5588dad7dcf337a0db50f7d9483f310cd292e92e LICENSE
|
| 2 |
+
a245345a0650cc5396dba1f6c63ff4946a17c1b4c9cd380b31017a3af3d23e01 README.md
|
| 3 |
b13601bed14fe2fc7b0646538b34017b61e35e7d06f63fc98861f0569d56ae78 base_origin.json
|
| 4 |
cd8e9439f0570856fd70470bf8889ebd8b5d1107207f67a5efb46e342330527f chat_template.jinja
|
| 5 |
9245e2b4e65a3c73658f3c52ad92d9894e6a343433b70ee20597d44ad3b2f473 config.json
|