backup contextual-turn-encoder-base-custom-bidi-full
Browse files- contextual-turn-encoder-base-custom-bidi-full/best/config.json +16 -0
- contextual-turn-encoder-base-custom-bidi-full/best/model.safetensors +3 -0
- contextual-turn-encoder-base-custom-bidi-full/best/training_args.json +7 -0
- contextual-turn-encoder-base-custom-bidi-full/config.json +16 -0
- contextual-turn-encoder-base-custom-bidi-full/config.yaml +63 -0
- contextual-turn-encoder-base-custom-bidi-full/model.safetensors +3 -0
- contextual-turn-encoder-base-custom-bidi-full/training_args.json +7 -0
- contextual-turn-encoder-base-custom-bidi-full/trainlog.jsonl +10 -0
contextual-turn-encoder-base-custom-bidi-full/best/config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input_dim": 768,
|
| 3 |
+
"hidden_dim": 768,
|
| 4 |
+
"output_dim": 768,
|
| 5 |
+
"num_layers": 6,
|
| 6 |
+
"num_heads": 8,
|
| 7 |
+
"dropout": 0.1,
|
| 8 |
+
"max_turns": 64,
|
| 9 |
+
"attention_mode": "bidirectional",
|
| 10 |
+
"use_speaker_embeddings": true,
|
| 11 |
+
"num_speakers": 4,
|
| 12 |
+
"layer_norm": true,
|
| 13 |
+
"ff_dim": 3072,
|
| 14 |
+
"activation": "gelu",
|
| 15 |
+
"output_residual": true
|
| 16 |
+
}
|
contextual-turn-encoder-base-custom-bidi-full/best/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc5246143435b908a26228514e05ab51089f89ea95151d72c5d730b65c51c557
|
| 3 |
+
size 175072720
|
contextual-turn-encoder-base-custom-bidi-full/best/training_args.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"mode": "bidirectional",
|
| 3 |
+
"epoch": 4,
|
| 4 |
+
"train_loss": 1.43924,
|
| 5 |
+
"val_loss": 2.9518,
|
| 6 |
+
"epoch_sec": 1904.1
|
| 7 |
+
}
|
contextual-turn-encoder-base-custom-bidi-full/config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input_dim": 768,
|
| 3 |
+
"hidden_dim": 768,
|
| 4 |
+
"output_dim": 768,
|
| 5 |
+
"num_layers": 6,
|
| 6 |
+
"num_heads": 8,
|
| 7 |
+
"dropout": 0.1,
|
| 8 |
+
"max_turns": 64,
|
| 9 |
+
"attention_mode": "bidirectional",
|
| 10 |
+
"use_speaker_embeddings": true,
|
| 11 |
+
"num_speakers": 4,
|
| 12 |
+
"layer_norm": true,
|
| 13 |
+
"ff_dim": 3072,
|
| 14 |
+
"activation": "gelu",
|
| 15 |
+
"output_residual": true
|
| 16 |
+
}
|
contextual-turn-encoder-base-custom-bidi-full/config.yaml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
input_dim: 768
|
| 3 |
+
hidden_dim: 768
|
| 4 |
+
output_dim: 768
|
| 5 |
+
num_layers: 6
|
| 6 |
+
num_heads: 8
|
| 7 |
+
dropout: 0.1
|
| 8 |
+
max_turns: 64
|
| 9 |
+
attention_mode: bidirectional
|
| 10 |
+
use_speaker_embeddings: true
|
| 11 |
+
num_speakers: 4
|
| 12 |
+
layer_norm: true
|
| 13 |
+
ff_dim: 3072
|
| 14 |
+
activation: gelu
|
| 15 |
+
output_residual: true
|
| 16 |
+
losses:
|
| 17 |
+
masked_reconstruction:
|
| 18 |
+
enabled: null
|
| 19 |
+
mask_prob: 0.15
|
| 20 |
+
weight: 1.0
|
| 21 |
+
next_turn_prediction:
|
| 22 |
+
enabled: null
|
| 23 |
+
weight: 1.0
|
| 24 |
+
embedding_retrieval:
|
| 25 |
+
enabled: true
|
| 26 |
+
weight: 1.0
|
| 27 |
+
temperature: 0.07
|
| 28 |
+
normalize: true
|
| 29 |
+
candidate_mode: in_batch
|
| 30 |
+
target: auto
|
| 31 |
+
lambda_cosine: 1.0
|
| 32 |
+
training:
|
| 33 |
+
seed: 42
|
| 34 |
+
batch_size: 128
|
| 35 |
+
epochs: 10
|
| 36 |
+
learning_rate: 0.0002
|
| 37 |
+
weight_decay: 0.01
|
| 38 |
+
warmup_ratio: 0.05
|
| 39 |
+
gradient_clip_norm: 1.0
|
| 40 |
+
device: mps
|
| 41 |
+
mixed_precision: false
|
| 42 |
+
num_workers: 0
|
| 43 |
+
log_interval: 100
|
| 44 |
+
output_dir: models/contextual-turn-encoder-base
|
| 45 |
+
data:
|
| 46 |
+
path: null
|
| 47 |
+
max_turns: 64
|
| 48 |
+
window: truncate
|
| 49 |
+
stride: 32
|
| 50 |
+
dialogue_id_col: dialogue_id
|
| 51 |
+
turn_id_col: turn_id
|
| 52 |
+
utterance_col: utterance
|
| 53 |
+
speaker_col: speaker
|
| 54 |
+
embedding_col: embedding
|
| 55 |
+
speaker_map: null
|
| 56 |
+
base_encoder:
|
| 57 |
+
model_name: sergioburdisso/dialog2flow-joint-bert-base
|
| 58 |
+
backend: sentence_transformers
|
| 59 |
+
batch_size: 64
|
| 60 |
+
normalize: false
|
| 61 |
+
freeze: true
|
| 62 |
+
device: auto
|
| 63 |
+
cache_dir: null
|
contextual-turn-encoder-base-custom-bidi-full/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab7141b56c695aab34b682eba8b2ec64bd46e894ef168e90e8344b475f0e31e2
|
| 3 |
+
size 175072720
|
contextual-turn-encoder-base-custom-bidi-full/training_args.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"mode": "bidirectional",
|
| 3 |
+
"epoch": 10,
|
| 4 |
+
"train_loss": 0.48214,
|
| 5 |
+
"val_loss": 3.03056,
|
| 6 |
+
"epoch_sec": 986.7
|
| 7 |
+
}
|
contextual-turn-encoder-base-custom-bidi-full/trainlog.jsonl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"mode": "bidirectional", "epoch": 1, "train_loss": 3.41986, "val_loss": 3.57963, "epoch_sec": 1278.6}
|
| 2 |
+
{"mode": "bidirectional", "epoch": 2, "train_loss": 2.16521, "val_loss": 3.17761, "epoch_sec": 1099.3}
|
| 3 |
+
{"mode": "bidirectional", "epoch": 3, "train_loss": 1.75156, "val_loss": 3.00788, "epoch_sec": 1105.8}
|
| 4 |
+
{"mode": "bidirectional", "epoch": 4, "train_loss": 1.43924, "val_loss": 2.9518, "epoch_sec": 1904.1}
|
| 5 |
+
{"mode": "bidirectional", "epoch": 5, "train_loss": 1.16854, "val_loss": 2.9893, "epoch_sec": 1159.4}
|
| 6 |
+
{"mode": "bidirectional", "epoch": 6, "train_loss": 0.94373, "val_loss": 3.02662, "epoch_sec": 1110.8}
|
| 7 |
+
{"mode": "bidirectional", "epoch": 7, "train_loss": 0.76426, "val_loss": 3.02846, "epoch_sec": 1166.8}
|
| 8 |
+
{"mode": "bidirectional", "epoch": 8, "train_loss": 0.63033, "val_loss": 3.0518, "epoch_sec": 1117.7}
|
| 9 |
+
{"mode": "bidirectional", "epoch": 9, "train_loss": 0.53636, "val_loss": 3.03342, "epoch_sec": 1062.4}
|
| 10 |
+
{"mode": "bidirectional", "epoch": 10, "train_loss": 0.48214, "val_loss": 3.03056, "epoch_sec": 986.7}
|