Skip to content

Commit

Permalink
Miscellaneous fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinjdobler committed Jul 31, 2023
1 parent 06f90e5 commit 76d0995
Show file tree
Hide file tree
Showing 6 changed files with 1,640 additions and 1,563 deletions.
3 changes: 1 addition & 2 deletions conda-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# To update a single package to the latest version compatible with the version constraints in the source:
# conda-lock lock --lockfile conda-lock.yml --update PACKAGE
# To re-solve the entire environment, e.g. after changing a version constraint in the source file:
# conda-lock -f ./environment.yml -f /Users/kjd/prog/nlp-research-template/environment.yml --lockfile conda-lock.yml
# conda-lock -f ./environment.yml --lockfile conda-lock.yml
metadata:
channels:
- url: conda-forge
Expand All @@ -28,7 +28,6 @@ metadata:
- win-64
sources:
- ./environment.yml
- /Users/kjd/prog/nlp-research-template/environment.yml
package:
- category: main
dependencies: {}
Expand Down
7 changes: 7 additions & 0 deletions dlib/frameworks/huggingface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import transformers


class EvaluateFirstStepCallback(transformers.TrainerCallback):
def on_step_end(self, args, state, control, **kwargs):
if state.global_step == 1:
control.should_evaluate = True
4 changes: 2 additions & 2 deletions dlib/frameworks/wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

from ..frameworks.pytorch import get_rank

WANDB_PROJECT = "test-wandb"
WANDB_ENTITY = "konstantinjdobler"
WANDB_PROJECT = "<your project>"
WANDB_ENTITY = "<your entity>"

if WANDB_ENTITY == "<your entity>" or WANDB_PROJECT == "<your project>":
logger.warning(
Expand Down
Loading

0 comments on commit 76d0995

Please sign in to comment.