Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
707 commits
Select commit Hold shift + click to select a range
02803a1
broadcast the whole optimizer state to each rank
Feb 12, 2021
09945b4
Fixes bugs of evaluation with BLEU score when training with multi-gpu…
cordercorder Feb 12, 2021
5ac5e8a
fix sharing objects between tasks (#1623)
alexeib Feb 13, 2021
43415b4
Prepend embedding layer when return_all_hiddens=True in TransformerEn…
Feb 16, 2021
54423d3
refactor RobertaEncoder (#1560)
Feb 16, 2021
7096ac3
Make validate.py work with model parallel (#1570)
Feb 16, 2021
e0788f7
fix bart generation bug (#1629)
sshleifer Feb 17, 2021
7040ce7
LASER training code (#1207)
Celebio Feb 18, 2021
3bc43c1
Fix speed regression after RobertaEncoder refactor (#1626)
Feb 18, 2021
da9eaba
Add support for multi-channel audio and example for mTEDx data (#3253)
esalesky Feb 18, 2021
284a86a
remove the missing _device property
Feb 19, 2021
d2ee588
Simultaneous Speech Translation Model (#1607)
xutaima Feb 19, 2021
523fe83
Integrate Simul ST model into pyspeech
sravyapopuri388 Feb 19, 2021
675f608
Fix LibriSpeech data prep script
kahne Feb 19, 2021
2909ee1
Fix bug for issue (#3211) (#3212)
josephsuh357 Feb 19, 2021
3ef1888
Remove extra arg min_length and fix min_sample_size behavior (#3249)
gazay Feb 19, 2021
c6b5c00
fix criterion name check when resuming from checkpoint
Feb 19, 2021
ae22da6
Correct the estimation of cnn output lengths in convtransformer (#1636)
xutaima Feb 20, 2021
61e46bb
Fix attempt to unlink directory copied into source package (Python 3.…
Feb 20, 2021
4cf7d76
Hydra Integration doc should refer to non legacy task (#1619)
Mortimerp9 Feb 20, 2021
38258a7
Update FairseqSimulSTAgent to make it generic and reusable internally
sravyapopuri388 Feb 22, 2021
808b751
Improve torchscript compatibility of transfomer and transformer pg (#…
madelagua Feb 22, 2021
89cd70c
Fixed scripts and instructions for reproducing the results. (#3264)
mfomicheva Feb 22, 2021
b9778da
Small fixes for flow-cli usage
Feb 22, 2021
ab56066
Fixes circular import as complained by python (#3257)
freewym Feb 22, 2021
c3d2bee
efficient batch level sampling
Feb 24, 2021
55e48f1
downcast indices in TokenBlockDataset (#1647)
sshleifer Feb 24, 2021
5c008e0
make LanguageModelingTask 1% simpler (#1641)
sshleifer Feb 24, 2021
52daa1b
move code to .py files, document usage (#1637)
sshleifer Feb 24, 2021
fb3fadb
Set DynamicLossScaler class defaults to match CLI defaults (#1649)
Feb 24, 2021
b8651bc
actually checking gradnorm consistency
Feb 24, 2021
d3890e5
Add HiveScorer to read data from hive and EverstoreAudioInstance to l…
sravyapopuri388 Feb 25, 2021
f569c02
Relocate simultaneous translation code (#1639)
xutaima Feb 26, 2021
4f881a7
TokenBlockDataset np type promotion issue (#1658)
sshleifer Feb 27, 2021
5354aa3
github CI install pyarrow
Feb 28, 2021
e5e8b3f
Fix nearly all unit-test warnings (#1652)
sshleifer Feb 28, 2021
39e5513
Fix the order of constraints in LanguagePairDataset (#3280)
hiromu Mar 1, 2021
1c0439b
fixes circular imports incurred by a recent commit (#3286)
freewym Mar 2, 2021
3100d0b
ioPath async - opt-in Fairseq integration (#1635)
EricZLou Mar 2, 2021
12e21b9
Add global cmvn for mustc data preparation (#1660)
xutaima Mar 2, 2021
c58af18
Several update on simultaneous translation inference. (#1655)
xutaima Mar 3, 2021
ddc483f
Streaming models for simul ST (#1552)
xutaima Mar 3, 2021
b8786dc
Integrate Augmented memory transformer and emformer based augmented m…
sravyapopuri388 Mar 3, 2021
0c32e25
Update Simultaneous Translation doc (#1659)
xutaima Mar 3, 2021
7d2394b
ioPath async - Fairseq unittests (#1669)
EricZLou Mar 3, 2021
1fed7a8
add unit test for multi_corpus_dataset
Mar 4, 2021
fc2840d
optimize sampling process of multi_corpus_dataset
Mar 4, 2021
f6d60e2
minor fixes and improvements (#1671)
alexeib Mar 4, 2021
f1c595b
Ability to pass attn_mask to TransformerSentenceEncoder
kaushik88 Mar 4, 2021
6d23cc7
Move checkpoint state_dict creation into Trainer (#1666)
Mar 4, 2021
656d7e5
Add support for FullyShardedDataParallel (--ddp-backend=fully_sharded…
Mar 4, 2021
73886ac
Refactor FairseqSimulSTAgent
cndn Mar 4, 2021
7c95746
fix bug on converting stereo audio in audio_utils.py
kahne Mar 5, 2021
16c1a20
Fix Global CMVN path of MustC data preprocessing (#3307)
sarapapi Mar 8, 2021
00d5b7a
Add README/tutorial for Fully Sharded Data Parallel (#3327)
Mar 9, 2021
c600667
Update README for Fully Sharded Data Parallel (#3331)
Mar 9, 2021
05255f9
update audio_utils and fix mTEDx example
kahne Mar 10, 2021
d031611
Update simul trans doc (#1683)
xutaima Mar 11, 2021
2235f86
PlasmaView: don't materialize array in memory (#1645)
sshleifer Mar 12, 2021
252d5a9
Fix a bug that FairseqSimulSTAgent is not an agent (#1690)
xutaima Mar 13, 2021
965240c
optimize memory when loading large checkpoints by deleting state dict…
Mar 15, 2021
dd74992
Several updates for simul speech transition example (#1703)
xutaima Mar 16, 2021
edcef13
make deepspeed cpu_adam works in fbcode
jspark1105 Mar 18, 2021
53b781c
Add --update-freq 8 to simulst tutorial (#3374)
jmp84 Mar 19, 2021
5c87bb5
Fix RoBERTa + FSDP (also minor fix for GPT-3 configs) (#1724)
Mar 20, 2021
8f77e24
Deepspeed can be used outside of fbcode (#1727)
sshleifer Mar 20, 2021
5273bbb
Fix transformer LM arg upgrade logic (#1717)
Mar 21, 2021
bd0109c
Revert change in defaults for LMs to learned pos embeddings (#1734)
Mar 22, 2021
8c14a8f
--nval only validate for a few steps (#1735)
sshleifer Mar 23, 2021
1bba712
Enable w2v2 tpu (#3328)
taylanbil Mar 23, 2021
25dd926
Fix the issue that manifold raises error when reading non-existing file
Mar 25, 2021
06c9cef
update CoVoST2 recipe; pretrained S2T encoder loading
kahne Mar 25, 2021
2d5eaa0
restore original module forward() during jit
Mar 25, 2021
6e91e22
Script monotonic attention and related modules
cndn Mar 26, 2021
93bb190
Script SimulConvTransformerModel
cndn Mar 26, 2021
a28511d
Ad-hoc changes
cndn Mar 26, 2021
be1d186
FSDP uses new optimizer gathering to save optimizer state (#1744)
sshleifer Mar 26, 2021
0975816
Add back try/except in data_utils
cndn Mar 27, 2021
1c9738c
fix speech_recognition hydra decoder bugs (#1742)
wnhsu Mar 29, 2021
7dafb05
BASE layers (#1654)
Mar 30, 2021
c2e8904
Obt 2 (#1614)
gwenzek Mar 30, 2021
229de00
Fix an issue for waitk when left_pad_source is set (#1752)
xutaima Mar 30, 2021
579a48f
pull unwrap_checkpoint() into library for reuse
Mar 30, 2021
14807a3
Update simultaneous translation docs (#1767)
xutaima Apr 1, 2021
a20dc36
Several updates on simul st (#1774)
xutaima Apr 2, 2021
aa5f011
remove import logging (#1779)
jspark1105 Apr 3, 2021
8a42c24
Fix memory regression when using FSDP (#1788)
Apr 7, 2021
ee0d5a0
fixup Obt 2 (#1614) (#1791)
gwenzek Apr 8, 2021
acf3124
'Fix a bug when src len is smaller than wait k lagging (#1795)
xutaima Apr 12, 2021
57560cb
enable manifold checkpoints with --keep-interval-updates
Apr 14, 2021
dbfb710
add keep_interval_updates_pattern
Apr 14, 2021
436166a
fix MultiHeadAttention assert (#1798)
gwenzek Apr 14, 2021
fc90910
Migrating fairseq-py from fvcore to iopath.
sujitoc Apr 15, 2021
0697638
Fix bug from iopath migration.
sujitoc Apr 15, 2021
3a90a85
Add manifold support for fairseq file_io
Apr 16, 2021
8937129
TALNet: Consistency loss
Apr 17, 2021
3dd3940
Support more p_choose strategies in FixedStrideMonotonicAttention
cndn Apr 19, 2021
4fc9f2b
Fix order issue in batched BART generation (#1785)
Apr 19, 2021
f6f220e
Delete line that breaks gh ci (#1814)
sshleifer Apr 19, 2021
801a646
allow subclasses of multi corpus dataset to not specify full_id
Apr 20, 2021
da0432a
MultiGPU test and --log-file workaround (#1793)
sshleifer Apr 21, 2021
2af4ffe
Supporting PathManager in cached_path util.
sujitoc Apr 21, 2021
207254b
Adding check for filler size (#3495)
mjanderson09 Apr 21, 2021
05b8600
Fix FSDP optim state loading (#1819)
sshleifer Apr 21, 2021
40f6c75
sorting os.listdir outputs to ensure consistent import ordering
Apr 23, 2021
b0ae834
Flores pretrained model release (#1825)
ngoyal2707 Apr 26, 2021
8b861be
Escape % in `keep_interval_updates_pattern` help description (#3514)
lematt1991 Apr 28, 2021
1305008
fixed typo in flores model download link (#1827)
Apr 28, 2021
c6409c0
Fix issue with encoder padding mask
sravyapopuri388 Apr 29, 2021
9cb6fe4
Copy to local before loading checkpoint
Apr 29, 2021
d6855ba
Simplify CountingIterator
Apr 29, 2021
a4e1d4a
add binarized audio dataset for large datasets (#1840)
alexeib May 3, 2021
a8c8f0b
fix wav2vec finetuning (#1848)
alexeib May 5, 2021
374fdc5
fix eval of older checkpoints (fixes #3528) (#1851)
alexeib May 6, 2021
eb228ee
do per gpu seeding for shuffling batches with batch level sampling, f…
May 6, 2021
14439b1
add fp16 comm hook
May 7, 2021
a2314b4
offload state_dict to cpu
May 10, 2021
97969ac
--combine-valid-sets (#1843)
sshleifer May 11, 2021
8f1a34a
add zip file support to raw_audio_dataset
kahne May 12, 2021
d151f27
S2T example bug fixes
kahne May 13, 2021
425c36e
support use_sharded_state on command line
May 15, 2021
a1fea2e
enable pin_memory for DataLoaders (#3560)
mandeeplearning May 20, 2021
f68de08
Auto formatting changes
sravyapopuri388 May 21, 2021
a5df5de
wav2vec_u_readme (#1888)
alexeib May 21, 2021
f9edd9f
fix the error when using pyarrow for raw_audio_dataset (#3561)
freewym May 21, 2021
649af63
Wav2vec u (#1889)
alexeib May 21, 2021
a8fe943
fix readme link (#1890)
alexeib May 21, 2021
78e75fa
attempt to make non-sharded FSDP checkpoint behave like regular check…
May 21, 2021
4aef903
Merge Hubert to master (#1877)
May 22, 2021
49cf3e0
fixing s2t transformer and N-best checkpoint saving
kahne May 22, 2021
366974d
HF Wav2Vec2 Example (#3502)
patrickvonplaten May 23, 2021
342d5da
propagate quantizer depth and factor args through w2v (#1892)
alexeib May 24, 2021
2be2f3c
Plasma tests: ask for less disk (#1893)
sshleifer May 24, 2021
30003ba
fix serialization on python 3.6 (#1894)
alexeib May 25, 2021
5a75b07
fix saving w2v args in config (#1896)
alexeib May 25, 2021
95cf580
Update model table in README (#1901)
May 25, 2021
8df9e3a
support FSDP sharded_state checkpoint loading during inference
May 26, 2021
237184e
Add torch.cuda.amp support (#3460)
gaganbahga May 26, 2021
e6eddd8
make hydra/infer.py work; also dont break if something is removed fro…
alexeib May 26, 2021
c8223e3
fixing prefix_allowed_tokens_fn (#3276)
nicola-decao May 27, 2021
9497ae3
disable raise_if_valid_subsets_unintentionally_ignored check for dumm…
mandeeplearning May 27, 2021
19793a7
Remove duplicate registration of ManifoldPathHandler
May 27, 2021
62cceba
fix '_pickle.PicklingError: Can't pickle <enum 'Choices'>: attribute …
alexeib May 31, 2021
c47a9b2
fix #3574 (#1921)
alexeib Jun 1, 2021
4950c56
Add export flag to transform, so LayerNorm can be TorchScripted.
henryhu6 Jun 3, 2021
50f3766
TALNet: Use batch size as sample_size
Jun 4, 2021
3084b81
Teacher-student learning for TALNet
Jun 4, 2021
45d8fef
fix logging when running single-process (#3592)
mandeeplearning Jun 4, 2021
fc391ff
Fix loading some TALNet models
Jun 4, 2021
2fd9d8a
released xlmr xl and xxl model weights (#1944)
Jun 7, 2021
50158da
Migrate DummyMaskedLMTask to FairseqTask (#3593)
Jun 10, 2021
f8a7c93
W2v u update (#1954)
alexeib Jun 11, 2021
c36294e
Do FP16/BF16 conversions on the host to transfer less through PCIe
valentinandrei Jun 12, 2021
176b2e4
Fix warning for empty tensor without type
henryhu6 Jun 14, 2021
cd5775f
avoid freezing batches unnecessarily (#3610)
msbaines Jun 14, 2021
8320f67
Instructions for loading HuBERT model (#1966)
Jun 15, 2021
128b4fc
Check attributes in trainer and checkpoint loading before using them …
Jun 15, 2021
afc77bd
Enabled storing of dictionaries (#3601)
Jun 16, 2021
67138ce
Fix lr for reduce_lr_on_plateau when there is no warmup
Jun 17, 2021
b3491ae
Add latency metrics to simulate tuna inference script and some other …
sravyapopuri388 Jun 17, 2021
fc77eeb
Change char_inputs to export as recommended in Fairseq
sravyapopuri388 Jun 18, 2021
822442e
fix task name in w2v-u generate (#1989)
alexeib Jun 21, 2021
e47a4c8
hotfix to change factory creation for dictionaries (#1987)
Jun 21, 2021
900a607
add timit w2vu recipe (#1991)
Jun 22, 2021
3c4a8e4
Enabling word-level timestamps for Wav2Vec 2.0 (#3627)
Nithin-Holla Jun 22, 2021
7ca8bc1
KMeans Attention
Jun 22, 2021
7818f61
Tuna integration and model packaging
Jun 23, 2021
520d9d3
remove debug code from w2vu gen (#1997)
Alexander-H-Liu Jun 24, 2021
81046fc
Add decoder and decoding wrapper for nmt
842974287 Jun 24, 2021
f887152
Load dict from pretrained hubert model in HubertEncoder (#1999)
Jun 26, 2021
53bf2b1
Extract File Chunking to its own utils (#1955)
Mortimerp9 Jun 28, 2021
0972dde
apply nonblocking H/D transfer optimizations
liangluofb Jun 29, 2021
0794f9a
Back out "Adding FBSequenceGenerator"
EdanSneh Jun 29, 2021
9bee82e
Hydra 1.1 compatibility: Use an explicit schema for the primary confi…
omry Jul 1, 2021
096f492
fix xlsr checkpoint finetuning saving issues (#2013)
alexeib Jul 1, 2021
cdc1a55
query tgt_dict after loading task_state (#2019)
Jul 1, 2021
dd106d9
fixes tests/test_train.py to mock checkpoint.save_dir config node (#3…
omry Jul 6, 2021
01576be
Add tracing annotations
henryhu6 Jul 7, 2021
7b710ac
Fix static container (#2036)
alexeib Jul 8, 2021
58201a1
migrate roberta glue finetuning to hydra (#2035)
alexeib Jul 8, 2021
605e1ce
change denoising setup_task so that it can read from multiple shards
pichuang1984 Jul 9, 2021
d18e44a
add robust w2v model (#2046)
alexeib Jul 9, 2021
cffc057
Roll back os.path.abspath change
theweiho Jul 9, 2021
7f2fb5c
Release code for the paper "Discriminative Reranking for Neural Machi…
an918tw Jul 9, 2021
4497897
respect roberta model name to init arch (#2049)
alexeib Jul 11, 2021
1a1380e
fix hydra upgrade (#2051)
alexeib Jul 12, 2021
d26dced
pyspeech embedding extractor
Jul 12, 2021
313ff05
migrate masked lm task and criterion (#2050)
alexeib Jul 13, 2021
f2146bd
refactor clustering in hubert example (#2018)
Jul 13, 2021
597a8fc
Only import MultiheadAttention when doing typechecking
Mortimerp9 Jul 16, 2021
aa15dc9
Transformer File Split
Mortimerp9 Jul 16, 2021
7ebdc24
delegate namespace conversion to DC
Mortimerp9 Jul 16, 2021
bc1504d
Hierarchical Configs
Mortimerp9 Jul 16, 2021
059187f
ArgumentError when double declaration
Mortimerp9 Jul 16, 2021
129d859
Transformer Hydration pt1. (#1984)
Mortimerp9 Jul 16, 2021
c1624b2
Criterions to Hydra
Mortimerp9 Jul 16, 2021
7232358
Add warning when combining --ddp-backend=fully_sharded and --update-f…
Jul 20, 2021
804b493
Several updates on simultaneous translation (#1831)
xutaima Jul 21, 2021
95a9cb7
add text compression to FileAudioDataset + speed up AddTargetDataset
kahne Jul 21, 2021
698961d
Make FSDP and --update-freq play nice (#3727)
Jul 21, 2021
5826a68
Allow Moving Observer to Cuda
I2304 Jul 22, 2021
7feb874
Support Quantization to variable number of bits
I2304 Jul 22, 2021
eff39d5
quantize_layers_ using variable methods
I2304 Jul 22, 2021
bc3bd55
Fix anchor link for inference & evaluation
Jul 22, 2021
e1adc9d
hacky fix for gen_parser bug
EdanSneh Jul 23, 2021
67ff6ba
Apply the CLANGFORMAT linter to fbcode/deeplearning/projects/fairseq-…
gandalf2390 Jul 23, 2021
53802e7
Compatibility fix with Hydra 1.1 (#3722)
omry Jul 26, 2021
0769cfe
Fixed the reference to mask_channel_prob in task cfg (#3742)
ultrons Jul 27, 2021
7ca95a6
Add speech/text joint training for speech to text task (step 1)
Jul 27, 2021
75051ec
wav2vec2 speech translation OSS
kahne Jul 27, 2021
440def2
added more descriptive comment to urgent change
EdanSneh Jul 28, 2021
1df3e50
Minor performance optimization for sequence generator
henryhu6 Jul 29, 2021
f1b4470
use suffix when saving best checkpoints with metric
Jul 29, 2021
3cf9053
use pathmanager to delete old checkpoints
Jul 29, 2021
777bba3
seed random suffix in checkpoint to be consistent across shards
Jul 29, 2021
7a6706f
Add speech/text joint training for speech to text task (step 2)
Jul 30, 2021
20fbc34
update hubert decode config (#2106)
wnhsu Jul 30, 2021
9724019
add paper link (#2116)
an918tw Jul 30, 2021
9d70f9c
iPQ
I2304 Jul 31, 2021
82e8a24
add max_keep_size (#2124)
Aug 2, 2021
db4f96b
fixing checkpoint config upgrade for generation print_alignment (#2125)
jingfeidu Aug 2, 2021
fe15926
Adding Hydra based trainer target to fairseq in fbcode
EdanSneh Aug 3, 2021
3d90df4
Quant Noise
I2304 Aug 3, 2021
9825786
--fp16-adam-stats (#2139)
sshleifer Aug 4, 2021
741fd13
Commit README for GSLM (#2151)
Aug 11, 2021
2513524
add finetuned robust w2v models and update readme (#2196)
alexeib Aug 17, 2021
cb74701
Set batch size to 4 to prevent OOM due dynamic batch sizing (#3781)
ultrons Aug 17, 2021
1f7ef9e
(fix #2177) Erase the encoder_embed_dim default (#2213)
Mortimerp9 Aug 19, 2021
6f847c8
Release GSLM (#2201)
Aug 26, 2021
db0175a
Require fairscale >= 0.4.0 to combine FSDP and --update-freq (#2239)
Aug 27, 2021
932a3d4
fix beam search with prefix tokens (#2227)
jingfeidu Aug 31, 2021
5277ec4
Fix test_eval_bleu unittest (#2236)
renganxu Aug 31, 2021
68a8120
Indexed Huffman Coded dataset (#2029)
Mortimerp9 Aug 31, 2021
8feccf9
EMA
Sep 1, 2021
14c5bd0
Releasing models for our paper "Masked Language Modeling and the Dist…
koustuvsinha Sep 1, 2021
5cfd373
fix default lprob score of beam search with prefix tokens (#2267)
jingfeidu Sep 7, 2021
9549e7f
try using gradient_as_bucket_view in DDP
yunhongxu Sep 7, 2021
50b6536
Fairseq needs to store and load metadata from model state_dict
Sep 9, 2021
e3fafbd
annotation added for jitable
Sep 9, 2021
dbe1f82
add speech synthesis preprocessing and evaluation scripts
kahne Sep 13, 2021
d974c70
update S2T
kahne Sep 13, 2021
e679327
Back out "Fairseq needs to store and load metadata from model state_d…
Sep 13, 2021
32b3117
Allow attributes of OrderedDict to be saved (#3862)
Sep 13, 2021
0ac3f32
add TTS
kahne Sep 14, 2021
8adff65
Use batch_by_size in dataset in aligned training task
Sep 15, 2021
98d638c
Mma refactor (#2087)
xutaima Sep 15, 2021
f6abcc2
update on branch renaming (#3879)
dianaml0 Sep 16, 2021
5adfeac
Rename references from master -> main in preparation for branch name …
Sep 20, 2021
3dd70d8
fix the problem that command line args for Transformer model do not o…
freewym Sep 20, 2021
fcca322
Update reference from master to main elsewhere in fbcode
dianaml0 Sep 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Steps to reproduce the behavior (**always include the command you ran**):


#### Code sample
<!-- Ideally attach a minimal code sample to reproduce the decried issue.
<!-- Ideally attach a minimal code sample to reproduce the decried issue.
Minimal means having the shortest code but still preserving the bug. -->

### Expected behavior
Expand All @@ -28,7 +28,7 @@ Minimal means having the shortest code but still preserving the bug. -->

### Environment

- fairseq Version (e.g., 1.0 or master):
- fairseq Version (e.g., 1.0 or main):
- PyTorch Version (e.g., 1.0)
- OS (e.g., Linux):
- How you installed fairseq (`pip`, source):
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/how-to-question.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ labels: 'question, needs triage'

## ❓ Questions and Help

### Before asking:
1. search the issues.
2. search the docs.
### Before asking:
1. search the issues.
2. search the docs.

<!-- If you still can't find what you need: -->

#### What is your question?

#### Code

<!-- Please paste a code snippet if your question requires it! -->
<!-- Please paste a code snippet if your question requires it! -->

#### What have you tried?

#### What's your environment?

- fairseq Version (e.g., 1.0 or master):
- fairseq Version (e.g., 1.0 or main):
- PyTorch Version (e.g., 1.0)
- OS (e.g., Linux):
- How you installed fairseq (`pip`, source):
Expand Down
10 changes: 5 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Before submitting

- [ ] Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
- [ ] Did you read the [contributor guideline](https://github.com/pytorch/fairseq/blob/master/CONTRIBUTING.md)?
- [ ] Did you make sure to update the docs?
- [ ] Did you write any new necessary tests?
- [ ] Did you read the [contributor guideline](https://github.com/pytorch/fairseq/blob/main/CONTRIBUTING.md)?
- [ ] Did you make sure to update the docs?
- [ ] Did you write any new necessary tests?

## What does this PR do?
Fixes # (issue).

## PR review
Anyone in the community is free to review the PR once the tests have passed.
## PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

## Did you have fun?
Expand Down
30 changes: 30 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Mostly copied from github.com/facebook/react/blob/master/.github/stale.yml
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- bug
# Label to use when marking an issue as stale
staleLabel: stale
issues:
# Comment to post when marking an issue as stale.
markComment: >
This issue has been automatically marked as stale.
**If this issue is still affecting you, please leave any comment** (for example, "bump"), and we'll keep it open.
We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
# Comment to post when closing a stale issue.
closeComment: >
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
pulls:
# Comment to post when marking a pull request as stale.
markComment: >
This pull request has been automatically marked as stale.
**If this pull request is still relevant, please leave any comment** (for example, "bump"), and we'll keep it open.
We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.
# Comment to post when closing a stale pull request.
closeComment: >
Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

23 changes: 17 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: build

on:
# Trigger the workflow on push to master or any pull request
# Trigger the workflow on push to main or any pull request
push:
branches:
- master
- main
pull_request:

jobs:
Expand All @@ -19,26 +19,37 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Conditionally install pytorch
if: matrix.platform == 'windows-latest'
run: pip3 install torch -f https://download.pytorch.org/whl/torch_stable.html

- name: Install locally
run: |
python -m pip install --upgrade pip
git submodule update --init --recursive
python setup.py build_ext --inplace
python -m pip install --editable .

- name: Install optional test requirements
run: |
python -m pip install iopath transformers pyarrow
python -m pip install git+https://github.com/facebookresearch/fairscale.git@master

- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --extend-exclude fairseq/model_parallel/megatron
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --extend-exclude fairseq/model_parallel/megatron

- name: Run tests
run: |
python setup.py test
41 changes: 41 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build_wheels

on:
push:
branches:
- v[0-9]+.[0-9]+.[x0-9]+
tags:
- v*

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.7'

- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel

- name: Build wheels for CPython
run: |
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp36-*64 cp37-*64 cp38-*64"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
CIBW_BEFORE_BUILD: git submodule update --init --recursive && pip install .

- uses: actions/upload-artifact@v2
with:
name: wheels
path: ./dist/*.whl
44 changes: 0 additions & 44 deletions .github/workflows/build_windows.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ ENV/
/fairseq/temporal_convolution_tbc
/fairseq/modules/*_layer/*_forward.cu
/fairseq/modules/*_layer/*_backward.cu
/fairseq/version.py

# data
data-bin/
Expand All @@ -130,3 +131,6 @@ data-bin/

# Experimental Folder
experimental/*

# Weights and Biases logs
wandb/
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[submodule "fairseq/models/huggingface/transformers"]
path = fairseq/models/huggingface/transformers
url = https://github.com/myleott/transformers.git
branch = fairseq
[submodule "fairseq/model_parallel/megatron"]
path = fairseq/model_parallel/megatron
url = https://github.com/ngoyal2707/Megatron-LM
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ possible.
## Pull Requests
We actively welcome your pull requests.

1. Fork the repo and create your branch from `master`.
1. Fork the repo and create your branch from `main`.
2. If you've added code that should be tested, add tests.
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
Expand Down
Loading