Skip to content

Commit

Permalink
Standardize top k
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Apr 16, 2024
1 parent 1245b26 commit 5fa8299
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion extensions/xla/generate/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setup(
adapter_path: Path = Path("out/adapter/alpaca/lit_model_adapter_finetuned.pth"),
checkpoint_dir: Path = Path("checkpoints/tiiuae/falcon-7b"),
max_new_tokens: int = 100,
top_k: Optional[int] = 200,
top_k: Optional[int] = 50,
temperature: float = 0.8,
precision: str = "bf16-true",
) -> None:
Expand Down
2 changes: 1 addition & 1 deletion litgpt/generate/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main(
checkpoint_dir: Path = Path("checkpoints/stabilityai/stablelm-base-alpha-3b"),
quantize: Optional[Literal["bnb.nf4", "bnb.nf4-dq", "bnb.fp4", "bnb.fp4-dq", "bnb.int8"]] = None,
max_new_tokens: int = 100,
top_k: Optional[int] = 200,
top_k: Optional[int] = 50,
temperature: float = 0.8,
precision: Optional[str] = None,
) -> None:
Expand Down
2 changes: 1 addition & 1 deletion litgpt/generate/adapter_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main(
checkpoint_dir: Path = Path("checkpoints/stabilityai/stablelm-base-alpha-3b"),
quantize: Optional[Literal["bnb.nf4", "bnb.nf4-dq", "bnb.fp4", "bnb.fp4-dq", "bnb.int8"]] = None,
max_new_tokens: int = 100,
top_k: Optional[int] = 200,
top_k: Optional[int] = 50,
temperature: float = 0.8,
precision: Optional[str] = None,
) -> None:
Expand Down
2 changes: 1 addition & 1 deletion litgpt/generate/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def main(
*,
num_samples: int = 1,
max_new_tokens: int = 50,
top_k: Optional[int] = 200,
top_k: Optional[int] = 50,
temperature: float = 0.8,
checkpoint_dir: Path = Path("checkpoints/stabilityai/stablelm-base-alpha-3b"),
quantize: Optional[Literal["bnb.nf4", "bnb.nf4-dq", "bnb.fp4", "bnb.fp4-dq", "bnb.int8"]] = None,
Expand Down
2 changes: 1 addition & 1 deletion litgpt/generate/full.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main(
checkpoint_dir: Path = Path("checkpoints/stabilityai/stablelm-base-alpha-3b"),
quantize: Optional[Literal["bnb.nf4", "bnb.nf4-dq", "bnb.fp4", "bnb.fp4-dq", "bnb.int8"]] = None,
max_new_tokens: int = 100,
top_k: Optional[int] = 200,
top_k: Optional[int] = 50,
temperature: float = 0.8,
precision: Optional[str] = None,
) -> None:
Expand Down
2 changes: 1 addition & 1 deletion litgpt/generate/sequentially.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def main(
*,
num_samples: int = 1,
max_new_tokens: int = 50,
top_k: Optional[int] = 200,
top_k: Optional[int] = 50,
temperature: float = 0.8,
checkpoint_dir: Path = Path("checkpoints/mistralai/Mistral-7B-Instruct-v0.1"),
quantize: Optional[Literal["bnb.nf4", "bnb.nf4-dq", "bnb.fp4", "bnb.fp4-dq"]] = None,
Expand Down
2 changes: 1 addition & 1 deletion litgpt/generate/tp.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def main(
*,
num_samples: int = 1,
max_new_tokens: int = 50,
top_k: Optional[int] = 200,
top_k: Optional[int] = 50,
temperature: float = 0.8,
checkpoint_dir: Path = Path("checkpoints/stabilityai/stablelm-base-alpha-3b"),
quantize: Optional[Literal["bnb.nf4", "bnb.nf4-dq", "bnb.fp4", "bnb.fp4-dq"]] = None,
Expand Down

0 comments on commit 5fa8299

Please sign in to comment.