Compare commits

...

4 Commits

Author SHA1 Message Date
ydshieh c03f02ddd2 check 2024-02-07 12:33:47 +01:00
ydshieh 4dc54017e2 fix 2024-02-07 12:33:25 +01:00
ydshieh 96d73f7ae9 fix 2024-02-07 11:13:37 +01:00
ydshieh f94dc118a5 fix 2024-02-07 10:47:35 +01:00
3 changed files with 8 additions and 10 deletions

View File

@ -52,7 +52,7 @@ class CircleCIJob:
name: str
additional_env: Dict[str, Any] = None
cache_name: str = None
cache_version: str = "0.7"
cache_version: str = "0.8"
docker_image: List[Dict[str, str]] = None
install_steps: List[str] = None
marker: Optional[str] = None
@ -284,7 +284,7 @@ torch_and_tf_job = CircleCIJob(
"pip install -U --upgrade-strategy eager tensorflow_probability",
"pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate",
# TODO: remove this one after fixing the dependency issue(s) above
"pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu"
"pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu",
],
marker="is_pt_tf_cross_test",
pytest_options={"rA": None, "durations": 0},
@ -299,8 +299,6 @@ torch_and_flax_job = CircleCIJob(
"pip install -U --upgrade-strategy eager --upgrade pip",
"pip install -U --upgrade-strategy eager .[sklearn,flax,torch,testing,sentencepiece,torch-speech,vision]",
"pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate",
# TODO: remove this one after fixing the dependency issue(s) above
"pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu"
],
marker="is_pt_flax_cross_test",
pytest_options={"rA": None, "durations": 0},
@ -314,8 +312,6 @@ torch_job = CircleCIJob(
"pip install --upgrade --upgrade-strategy eager pip",
"pip install -U --upgrade-strategy eager .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]",
"pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate",
# TODO: remove this one after fixing the dependency issue(s) above
"pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu"
],
parallelism=1,
pytest_num_workers=6,
@ -523,6 +519,8 @@ doc_test_job = CircleCIJob(
"pip install --upgrade --upgrade-strategy eager 'pytest<8.0.0' pytest-sugar",
"pip install -U --upgrade-strategy eager natten==0.15.1+torch210cpu -f https://shi-labs.com/natten/wheels",
"pip install -U --upgrade-strategy eager g2p-en",
# TODO: remove this one after fixing the dependency issue(s) above
"pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu",
"find -name __pycache__ -delete",
"find . -name \*.pyc -delete",
# Add an empty file to keep the test step running correctly even no file is selected to be tested.

View File

@ -19,9 +19,9 @@ pytest
conllu
sentencepiece != 0.1.92
protobuf
torch<2.2.0
torchvision<0.17
torchaudio<2.2.0
torch
torchvision
torchaudio
jiwer
librosa
evaluate >= 0.2.0

View File

@ -1098,7 +1098,7 @@ class BertForPreTraining(BertPreTrainedModel):
Example:
```python
>>> from transformers import AutoTokenizer, BertForPreTraining
>>> from transformers import AutoTokenizer, BertForPreTraining, AutoModel
>>> import torch
>>> tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")