Skip to content

Commit 4883923

Browse files
committed
Show license link for Falcon-180B
1 parent 39d0b31 commit 4883923

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/petals/models/falcon/config.py

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def num_key_value_groups(self) -> int:
3131
def from_pretrained(
3232
cls, model_name_or_path: Union[str, os.PathLike, None], *args, dht_prefix: Optional[str] = None, **kwargs
3333
):
34+
if "180B" in model_name_or_path.upper():
35+
logger.info("Make sure you follow the Falcon-180B license: https://bit.ly/falcon-180b-license")
36+
3437
loading_from_repo = model_name_or_path is not None and not os.path.isdir(model_name_or_path)
3538
if loading_from_repo and dht_prefix is None:
3639
dht_prefix = str(model_name_or_path)

0 commit comments

Comments
 (0)