Text Generation
PEFT
Safetensors
Chinese
qwen3
lora
dialogue-act-planning
psychological-counseling
conversational
Instructions to use UEC-InabaLab/CounselTraj with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use UEC-InabaLab/CounselTraj with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B") model = PeftModel.from_pretrained(base_model, "UEC-InabaLab/CounselTraj") - Notebooks
- Google Colab
- Kaggle
Enable Resistance in client dialogue-act candidates
Browse files- README.md +5 -0
- SHA256SUMS +4 -4
- model_details.json +18 -1
- plan_trajectory.py +2 -0
- validation.json +18 -1
README.md
CHANGED
|
@@ -76,6 +76,11 @@ priors, content and phase scores, a repetition penalty, and a diversity bonus.
|
|
| 76 |
Use `plan_trajectory.py` to run this decoding procedure. Loading the adapter alone
|
| 77 |
provides the language-model component of the planner.
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
## Load the adapter in Python
|
| 80 |
|
| 81 |
```python
|
|
|
|
| 76 |
Use `plan_trajectory.py` to run this decoding procedure. Loading the adapter alone
|
| 77 |
provides the language-model component of the planner.
|
| 78 |
|
| 79 |
+
The client candidate inventory contains 14 tags, including `Resistance`
|
| 80 |
+
(rejection, reluctance, or resistance toward counselor interventions). This
|
| 81 |
+
candidate was added after the initial release; newly planned trajectories can
|
| 82 |
+
therefore differ from the original v4 outputs. The adapter weights are unchanged.
|
| 83 |
+
|
| 84 |
## Load the adapter in Python
|
| 85 |
|
| 86 |
```python
|
SHA256SUMS
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
d14558619c5941e26716db37de14547c202bffe9d0bffc2492bd9ea788bad2a3 adapter_config.json
|
| 3 |
f9cf6a1654d91c341678d2464098bc26c27bc58404cd57bc0a6f227d50bb6631 adapter_model.safetensors
|
| 4 |
c0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680 added_tokens.json
|
|
@@ -7,11 +7,11 @@ ebd1a1d94e94060f88466d87d10997daab72d235f6eb13140316ce67ca6c7a60 da_stats.json
|
|
| 7 |
b8955b4ed2477148b5a1b9803c4873f2bc9888498fed51e9a2d79cef8d4897b8 examples/input.jsonl
|
| 8 |
a8d98faa859e942ec71f7008abea92a21cfd7fcc3c3b26b4f02137945c502a16 examples/trajectory.json
|
| 9 |
8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5 merges.txt
|
| 10 |
-
|
| 11 |
-
|
| 12 |
5e8cce717f3c608b4496d812ff0bda2fe0419c337032a7ddd81c9869407227ed requirements.txt
|
| 13 |
76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd special_tokens_map.json
|
| 14 |
aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 tokenizer.json
|
| 15 |
443bfa629eb16387a12edbf92a76f6a6f10b2af3b53d87ba1550adfcf45f7fa0 tokenizer_config.json
|
| 16 |
-
|
| 17 |
ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910 vocab.json
|
|
|
|
| 1 |
+
cd82027e031fc96ad661cbc24fc0e3aefd88f636a35f1eaf6c2d5a92ba4385b1 README.md
|
| 2 |
d14558619c5941e26716db37de14547c202bffe9d0bffc2492bd9ea788bad2a3 adapter_config.json
|
| 3 |
f9cf6a1654d91c341678d2464098bc26c27bc58404cd57bc0a6f227d50bb6631 adapter_model.safetensors
|
| 4 |
c0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680 added_tokens.json
|
|
|
|
| 7 |
b8955b4ed2477148b5a1b9803c4873f2bc9888498fed51e9a2d79cef8d4897b8 examples/input.jsonl
|
| 8 |
a8d98faa859e942ec71f7008abea92a21cfd7fcc3c3b26b4f02137945c502a16 examples/trajectory.json
|
| 9 |
8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5 merges.txt
|
| 10 |
+
8c98c6250630bbbc9d890a982ea828299ec470a60838e115346d3fe009659231 model_details.json
|
| 11 |
+
d19530cd3d4399881b7c249c942e463227d7b6f222e4f2fb9d6930e57b8d92fc plan_trajectory.py
|
| 12 |
5e8cce717f3c608b4496d812ff0bda2fe0419c337032a7ddd81c9869407227ed requirements.txt
|
| 13 |
76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd special_tokens_map.json
|
| 14 |
aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 tokenizer.json
|
| 15 |
443bfa629eb16387a12edbf92a76f6a6f10b2af3b53d87ba1550adfcf45f7fa0 tokenizer_config.json
|
| 16 |
+
b98b5e148fee795744dfd9fdb495a65ac0d84d017009feb957d0b4597d71b730 validation.json
|
| 17 |
ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910 vocab.json
|
model_details.json
CHANGED
|
@@ -16,6 +16,23 @@
|
|
| 16 |
"prior_dialogues": 1010,
|
| 17 |
"script_changes": [
|
| 18 |
"Resolve adapter, prior and example paths relative to this release.",
|
| 19 |
-
"Set dialogue_chars default to 900, matching the saved production configuration."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
]
|
| 21 |
}
|
|
|
|
| 16 |
"prior_dialogues": 1010,
|
| 17 |
"script_changes": [
|
| 18 |
"Resolve adapter, prior and example paths relative to this release.",
|
| 19 |
+
"Set dialogue_chars default to 900, matching the saved production configuration.",
|
| 20 |
+
"Include client Resistance in the candidate inventory and prompt definitions."
|
| 21 |
+
],
|
| 22 |
+
"client_candidate_tags": [
|
| 23 |
+
"Greeting",
|
| 24 |
+
"SimpleAnswer",
|
| 25 |
+
"DetailedDescription",
|
| 26 |
+
"SelfDisclosure",
|
| 27 |
+
"Backchannel",
|
| 28 |
+
"Agreement",
|
| 29 |
+
"PositiveEmotion",
|
| 30 |
+
"Hesitation",
|
| 31 |
+
"Resistance",
|
| 32 |
+
"Question",
|
| 33 |
+
"Request",
|
| 34 |
+
"Thanking",
|
| 35 |
+
"UnderstandingCheck",
|
| 36 |
+
"Other"
|
| 37 |
]
|
| 38 |
}
|
plan_trajectory.py
CHANGED
|
@@ -30,6 +30,7 @@ CLIENT_TAGS = [
|
|
| 30 |
"Agreement",
|
| 31 |
"PositiveEmotion",
|
| 32 |
"Hesitation",
|
|
|
|
| 33 |
"Question",
|
| 34 |
"Request",
|
| 35 |
"Thanking",
|
|
@@ -61,6 +62,7 @@ TAG_DEFINITIONS = {
|
|
| 61 |
"Agreement": "agreement with counselor's view",
|
| 62 |
"PositiveEmotion": "hope, relief, confidence, positive change",
|
| 63 |
"Hesitation": "uncertainty, difficulty speaking, ambivalence",
|
|
|
|
| 64 |
"Question": "general question",
|
| 65 |
"Request": "request for advice or help",
|
| 66 |
"Thanking": "thanks",
|
|
|
|
| 30 |
"Agreement",
|
| 31 |
"PositiveEmotion",
|
| 32 |
"Hesitation",
|
| 33 |
+
"Resistance",
|
| 34 |
"Question",
|
| 35 |
"Request",
|
| 36 |
"Thanking",
|
|
|
|
| 62 |
"Agreement": "agreement with counselor's view",
|
| 63 |
"PositiveEmotion": "hope, relief, confidence, positive change",
|
| 64 |
"Hesitation": "uncertainty, difficulty speaking, ambivalence",
|
| 65 |
+
"Resistance": "rejection, reluctance, or resistance toward counselor advice, interpretation, or intervention",
|
| 66 |
"Question": "general question",
|
| 67 |
"Request": "request for advice or help",
|
| 68 |
"Thanking": "thanks",
|
validation.json
CHANGED
|
@@ -17,6 +17,23 @@
|
|
| 17 |
"torch": "2.5.1+cu121",
|
| 18 |
"transformers": "4.57.6",
|
| 19 |
"peft": "0.17.1",
|
| 20 |
-
"bitsandbytes": "0.49.2"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
}
|
|
|
|
| 17 |
"torch": "2.5.1+cu121",
|
| 18 |
"transformers": "4.57.6",
|
| 19 |
"peft": "0.17.1",
|
| 20 |
+
"bitsandbytes": "0.49.2",
|
| 21 |
+
"scope": "Initial release, before the Resistance candidate inventory update."
|
| 22 |
+
},
|
| 23 |
+
"resistance_candidate_check": {
|
| 24 |
+
"passed": true,
|
| 25 |
+
"client_candidate_count": 14,
|
| 26 |
+
"present_at_tested_steps": [
|
| 27 |
+
5,
|
| 28 |
+
25,
|
| 29 |
+
50,
|
| 30 |
+
70,
|
| 31 |
+
90
|
| 32 |
+
],
|
| 33 |
+
"present_in_prompt_definitions": true,
|
| 34 |
+
"existing_global_prior_positive": true,
|
| 35 |
+
"counselor_inventory_unchanged": true,
|
| 36 |
+
"generation_with_mocked_lm_preference_passed": true,
|
| 37 |
+
"adapter_weights_unchanged": true
|
| 38 |
}
|
| 39 |
}
|