Text Generation
Transformers
Safetensors
Chinese
qwen3_5_text
qwen3_5
merged
psychological-counseling
counselor-response-generation
conversational
Instructions to use UEC-InabaLab/CounselTrajLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UEC-InabaLab/CounselTrajLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="UEC-InabaLab/CounselTrajLM") 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") model = AutoModelForCausalLM.from_pretrained("UEC-InabaLab/CounselTrajLM", 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 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "UEC-InabaLab/CounselTrajLM" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/UEC-InabaLab/CounselTrajLM
- SGLang
How to use UEC-InabaLab/CounselTrajLM 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use UEC-InabaLab/CounselTrajLM with Docker Model Runner:
docker model run hf.co/UEC-InabaLab/CounselTrajLM
Use CounselTraj name for the dialogue-act trajectory planner
Browse files- README.md +1 -1
- SHA256SUMS +1 -1
README.md
CHANGED
|
@@ -25,7 +25,7 @@ working inference script. The adapter requires the base model, pinned to revisio
|
|
| 25 |
|
| 26 |
Project, dataset, and evaluation prompts:
|
| 27 |
[UEC-InabaLab/CounselTraj](https://github.com/UEC-InabaLab/CounselTraj).
|
| 28 |
-
The separate [CounselTraj
|
| 29 |
model plans dialogue-act trajectories for data synthesis.
|
| 30 |
|
| 31 |
## Training details
|
|
|
|
| 25 |
|
| 26 |
Project, dataset, and evaluation prompts:
|
| 27 |
[UEC-InabaLab/CounselTraj](https://github.com/UEC-InabaLab/CounselTraj).
|
| 28 |
+
The separate [CounselTraj](https://huggingface.co/UEC-InabaLab/CounselTraj)
|
| 29 |
model plans dialogue-act trajectories for data synthesis.
|
| 30 |
|
| 31 |
## Training details
|
SHA256SUMS
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
d8476967ec836156efd1b99d571c78ec5d57fde8eba2633d34f24ea8816ce212 adapter_config.json
|
| 3 |
c4d89ce3b6cfdb53dba2927683331e2182c8767f3380527a78f0533b0f31e5bd adapter_model.safetensors
|
| 4 |
a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715 chat_template.jinja
|
|
|
|
| 1 |
+
94382b38f0e757e6d632c8d99bf91c991cf216ceaa1b904b318871cb988bb465 README.md
|
| 2 |
d8476967ec836156efd1b99d571c78ec5d57fde8eba2633d34f24ea8816ce212 adapter_config.json
|
| 3 |
c4d89ce3b6cfdb53dba2927683331e2182c8767f3380527a78f0533b0f31e5bd adapter_model.safetensors
|
| 4 |
a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715 chat_template.jinja
|