From 17c546d3286f8b2b59dee96db5778b90dbbcb92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9C=80=E5=BD=B0?= Date: Thu, 20 Jul 2023 17:53:11 +0800 Subject: [PATCH] update source code of spokenwoz --- .../multiwoz2.0/space-103/hparams.json | 103 ------------------ .../space-103dst10.infer/hparams.json | 103 ------------------ .../space-103spacee2e.infer/hparams.json | 103 ------------------ .../space-103spacepolicy.infer/hparams.json | 103 ------------------ 4 files changed, 412 deletions(-) delete mode 100644 spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103/hparams.json delete mode 100644 spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103dst10.infer/hparams.json delete mode 100644 spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103spacee2e.infer/hparams.json delete mode 100644 spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103spacepolicy.infer/hparams.json diff --git a/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103/hparams.json b/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103/hparams.json deleted file mode 100644 index b0300d91..00000000 --- a/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103/hparams.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "do_train": true, - "do_test": false, - "do_dst": false, - "do_infer": false, - "num_infer_batches": null, - "hparams_file": null, - "BPETextField": { - "vocab_path": "./space/model/Bert/vocab.txt", - "version": "2.0", - "data_name": "multiwoz", - "data_root": "./space", - "data_processed": "data_for_space_encoded.data.json", - "filtered": false, - "prompt_num_for_understand": 5, - "prompt_num_for_policy": 5, - "understand": false, - "policy": false, - "generation": true, - "with_query_bow": false, - "with_resp_bow": false, - "max_len": 1024, - "min_utt_len": 1, - "max_utt_len": 50, - "min_ctx_turn": 1, - "max_ctx_turn": 20, - "tokenizer_type": "Bert" - }, - "Dataset": { - "data_dir": "tmp_is_no", - "with_mlm": true, - "with_contrastive": true, - "num_process": 1, - "trigger_role": "system", - "trigger_data": "", - "abandon_label": true, - "dynamic_score": true, - "learning_method": "super" - }, - "Trainer": { - "seed": 10, - "gpu": 1, - "use_data_distributed": false, - "valid_metric_name": "-loss", - "num_epochs": 25, - "save_dir": "./space/outputs/multiwoz2.0/space-103", - "token_loss": true, - "batch_size": 2, - "log_steps": 10, - "valid_steps": 0, - "save_checkpoint": true, - "save_summary": false, - "shuffle": true, - "sort_pool_size": 0 - }, - "Model": { - "init_checkpoint": "./space/model/SPACE", - "model": "GenUnifiedTransformer", - "num_token_embeddings": -1, - "num_pos_embeddings": 512, - "num_type_embeddings": 2, - "num_turn_embeddings": 17, - "temperature": 0.07, - "hidden_dim": 768, - "num_heads": 12, - "num_layers": 12, - "padding_idx": 0, - "dropout": 0.1, - "embed_dropout": 0.0, - "attn_dropout": 0.1, - "ff_dropout": 0.1, - "mlm_ratio": 0.1, - "mmd_ratio": 1.0, - "pos_trainable": true, - "with_pool": true, - "label_smooth": 0.0, - "initializer_range": 0.02, - "lr": 1e-05, - "weight_decay": 0.0, - "gradient_accumulation_steps": 1, - "warmup_steps": 2000, - "max_grad_norm": 5.0 - }, - "Generator": { - "generator": "BeamSearch", - "min_gen_len": 1, - "max_gen_len": 30, - "use_true_prev_bspn": false, - "use_true_prev_aspn": false, - "use_true_db_pointer": false, - "use_true_prev_resp": false, - "use_true_curr_bspn": false, - "use_true_curr_aspn": false, - "use_all_previous_context": true, - "use_true_bspn_for_ctr_eval": true, - "use_true_domain_for_ctr_eval": true, - "beam_size": 5, - "length_average": false, - "length_penalty": -1.0, - "ignore_unk": true - }, - "use_gpu": true -} \ No newline at end of file diff --git a/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103dst10.infer/hparams.json b/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103dst10.infer/hparams.json deleted file mode 100644 index 6377ad49..00000000 --- a/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103dst10.infer/hparams.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "do_train": false, - "do_test": false, - "do_dst": true, - "do_infer": true, - "num_infer_batches": null, - "hparams_file": null, - "BPETextField": { - "vocab_path": "space/model/Bert/vocab.txt", - "version": "2.0", - "data_name": "multiwoz", - "data_root": "space", - "data_processed": "data_for_space_encoded.data.json", - "filtered": false, - "prompt_num_for_understand": 5, - "prompt_num_for_policy": 5, - "understand": false, - "policy": false, - "generation": true, - "with_query_bow": false, - "with_resp_bow": false, - "max_len": 1024, - "min_utt_len": 1, - "max_utt_len": 50, - "min_ctx_turn": 1, - "max_ctx_turn": 100, - "tokenizer_type": "Bert" - }, - "Dataset": { - "data_dir": "tmp_is_no", - "with_mlm": true, - "with_contrastive": true, - "num_process": 1, - "trigger_role": "system", - "trigger_data": "", - "abandon_label": true, - "dynamic_score": true, - "learning_method": "super" - }, - "Trainer": { - "seed": 10, - "gpu": 1, - "use_data_distributed": false, - "valid_metric_name": "-loss", - "num_epochs": 10, - "save_dir": "space/outputs/multiwoz2.0/space-103dst10.infer", - "token_loss": true, - "batch_size": 1, - "log_steps": 100, - "valid_steps": 2000, - "save_checkpoint": true, - "save_summary": false, - "shuffle": true, - "sort_pool_size": 0 - }, - "Model": { - "init_checkpoint": "space/outputs/multiwoz2.0/space-103/state_epoch_10", - "model": "GenUnifiedTransformer", - "num_token_embeddings": -1, - "num_pos_embeddings": 512, - "num_type_embeddings": 2, - "num_turn_embeddings": 17, - "temperature": 0.07, - "hidden_dim": 768, - "num_heads": 12, - "num_layers": 12, - "padding_idx": 0, - "dropout": 0.1, - "embed_dropout": 0.0, - "attn_dropout": 0.1, - "ff_dropout": 0.1, - "mlm_ratio": 0.1, - "mmd_ratio": 1.0, - "pos_trainable": true, - "with_pool": true, - "label_smooth": 0.0, - "initializer_range": 0.02, - "lr": 5e-05, - "weight_decay": 0.0, - "gradient_accumulation_steps": 1, - "warmup_steps": -1, - "max_grad_norm": 5.0 - }, - "Generator": { - "generator": "BeamSearch", - "min_gen_len": 1, - "max_gen_len": 100, - "use_true_prev_bspn": false, - "use_true_prev_aspn": true, - "use_true_db_pointer": true, - "use_true_prev_resp": true, - "use_true_curr_bspn": false, - "use_true_curr_aspn": true, - "use_all_previous_context": true, - "use_true_bspn_for_ctr_eval": true, - "use_true_domain_for_ctr_eval": true, - "beam_size": 1, - "length_average": false, - "length_penalty": -1.0, - "ignore_unk": true - }, - "use_gpu": true -} \ No newline at end of file diff --git a/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103spacee2e.infer/hparams.json b/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103spacee2e.infer/hparams.json deleted file mode 100644 index b0d3b98f..00000000 --- a/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103spacee2e.infer/hparams.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "do_train": false, - "do_test": false, - "do_dst": false, - "do_infer": true, - "num_infer_batches": null, - "hparams_file": null, - "BPETextField": { - "vocab_path": "space/model/Bert/vocab.txt", - "version": "2.0", - "data_name": "multiwoz", - "data_root": "space", - "data_processed": "data_for_space_encoded.data.json", - "filtered": false, - "prompt_num_for_understand": 5, - "prompt_num_for_policy": 5, - "understand": false, - "policy": false, - "generation": true, - "with_query_bow": false, - "with_resp_bow": false, - "max_len": 1024, - "min_utt_len": 1, - "max_utt_len": 50, - "min_ctx_turn": 1, - "max_ctx_turn": 20, - "tokenizer_type": "Bert" - }, - "Dataset": { - "data_dir": "tmp_is_no", - "with_mlm": true, - "with_contrastive": true, - "num_process": 1, - "trigger_role": "system", - "trigger_data": "", - "abandon_label": true, - "dynamic_score": true, - "learning_method": "super" - }, - "Trainer": { - "seed": 10, - "gpu": 1, - "use_data_distributed": false, - "valid_metric_name": "-loss", - "num_epochs": 10, - "save_dir": "space/outputs/multiwoz2.0/space-103spacee2e.infer", - "token_loss": true, - "batch_size": 1, - "log_steps": 100, - "valid_steps": 2000, - "save_checkpoint": true, - "save_summary": false, - "shuffle": true, - "sort_pool_size": 0 - }, - "Model": { - "init_checkpoint": "space/outputs/multiwoz2.0/space-103/state_epoch_25", - "model": "GenUnifiedTransformer", - "num_token_embeddings": -1, - "num_pos_embeddings": 512, - "num_type_embeddings": 2, - "num_turn_embeddings": 17, - "temperature": 0.07, - "hidden_dim": 768, - "num_heads": 12, - "num_layers": 12, - "padding_idx": 0, - "dropout": 0.1, - "embed_dropout": 0.0, - "attn_dropout": 0.1, - "ff_dropout": 0.1, - "mlm_ratio": 0.1, - "mmd_ratio": 1.0, - "pos_trainable": true, - "with_pool": true, - "label_smooth": 0.0, - "initializer_range": 0.02, - "lr": 5e-05, - "weight_decay": 0.0, - "gradient_accumulation_steps": 1, - "warmup_steps": -1, - "max_grad_norm": 5.0 - }, - "Generator": { - "generator": "BeamSearch", - "min_gen_len": 1, - "max_gen_len": 100, - "use_true_prev_bspn": false, - "use_true_prev_aspn": false, - "use_true_db_pointer": false, - "use_true_prev_resp": false, - "use_true_curr_bspn": false, - "use_true_curr_aspn": false, - "use_all_previous_context": true, - "use_true_bspn_for_ctr_eval": true, - "use_true_domain_for_ctr_eval": true, - "beam_size": 1, - "length_average": false, - "length_penalty": -1.0, - "ignore_unk": true - }, - "use_gpu": true -} \ No newline at end of file diff --git a/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103spacepolicy.infer/hparams.json b/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103spacepolicy.infer/hparams.json deleted file mode 100644 index 55014ed9..00000000 --- a/spokenwoz/Finetuning/space_baseline/space-3/space/outputs/multiwoz2.0/space-103spacepolicy.infer/hparams.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "do_train": false, - "do_test": false, - "do_dst": false, - "do_infer": true, - "num_infer_batches": null, - "hparams_file": null, - "BPETextField": { - "vocab_path": "space/model/Bert/vocab.txt", - "version": "2.0", - "data_name": "multiwoz", - "data_root": "space", - "data_processed": "data_for_space_encoded.data.json", - "filtered": false, - "prompt_num_for_understand": 5, - "prompt_num_for_policy": 5, - "understand": false, - "policy": false, - "generation": true, - "with_query_bow": false, - "with_resp_bow": false, - "max_len": 1024, - "min_utt_len": 1, - "max_utt_len": 50, - "min_ctx_turn": 1, - "max_ctx_turn": 20, - "tokenizer_type": "Bert" - }, - "Dataset": { - "data_dir": "tmp_is_no", - "with_mlm": true, - "with_contrastive": true, - "num_process": 1, - "trigger_role": "system", - "trigger_data": "", - "abandon_label": true, - "dynamic_score": true, - "learning_method": "super" - }, - "Trainer": { - "seed": 10, - "gpu": 1, - "use_data_distributed": false, - "valid_metric_name": "-loss", - "num_epochs": 10, - "save_dir": "space/outputs/multiwoz2.0/space-103spacepolicy.infer", - "token_loss": true, - "batch_size": 1, - "log_steps": 100, - "valid_steps": 2000, - "save_checkpoint": true, - "save_summary": false, - "shuffle": true, - "sort_pool_size": 0 - }, - "Model": { - "init_checkpoint": "space/outputs/multiwoz2.0/space-103/state_epoch_10", - "model": "GenUnifiedTransformer", - "num_token_embeddings": -1, - "num_pos_embeddings": 512, - "num_type_embeddings": 2, - "num_turn_embeddings": 17, - "temperature": 0.07, - "hidden_dim": 768, - "num_heads": 12, - "num_layers": 12, - "padding_idx": 0, - "dropout": 0.1, - "embed_dropout": 0.0, - "attn_dropout": 0.1, - "ff_dropout": 0.1, - "mlm_ratio": 0.1, - "mmd_ratio": 1.0, - "pos_trainable": true, - "with_pool": true, - "label_smooth": 0.0, - "initializer_range": 0.02, - "lr": 5e-05, - "weight_decay": 0.0, - "gradient_accumulation_steps": 1, - "warmup_steps": -1, - "max_grad_norm": 5.0 - }, - "Generator": { - "generator": "BeamSearch", - "min_gen_len": 1, - "max_gen_len": 100, - "use_true_prev_bspn": true, - "use_true_prev_aspn": false, - "use_true_db_pointer": true, - "use_true_prev_resp": false, - "use_true_curr_bspn": true, - "use_true_curr_aspn": false, - "use_all_previous_context": true, - "use_true_bspn_for_ctr_eval": true, - "use_true_domain_for_ctr_eval": true, - "beam_size": 1, - "length_average": false, - "length_penalty": -1.0, - "ignore_unk": true - }, - "use_gpu": true -} \ No newline at end of file