Search is not available for this dataset
repo
stringlengths
2
152
⌀
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
null
ParlAI-main/parlai/zoo/saferdialogues/build.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Blender 2.7B model fine-tuned on the SaFeRDialogues and BST (without persona) tasks. """ from parlai.core.build_dat...
617
23.72
84
py
null
ParlAI-main/parlai/zoo/sea/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/parlai/zoo/sea/bart_base.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Vanila BART-Large 400m parameter model with no retrieval. """ from parlai.core.build_data import built, download_mode...
741
32.727273
81
py
null
ParlAI-main/parlai/zoo/sea/bart_fid_sqse.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ BART-Large 400m FiD model. It generates search queries and uses them to retrieve docs from a search engine API. """ ...
800
32.375
84
py
null
ParlAI-main/parlai/zoo/sea/bart_sq_gen.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ BART-Large 400m parameter model for generating search queries in a conversation. """ from parlai.core.build_data impo...
766
33.863636
81
py
null
ParlAI-main/parlai/zoo/seeker/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/parlai/zoo/seeker/model_card.md
# SeeKeR Dialogue 3B SeeKeR Dialogue model; trained to search the internet, synthesize knowledge, and produce a dialogue response. - Developed by Facebook AI Research using [ParlAI](https://parl.ai/) - Model started training on February 09, 2022. - Type of model: projects.seeker.agents.Seeker:SeekerAgent ### Quick...
8,047
31.582996
478
md
null
ParlAI-main/parlai/zoo/seeker/r2c2_base_3B.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Base R2C2 3B Model. 3 Pre-training datasets (pushshift.io Reddit, RoBERTa, & CC) """ from parlai.zoo.seeker.seeker_d...
449
27.125
70
py
null
ParlAI-main/parlai/zoo/seeker/r2c2_base_400M.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Base R2C2 400M Model. 3 Pre-training datasets (pushshift.io Reddit, RoBERTa, & CC) """ from parlai.zoo.seeker.seeker...
453
27.375
70
py
null
ParlAI-main/parlai/zoo/seeker/r2c2_blenderbot_3B.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ R2C2 3B Model, fine-tuned on BST Tasks. """ from parlai.zoo.seeker.seeker_download import download_with_model_type ...
413
28.571429
70
py
null
ParlAI-main/parlai/zoo/seeker/r2c2_blenderbot_400M.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ R2C2 400M Model, fine-tuned on BST Tasks. """ from parlai.zoo.seeker.seeker_download import download_with_model_type ...
417
28.857143
70
py
null
ParlAI-main/parlai/zoo/seeker/seeker_dialogue_3B.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SeeKeR 3B Dialogue Model. """ from parlai.zoo.seeker.seeker_download import download_with_model_type def download(d...
399
27.571429
70
py
null
ParlAI-main/parlai/zoo/seeker/seeker_dialogue_400M.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SeeKeR 400M Dialogue Model. """ from parlai.zoo.seeker.seeker_download import download_with_model_type def download...
403
27.857143
70
py
null
ParlAI-main/parlai/zoo/seeker/seeker_download.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Utility for downloading seeker models. """ from parlai.core.build_data import built, download_models, get_model_dir i...
704
34.25
84
py
null
ParlAI-main/parlai/zoo/seeker/seeker_lm_dialogue_3B.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SeeKeR 3B LM + Dialogue Model. Can be used for both language modeling and dialogue. """ from parlai.zoo.seeker.seeke...
461
27.875
71
py
null
ParlAI-main/parlai/zoo/seeker/seeker_lm_large.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SeeKeR LM Large Model. GPT2-Large model fine-tuned on SeeKeR data. """ from parlai.zoo.seeker.seeker_download import...
438
26.4375
70
py
null
ParlAI-main/parlai/zoo/seeker/seeker_lm_med.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SeeKeR LM Medium Model. GPT2-Medium model fine-tuned on SeeKeR data. """ from parlai.zoo.seeker.seeker_download impo...
438
26.4375
70
py
null
ParlAI-main/parlai/zoo/seeker/seeker_lm_xl.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SeeKeR LM XL Model. GPT2-XL model fine-tuned on SeeKeR data. """ from parlai.zoo.seeker.seeker_download import downl...
429
25.875
70
py
null
ParlAI-main/parlai/zoo/sensitive_topics_classifier/__init__.py
0
0
0
py
null
ParlAI-main/parlai/zoo/sensitive_topics_classifier/build.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Pretrained Transformer-based classifier for classification of sensitive topics. Example command: ``` parlai eval_mod...
985
29.8125
83
py
null
ParlAI-main/parlai/zoo/style_gen/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/parlai/zoo/style_gen/c75_labeled_dialogue_generator.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Generator trained on dialogue datasets (BST, ConvAI2, ED, and WoW), with style labels (Image-Chat personalities) atta...
811
29.074074
85
py
null
ParlAI-main/parlai/zoo/style_gen/curr_only_classifier.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Classifier trained on Image-Chat turns 2 and 3 to classify the personality of an example given only the current utter...
778
27.851852
88
py
null
ParlAI-main/parlai/zoo/style_gen/prev_curr_classifier.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Classifier trained on Image-Chat turns 2 and 3 to classify the personality of an example given that utterance and the...
782
28
88
py
null
ParlAI-main/parlai/zoo/tod/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/parlai/zoo/tod/tod_base_no_api.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Task-Oriented Dialog pretrained model *without* usage of API Schemas, as described in (Chen et al 2021); see https://...
873
33.96
85
py
null
ParlAI-main/parlai/zoo/tod/tod_base_yes_api.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Task-Oriented Dialog pretrained model *with* usage of API Schemas, as described in (Chen et al 2021); see https://arx...
892
33.346154
88
py
null
ParlAI-main/parlai/zoo/tutorial_transformer_generator/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/parlai/zoo/tutorial_transformer_generator/build.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Pretrained mid-sized generative transformer for tutorial purposes. Source is the original source model for the Dodec...
923
34.538462
87
py
null
ParlAI-main/parlai/zoo/unittest/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/parlai/zoo/unittest/build.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Pretrained models used by unit tests. """ import os from parlai.core.build_data import download_models, built, get_...
932
27.272727
74
py
null
ParlAI-main/parlai/zoo/wikipedia_full/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/parlai/zoo/wikipedia_full/tfidf_retriever.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ TFIDF retriever for Wikipedia (for use with e.g. Wizard of Wikipedia). """ from parlai.core.build_data import downlo...
545
29.333333
71
py
null
ParlAI-main/parlai/zoo/wizard_of_wikipedia/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/parlai/zoo/wizard_of_wikipedia/end2end_generator.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Pretrained wizard of wikipedia end2end generative model. """ from parlai.core.build_data import download_models de...
527
26.789474
80
py
null
ParlAI-main/parlai/zoo/wizard_of_wikipedia/full_dialogue_retrieval_model.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Pretrained retrieval model on the Wizard of Wikipedia dialogue task. """ from parlai.core.build_data import download_...
551
31.470588
71
py
null
ParlAI-main/parlai/zoo/wizard_of_wikipedia/knowledge_retriever.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Pretrained retrieval model on the Wizard of Wikipedia dialogue task. """ from parlai.core.build_data import download_...
844
31.5
73
py
null
ParlAI-main/projects/README.md
# ParlAI Projects Here we list projects undertaken in the ParlAI framework that are shared publicly, either in the form of papers, public tasks (with leaderboards) and/or shared model code. This directory also contains subfolders for some of the projects which are housed in the ParlAI repo, others are maintained via ...
11,923
66.367232
438
md
null
ParlAI-main/projects/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import sys if sys.version_info < (3, 0): raise RuntimeError('ParlAI requires Python 3.')
293
28.4
65
py
null
ParlAI-main/projects/anti_scaling/README.md
# Anti-scaling Contains utility code for speeding up the inference time of generator models. ## Knowledge distillation `distillation.py` contains agents for performing knowledge distillation on a Transformer sequence-to-sequence model consisting of an encoder and a decoder. Two types of distillation are supported, D...
3,973
54.971831
400
md
null
ParlAI-main/projects/anti_scaling/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/projects/anti_scaling/distillation.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Code for distilling a transformer/generator model. """ from typing import Optional from parlai.core.params import Pa...
42,981
38.724584
144
py
null
ParlAI-main/projects/anti_scaling/scripts/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/projects/anti_scaling/scripts/remove_projection_matrices.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import torch from parlai.utils import pickle from parlai.utils.io import PathManager from parlai.utils...
1,553
30.08
87
py
null
ParlAI-main/projects/babi/memnn/memnn_bAbI_10k_task_parameter_sweep.sh
#!/bin/sh # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Reproduce results from https://arxiv.org/abs/1503.08895 bAbI tasks 1-3 with # 10k training examples PARLAI=../../.. ...
3,962
42.076087
111
sh
null
ParlAI-main/projects/babi/memnn/memnn_bAbI_1k_task_parameter_sweep.sh
#!/bin/sh # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. PARLAI=../../.. # Where ParlAI exists in filesystem relative to script DATE=`date +"%Y%m%d"` SWEEP_NAME=memnn_bAbI_tas...
3,852
42.292135
111
sh
null
ParlAI-main/projects/bb3/README.md
## BlenderBot 3: A 175B-parameter, publicly available chatbot that improves its skills & safety over time <p align="center"><img width="30%" src="anim.gif" /></p> - BlenderBot 3 (BB3) is a 175B-parameter, publicly available chatbot released with model weights, code, datasets, and model cards. We’ve deployed it in a l...
13,241
61.462264
617
md
null
ParlAI-main/projects/bb3/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/projects/bb3/constants.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from projects.seeker.utils import ( GENERATE_QUERY, IS_SEARCH_REQUIRED, DO_SEARCH, DO_NOT_SEARCH, ) from ...
1,490
23.442623
88
py
null
ParlAI-main/projects/bb3/prompts.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from projects.bb3.agents.module import Module import random ####################### # Important Constants # ###########...
36,048
62.916667
934
py
null
ParlAI-main/projects/bb3/agents/README.md
# BlenderBot 3 Agent Information This README outlines some of the internals of the BB3 agents. ## Modules, Explained The top level BB3 agents initialize a series of sub-agents that accomplish the necessary modular tasks of BB3, whether that be search decision, memory generation, final dialogue response, etc. The [mod...
13,678
31.569048
562
md
null
ParlAI-main/projects/bb3/agents/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/projects/bb3/agents/module.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ BB3 Module Definition. """ from enum import Enum from typing import Dict, List import projects.bb3.constants as CONS...
8,141
32.368852
146
py
null
ParlAI-main/projects/bb3/agents/opt_api_agent.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools import torch from typing import Optional, List, Dict, Any from parlai.core.agents import Agent, create...
31,935
35.962963
217
py
null
ParlAI-main/projects/bb3/agents/opt_bb3_agent.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ BB3 with OPT-175B Base. SDM: Search Decision Model MDM: Memory Decision Model SGM: Search Query Generator Model MGM:...
36,878
36.824615
131
py
null
ParlAI-main/projects/bb3/agents/r2c2_bb3_agent.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ BB3 with R2C2 base. SDM: Search Decision Model MDM: Memory Decision Model SGM: Search Query Generator Model MGM: Mem...
57,947
36.948919
135
py
null
ParlAI-main/projects/bb3/agents/search_agent.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict, List, Optional, Union from parlai.agents.rag.retrieve_api import ( SearchEngineRetrieve...
3,874
31.563025
86
py
null
ParlAI-main/projects/bb3/agents/utils.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import aiohttp import asyncio from enum import Enum import json import math from nltk.corpus import stopwords as nltk_sto...
22,847
31.500711
176
py
null
ParlAI-main/projects/bb3/holistic_bias/README.md
# Commands for running HolisticBias tests on BlenderBot 3 ## Setup ``` # Setting up the ResponsibleNLP repo git clone git@github.com:facebookresearch/ResponsibleNLP.git cd ResponsibleNLP python setup.py develop ``` ## Measuring perplexities and computing bias metrics ``` ### BB3-3B # (Tested with 8 32-GB GPUs) CUDA...
2,192
24.8
79
md
null
ParlAI-main/projects/bb3/holistic_bias/scripts/eval_175b_model.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from holistic_bias.run_bias_calculation import ( EvalModelOnHolisticBias, HolisticBiasTeacher, ) from holistic_b...
1,967
31.262295
104
py
null
ParlAI-main/projects/bb3/holistic_bias/scripts/eval_3b_model.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from holistic_bias.run_bias_calculation import ( EvalModelOnHolisticBias, ) from holistic_bias.src.bias_measurements...
633
24.36
65
py
null
ParlAI-main/projects/bb3/tasks/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import projects.bb3.tasks.mutators # type: ignore
251
30.5
65
py
null
ParlAI-main/projects/bb3/tasks/module_level_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from abc import ABC, abstractmethod import copy from typing import List, Optional, Union from parlai.core.agents import A...
13,725
31.145199
104
py
null
ParlAI-main/projects/bb3/tasks/mutators.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import nltk import os import random import copy from typing import List, Optional, Tuple from parlai.core.agents import c...
69,810
41.054819
145
py
null
ParlAI-main/projects/bb3/tasks/opt_decision_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.opt import Opt import parlai.utils.logging as logging from projects.bb3.tasks.r2c2_decision_tasks import...
3,490
32.567308
73
py
null
ParlAI-main/projects/bb3/tasks/opt_dialogue_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.opt import Opt import parlai.utils.logging as logging import parlai.tasks.convai2.agents as convai2 impor...
11,104
36.265101
87
py
null
ParlAI-main/projects/bb3/tasks/opt_knowledge_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List from parlai.core.opt import Opt import parlai.utils.logging as logging from projects.bb3.tasks.r2...
7,576
33.440909
76
py
null
ParlAI-main/projects/bb3/tasks/opt_memory_generation_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.opt import Opt import parlai.utils.logging as logging from parlai.tasks.msc.agents import PersonaSummary...
1,089
36.586207
73
py
null
ParlAI-main/projects/bb3/tasks/opt_search_generation_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.opt import Opt import parlai.utils.logging as logging from projects.bb3.tasks.r2c2_search_generation_tas...
1,113
33.8125
85
py
null
ParlAI-main/projects/bb3/tasks/r2c2_decision_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import random from typing import List, Tuple from parlai.core.opt import Opt import parlai.tasks.convai2.agents as convai...
5,685
31.306818
79
py
null
ParlAI-main/projects/bb3/tasks/r2c2_dialogue_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.opt import Opt import parlai.utils.logging as logging import parlai.tasks.convai2.agents as convai2 impor...
14,232
35.494872
86
py
null
ParlAI-main/projects/bb3/tasks/r2c2_knowledge_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Knowledge tasks used to train the BB3-3B Model. """ from typing import List from parlai.core.opt import Opt import par...
8,149
33.680851
80
py
null
ParlAI-main/projects/bb3/tasks/r2c2_memory_generation_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.tasks.msc.agents import PersonaSummaryTeacher import parlai.utils.logging as logging from projects.bb3.tasks.m...
882
43.15
80
py
null
ParlAI-main/projects/bb3/tasks/r2c2_search_generation_tasks.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import parlai.utils.logging as logging from projects.seeker.tasks.search_query import WoiSearchQueryTeacher as woi_sgm fro...
1,100
33.40625
79
py
null
ParlAI-main/projects/bb3/tests/opt_presets.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. INIT_OPT = { 'sdm_inference': 'greedy', 'sdm_beam_min_length': 1, 'sdm_beam_max_length': 10, 'sdm_gener...
10,895
36.572414
66
py
null
ParlAI-main/projects/bb3x/README.md
# Improving Open Language Models by Learning from Organic Interactions Jing Xu, Da Ju, Joshua Lane, Mojtaba Komeili, Eric Michael Smith, Megan Ung, Morteza Behrooz, William Ngan, Rashel Moritz, Sainbayar Sukhbaatar, Y-Lan Boureau, Jason Weston<sup>∗</sup>, Kurt Shuster<sup>∗</sup> - BlenderBot 3x is an update to [Blen...
7,715
96.670886
659
md
null
ParlAI-main/projects/bb3x/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/projects/bb3x/data_card.md
# BlenderBot 3x 175B data card ## Motivation **For what purpose was the dataset created? Was there a specific task in mind? Was there a specific gap that needed to be filled? Please provide a description.** The collected demo deploy data was used to create an improved iteration of BlenderBot. This dataset provides or...
19,412
117.371951
795
md
null
ParlAI-main/projects/bb3x/tasks/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/projects/bb3x/tasks/agents.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Teacher for the public chatbot data. """ import os import json from copy import deepcopy from parlai.core.message ...
9,532
28.332308
91
py
null
ParlAI-main/projects/bb3x/tasks/build.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Download and build the data if it does not exist. import os from parlai.core.build_data import DownloadableFile impor...
1,186
28.675
75
py
null
ParlAI-main/projects/beat_the_bot/README.md
# <img width="8%" src="bot.png"/> Beat The Bot ### A Game for Agents that learn interactively Dialogue research today functions almost entirely based on extensive supervised learning from humans talking to one another — usually crowdsourced or publicly available on the internet. This data can differ significantly in...
2,091
58.771429
123
md
null
ParlAI-main/projects/blender/README.md
# Recipes for building an open-domain chatbot This page has moved to [parl.ai/projects/recipes](http://parl.ai/projects/recipes).
131
32
83
md
null
ParlAI-main/projects/blenderbot2/README.md
## BlenderBot 2.0: An open source chatbot that builds long-term memory and searches the internet - A chatbot with its own long-term memory and the ability to access the internet. It outperforms existing models in terms of longer conversations over multiple sessions and is more knowledgeable and has more factual consis...
6,518
62.291262
435
md
null
ParlAI-main/projects/blenderbot2/__init__.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
199
32.333333
65
py
null
ParlAI-main/projects/blenderbot2/agents/README.md
# BlenderBot 2 Agent Code: FAQ Below, we have compiled a list of FAQs regarding the usage of BlenderBot2. Please open an issue if your issue is not addressed below. ### `ModuleNotFoundError: No module named 'transformers'` Please run `pip install transformers==4.3.3`. ### `ModuleNotFoundError: No module named 'parl...
6,842
53.744
383
md
null
ParlAI-main/projects/blenderbot2/agents/__init__.py
0
0
0
py
null
ParlAI-main/projects/blenderbot2/agents/blenderbot2.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ BlenderBot2 Agent Code. BlenderBot 2 combines a long-term memory module with a retriever module. The Search Query Ge...
34,689
34.111336
107
py
null
ParlAI-main/projects/blenderbot2/agents/modules.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Module code for BlenderBot2. """ import random import time import torch import torch.nn from typing import List, Tuple...
35,431
35.908333
99
py
null
ParlAI-main/projects/blenderbot2/agents/sub_modules.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SubModule code for BlenderBot2. Contains implementations of the Query Generator and Memory Decoder. """ from enum imp...
14,214
36.114883
90
py
null
ParlAI-main/projects/bst/README.md
## Blended Skill Talk ### _Can You Put it All Together: Evaluating Conversational Agents' Ability to Blend Skills_ Eric Michael Smith\*, Mary Williamson\*, Kurt Shuster, Jason Weston, Y-Lan Boureau ## Abstract Being engaging, knowledgeable, and empathetic are all desirable general qualities in a conversational agen...
2,333
88.769231
1,285
md
null
ParlAI-main/projects/contradiction/README.md
# *I like fish <span>&#x1F41F;</span>, especially dolphins <span>&#x1F42C;</span>:*<sup>[∗](#dolphion)</sup> Addressing Contradictions in Dialogue Modeling A study on *contradiction* detection and *non-contradiction* generation in dialogue modeling. The paper can be found here: [Nie et al. (2020)](https://arxiv.org/ab...
3,649
57.870968
455
md
null
ParlAI-main/projects/contradiction/download_with_raw_format.md
## Directly Download Raw Data The dataset (**DECODE**) can be download in [this_link](http://parl.ai/downloads/decode/decode_v0.1.zip). As described in the paper, **DECODE** includes 6 groups of dialogues: *Train*, *Dev*, *Test*, *Human-Bot*, *A2T*, *RCT*. | Group Name | Count | Description | | ----------...
4,450
62.585714
262
md
null
ParlAI-main/projects/controllable_dialogue/README.md
# Controllable Dialogue **This project has been archived and is no longer being maintained.** It was archived in March 2021. You can still find the code by checking out the `controllable_dialogue_archive` tag in your git repo. You may also browse the code [on GitHub](https://github.com/facebookresearch/ParlAI/tree/co...
16,872
42.712435
237
md
null
ParlAI-main/projects/convai2/README.md
# ConvAI2 Competition for NIPS 2018 We previously sponsored the ConvAI2 competition. See the [website](http://convai.io/) for more details. We've opted to archive the code at this time, and won't be maintaining future versions of it. You can still use the old code by switching to the `convai2archive` tag of ParlAI: ...
3,655
53.567164
457
md
null
ParlAI-main/projects/cringe/README.md
# The CRINGE Loss: Learning what language *not* to model Leonard Adolphs, Tianyu Gao, Jing Xu, Kurt Shuster, Sainbayar Sukhbaatar, Jason Weston ## Abstract Standard language model training employs gold human documents or human-human interaction data, and treats all training data as positive examples. Growing evide...
10,152
144.042857
3,119
md
null
ParlAI-main/projects/cringe/cringe_loss.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Transformer Agent with a contrastive loss. """ import torch from torch.nn import CrossEntropyLoss from torch.distribut...
15,809
35.682135
98
py
null
ParlAI-main/projects/cringe/safety_filter_world_logs.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List import argparse import json import os from tqdm import tqdm import random import collections de...
2,675
34.68
103
py
null
ParlAI-main/projects/cringe/teachers.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional from parlai.core.params import ParlaiParser from parlai.core.opt import Opt from parlai.tasks...
2,734
39.220588
127
py
null
ParlAI-main/projects/dialogue_bias/README.md
# Hi, my name is Martha: Using names to measure and mitigate bias in generative dialogue models Eric Michael Smith, Adina Williams ## Abstract All AI models are susceptible to learning biases in data that they are trained on. For generative dialogue models, being trained on real human conversations containing unbala...
3,249
68.148936
1,189
md