-
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.
- Loading branch information
1 parent
13aded0
commit 515b540
Showing
6 changed files
with
78 additions
and
40 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 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,12 +1,11 @@ | ||
from .formatting_utilities import create_prompt_from_instructions, format_docs | ||
from .loading_utilities import load_dataframe_from_parquet | ||
from .misc import compare_params | ||
from .formatting_utilities import ( | ||
create_prompt_from_instructions, format_docs | ||
) | ||
|
||
__all__ = [ | ||
"load_dataframe_from_parquet", "cache_model_from_hf_hub", | ||
"compare_params", "create_prompt_from_instructions", | ||
"format_docs" | ||
"load_dataframe_from_parquet", | ||
"cache_model_from_hf_hub", | ||
"compare_params", | ||
"create_prompt_from_instructions", | ||
"format_docs", | ||
] | ||
|
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,16 +1,9 @@ | ||
import os | ||
import subprocess | ||
from typing import Literal | ||
|
||
import pandas as pd | ||
import s3fs | ||
|
||
from src.config import Configurable, DefaultFullConfig, FullConfig | ||
|
||
|
||
def load_dataframe_from_parquet( | ||
path: str, engine: Literal["auto", "pyarrow", "fastparquet"] = "fastparquet" | ||
) -> pd.DataFrame: | ||
return pd.read_parquet(path, engine) | ||
|
||
|