This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sean Friedowitz
committed
Jan 15, 2024
1 parent
47d8d0b
commit 96aa29b
Showing
26 changed files
with
77 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,8 +161,3 @@ cython_debug/ | |
|
||
# Ruff | ||
.ruff_cache | ||
|
||
|
||
# ignore local wandb cache files. Not perfect | ||
**/wandb/*.log | ||
**/wandb/*run* |
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 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,9 +1,9 @@ | ||
from .model_name_or_path import ModelNameOrCheckpointPath | ||
from .quantization_config import QuantizationConfig | ||
from .trainer_config import TrainerConfig | ||
from .utils import is_valid_huggingface_repo | ||
|
||
__all__ = [ | ||
"ModelNameOrCheckpointPath", | ||
"QuantizationConfig", | ||
"TrainerConfig", | ||
"is_valid_huggingface_repo", | ||
] |
34 changes: 0 additions & 34 deletions
34
src/flamingo/integrations/huggingface/model_name_or_path.py
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from .wandb_environment import WandbEnvironment # noqa: I001 | ||
# ruff: noqa | ||
from .wandb_artifact_link import WandbArtifactLink | ||
from .wandb_environment import WandbEnvironment | ||
from .utils import get_wandb_summary, update_wandb_summary | ||
|
||
__all__ = [ | ||
"WandbEnvironment", | ||
"WandbArtifactLink", | ||
"get_wandb_summary", | ||
"update_wandb_summary", | ||
] |
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,16 @@ | ||
from flamingo.types import BaseFlamingoConfig | ||
|
||
|
||
class WandbArtifactLink(BaseFlamingoConfig): | ||
"""Data required to retrieve an artifact from W&B.""" | ||
|
||
name: str | ||
alias: str | None = None | ||
project: str | None = None | ||
entity: str | None = None | ||
|
||
def artifact_path(self) -> str: | ||
path = "/".join(x for x in [self.entity, self.project, self.name] if x is not None) | ||
if self.alias: | ||
path = f"{path}:{self.alias}" | ||
return path |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .configs import * # noqa: F403 |
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,12 +1,6 @@ | ||
from .base_config import BaseJobConfig | ||
from .finetuning_config import FinetuningJobConfig | ||
from .lm_harness_config import LMHarnessJobConfig, ModelNameOrCheckpointPath | ||
from .lm_harness_config import LMHarnessJobConfig | ||
from .simple_config import SimpleJobConfig | ||
|
||
__all__ = [ | ||
"BaseJobConfig", | ||
"SimpleJobConfig", | ||
"FinetuningJobConfig", | ||
"LMHarnessJobConfig", | ||
"ModelNameOrCheckpointPath", | ||
] | ||
__all__ = ["BaseJobConfig", "SimpleJobConfig", "FinetuningJobConfig", "LMHarnessJobConfig"] |
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
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
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
File renamed without changes.
File renamed without changes.
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 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,5 +1,6 @@ | ||
import pytest | ||
import torch | ||
|
||
from flamingo.integrations.huggingface import QuantizationConfig | ||
|
||
|
||
|
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
Oops, something went wrong.