├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md └── custom ├── __init__.py ├── baseline_cross_entropy.py ├── candidate_penalty_ce_loss.py ├── evaluate_utils.py ├── evaluation.py ├── gpt2 └── run_gpt2.py ├── language_modeling_with_generation.py ├── metrics.py ├── report_metrics.py ├── sequence_generator.py ├── sequence_penalty_loss.py └── transformer_arch.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/README.md -------------------------------------------------------------------------------- /custom/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/__init__.py -------------------------------------------------------------------------------- /custom/baseline_cross_entropy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/baseline_cross_entropy.py -------------------------------------------------------------------------------- /custom/candidate_penalty_ce_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/candidate_penalty_ce_loss.py -------------------------------------------------------------------------------- /custom/evaluate_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/evaluate_utils.py -------------------------------------------------------------------------------- /custom/evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/evaluation.py -------------------------------------------------------------------------------- /custom/gpt2/run_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/gpt2/run_gpt2.py -------------------------------------------------------------------------------- /custom/language_modeling_with_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/language_modeling_with_generation.py -------------------------------------------------------------------------------- /custom/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/metrics.py -------------------------------------------------------------------------------- /custom/report_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/report_metrics.py -------------------------------------------------------------------------------- /custom/sequence_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/sequence_generator.py -------------------------------------------------------------------------------- /custom/sequence_penalty_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/sequence_penalty_loss.py -------------------------------------------------------------------------------- /custom/transformer_arch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/unlikelihood_training/HEAD/custom/transformer_arch.py --------------------------------------------------------------------------------