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
Download validation.json from UEC-InabaLab/CounselTrajLM: direct link, hf CLI and curl.
- Browser
- Download file 2.66 kB
-
https://huggingface.co/UEC-InabaLab/CounselTrajLM/resolve/main/validation.json
- Command line
-
hf download hf://UEC-InabaLab/CounselTrajLM/validation.json
-
curl -L -o validation.json https://huggingface.co/UEC-InabaLab/CounselTrajLM/resolve/main/validation.json
2.66 kB
| { | |
| "status": "passed", | |
| "format": "merged BF16 text language model", | |
| "source_adapter_revision": "341e9b198c985ee75c982a43376015d806b15522", | |
| "source_adapter_sha256": "c4d89ce3b6cfdb53dba2927683331e2182c8767f3380527a78f0533b0f31e5bd", | |
| "matches_source_final_adapter": true, | |
| "base_revision": "c202236235762e1c871ad0ccb60c8ee5ba337b9a", | |
| "all_parameters_finite": true, | |
| "parameter_count": 8953803264, | |
| "parameter_dtypes": { | |
| "torch.bfloat16": 8953803264 | |
| }, | |
| "tensor_count": 427, | |
| "weight_shards": 10, | |
| "weight_file_bytes": 17907662272, | |
| "weight_sha256": { | |
| "model-00001-of-00010.safetensors": "dd63614f1dc80dce2d83be3f3e69af1f8a0ebc8add9b8e0abf3910f563e44344", | |
| "model-00002-of-00010.safetensors": "856617f65c8f2d2686c0aec3c6036c9bf53466ed6c90275bee6d0ecaa8263b30", | |
| "model-00003-of-00010.safetensors": "e956a1f8536baf45076db19dffb96f258a6d94fe0a545f2bb38fed9517ab19a0", | |
| "model-00004-of-00010.safetensors": "847db00981824e02e112fa1f57526d1feebfa268d1e85c32c1e24b9d4641afc7", | |
| "model-00005-of-00010.safetensors": "5c13aa2a1fe366710e1dcd1484901e7725afdde55b2c717a2a25797d93b75058", | |
| "model-00006-of-00010.safetensors": "6c65097043a90de2d46d0d01d698ef1a32bde00a3baf458434ffbf0906254a31", | |
| "model-00007-of-00010.safetensors": "7de8c454f2661fd3f6e6a7c0a46dc8e6915a34caf3fac961b895b306d64b89b9", | |
| "model-00008-of-00010.safetensors": "293d1a770da768e17860c9915a55ea26d178067d118cfdbdc2c285577dc21b87", | |
| "model-00009-of-00010.safetensors": "9d99b5f3e4bff23afe10799d21ca22eb6e866cbd17a78428e6e4da6fb8466211", | |
| "model-00010-of-00010.safetensors": "d420fe217cc622433d5ec2bb1620ea34eaf4a4561e3a55b69cbe8856b17705dc" | |
| }, | |
| "merge_comparison": [ | |
| { | |
| "id": "synthetic-anxiety", | |
| "logit_cosine_similarity": 0.9999359846115112, | |
| "mean_absolute_logit_difference": 0.01997707225382328, | |
| "max_absolute_logit_difference": 0.125, | |
| "same_next_token": true | |
| }, | |
| { | |
| "id": "synthetic-interpersonal", | |
| "logit_cosine_similarity": 0.9999428391456604, | |
| "mean_absolute_logit_difference": 0.018034368753433228, | |
| "max_absolute_logit_difference": 0.125, | |
| "same_next_token": true | |
| }, | |
| { | |
| "id": "synthetic-work", | |
| "logit_cosine_similarity": 0.9999374151229858, | |
| "mean_absolute_logit_difference": 0.02002718113362789, | |
| "max_absolute_logit_difference": 0.125, | |
| "same_next_token": true | |
| } | |
| ], | |
| "gpu_smoke_test": { | |
| "passed": true, | |
| "examples": 3, | |
| "thinking_enabled": false, | |
| "quantization": "none", | |
| "output": "examples/replies.jsonl", | |
| "transformers": "5.13.0", | |
| "torch": "2.5.1+cu121" | |
| }, | |
| "removed_local_config_fields": [] | |
| } | |