Text Generation
Transformers
Safetensors
Chinese
qwen3
counseltraj
counseltrajlm
counseling
conversational
merged
text-generation-inference
Instructions to use UEC-InabaLab/CounselTrajLM-Qwen3-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UEC-InabaLab/CounselTrajLM-Qwen3-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="UEC-InabaLab/CounselTrajLM-Qwen3-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("UEC-InabaLab/CounselTrajLM-Qwen3-8B") model = AutoModelForCausalLM.from_pretrained("UEC-InabaLab/CounselTrajLM-Qwen3-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 UEC-InabaLab/CounselTrajLM-Qwen3-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "UEC-InabaLab/CounselTrajLM-Qwen3-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": "UEC-InabaLab/CounselTrajLM-Qwen3-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/UEC-InabaLab/CounselTrajLM-Qwen3-8B
- SGLang
How to use UEC-InabaLab/CounselTrajLM-Qwen3-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 "UEC-InabaLab/CounselTrajLM-Qwen3-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": "UEC-InabaLab/CounselTrajLM-Qwen3-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 "UEC-InabaLab/CounselTrajLM-Qwen3-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": "UEC-InabaLab/CounselTrajLM-Qwen3-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use UEC-InabaLab/CounselTrajLM-Qwen3-8B with Docker Model Runner:
docker model run hf.co/UEC-InabaLab/CounselTrajLM-Qwen3-8B
Download validation.json from UEC-InabaLab/CounselTrajLM-Qwen3-8B: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/UEC-InabaLab/CounselTrajLM-Qwen3-8B/resolve/main/validation.json
- Command line
-
hf download hf://UEC-InabaLab/CounselTrajLM-Qwen3-8B/validation.json
-
curl -L -o validation.json https://huggingface.co/UEC-InabaLab/CounselTrajLM-Qwen3-8B/resolve/main/validation.json
1.64 kB
| { | |
| "status": "passed", | |
| "format": "merged BF16 safetensors", | |
| "tensor_count": 399, | |
| "parameter_count": 8190735360, | |
| "weight_shards": 9, | |
| "weight_file_bytes": 16381516744, | |
| "weight_sha256": { | |
| "model-00001-of-00009.safetensors": "20c2d6366ab85c90786ccdd829cd2b9e7d30ef3b2ebbb998280e7e4014b542ff", | |
| "model-00002-of-00009.safetensors": "67d8f28fb31e934eb264e4e9767124adfdfafc65ad7e64bb5e44efd601de4442", | |
| "model-00003-of-00009.safetensors": "13ae56cd287aa9b0ba83863ac812bd9b4b28a59c48db0bcaa793d84ab5f74e46", | |
| "model-00004-of-00009.safetensors": "b826b94db19b2607857d494d3dfec001d91127de169b9e95255535a4c64b4412", | |
| "model-00005-of-00009.safetensors": "6789d24df147b64b9fc26816e12ff2a694b37724b99b6b7d7d042ee20c294c4b", | |
| "model-00006-of-00009.safetensors": "a7a5ebed4327c9bcf619c8880bd8d816434dfd0cc7d418105efd71920e34aefd", | |
| "model-00007-of-00009.safetensors": "a1507148d1bfa88443763490e6ec7bd2ea89f3c07d35ac182a0bfebd834b3153", | |
| "model-00008-of-00009.safetensors": "7f309ac9b4d4fd65743d8de56d13d6a2af2e1ffdeba7b7e281d2d86acf5d5be9", | |
| "model-00009-of-00009.safetensors": "6ff583962066be3e30c856bcce4b19ef910beab1005df3929b663f9f21df6b36" | |
| }, | |
| "base_revision": "b968826d9c46dd6066d109eabc6255188de91218", | |
| "source_generation_checks_passed": 3, | |
| "all_parameters_finite": true, | |
| "release_inference_check": { | |
| "status": "passed", | |
| "examples": 3, | |
| "input": "examples/histories.jsonl", | |
| "output": "examples/replies.jsonl", | |
| "thinking_enabled": false, | |
| "decoding": "greedy", | |
| "max_new_tokens": 128, | |
| "quantization": "none", | |
| "torch": "2.5.1+cu121", | |
| "transformers": "5.13.0" | |
| } | |
| } | |