forked from facebookresearch/fairseq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from facebookresearch/main
run all tests (facebookresearch#4733)
- Loading branch information
Showing
11 changed files
with
133 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel", "cython"] | ||
requires = [ | ||
"setuptools>=18.0", | ||
"wheel", | ||
"cython", | ||
"numpy>=1.23.3", | ||
"torch>=1.10", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.black] | ||
extend-exclude = ''' | ||
( | ||
^/examples/| | ||
^/fairseq/model_parallel/megatron| | ||
^/build/ | ||
) | ||
''' | ||
|
||
[tool.isort] | ||
profile = "black" | ||
known_third_party = "_cffi_backend,agg_results,aml,bitarray,boto3,botocore,dump_hubert_feature,dynamicconv_cuda,editdistance,faiss,fasttext,feature_utils,ffmpeg,g2p_en,h5py,hydra,hypothesis,indicnlp,inflect,iopath,joblib,kaldi_io,kenlm,libfb,librosa,lightconv_cuda,matplotlib,misc,mmpt,mmpt_cli,model,nltk,npy_append_array,numpy,omegaconf,pandas,pathbuilder,preprocessing,progressbar,pythainlp,random_sequence_shuffler,regex,sacrebleu,sacremoses,scipy,sentencepiece,setuptools,six,sklearn,soundfile,sweep,sweep_wmt_en2de_transformer_big_common,tabulate,torch,torchaudio,tqdm,unidecode,utils,videoreader,wav2vec_cluster_faiss,wget,yaml" | ||
skip_gitignore = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from pathlib import Path | ||
import os | ||
|
||
cwd = Path(".").resolve() | ||
print("running 'check_installation.py' from:", cwd) | ||
|
||
# Old versions of numpy/torch can prevent loading the .so files | ||
import torch | ||
|
||
print("torch:", torch.__version__) | ||
import numpy | ||
|
||
print("numpy:", numpy.__version__) | ||
|
||
import fairseq | ||
|
||
print("Fairseq installed at:", fairseq.__file__) | ||
import fairseq.criterions | ||
import fairseq.dataclass.configs | ||
|
||
import _imp | ||
|
||
print("Should load following .so suffixes:", _imp.extension_suffixes()) | ||
|
||
so_files = list(Path(fairseq.__file__).parent.glob("*.so")) | ||
so_files.extend(Path(fairseq.__file__).parent.glob("data/*.so")) | ||
print("Found following .so files:") | ||
for so_file in so_files: | ||
print(f"- {so_file}") | ||
|
||
from fairseq import libbleu | ||
|
||
print("Found libbleu at", libbleu.__file__) | ||
from fairseq.data import data_utils_fast | ||
|
||
print("Found data_utils_fast at", data_utils_fast.__file__) |
Oops, something went wrong.