Skip to content

Commit

Permalink
Fix deprecations and update dependencies for examples/albert (#595)
Browse files Browse the repository at this point in the history
* Install setuptools+wheel in develop mode during CI

* Fix deprecations and update dependencies for examples/albert
  • Loading branch information
mryab committed Oct 8, 2023
1 parent 2873252 commit fdda330
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
key: Key-v1-3.8-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Build hivemind
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
key: Key-v1-3.8-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Build bitsandbytes
Expand Down
2 changes: 1 addition & 1 deletion examples/albert/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class DatasetArguments:
)
tokenizer_path: Optional[str] = field(default="data/tokenizer", metadata={"help": "Path to the tokenizer"})
config_path: Optional[str] = field(
default="https://s3.amazonaws.com/models.huggingface.co/bert/albert-large-v2-config.json",
default="albert-large-v2",
metadata={"help": "Path to the model config"},
)
cache_dir: Optional[str] = field(default="data", metadata={"help": "Path to the cache"})
Expand Down
4 changes: 2 additions & 2 deletions examples/albert/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
transformers==4.6.0
datasets==1.5.0
transformers~=4.6
datasets~=1.5
torch_optimizer==0.1.0
wandb==0.10.26
sentencepiece
Expand Down
2 changes: 1 addition & 1 deletion examples/albert/run_training_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class TrainingMonitorArguments(BaseTrainingArguments):
default=5, metadata={"help": "Frequency (in steps) of fetching and saving state from peers"}
)
model_config_path: str = field(
default="https://s3.amazonaws.com/models.huggingface.co/bert/albert-large-v2-config.json",
default="albert-large-v2",
metadata={"help": "Path to the model config"},
)
repo_path: Optional[str] = field(
Expand Down

0 comments on commit fdda330

Please sign in to comment.