Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair committed May 14, 2024
1 parent c69c469 commit 88cdf89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions clients/python/tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def test_parameters_validation():

# Test temperature
Parameters(temperature=1)
with pytest.raises(ValidationError):
Parameters(temperature=0)
Parameters(temperature=0)
with pytest.raises(ValidationError):
Parameters(temperature=-1)

Expand Down
4 changes: 1 addition & 3 deletions server/lorax_server/utils/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,7 @@ def __init__(
index=None,
):
super().__init__()
assert (
not memory_efficient_backward
), "memory_efficient_backward is no longer required and the argument is deprecated in 0.37.0 and will be removed in 0.39.0"
assert not memory_efficient_backward, "memory_efficient_backward is no longer required and the argument is deprecated in 0.37.0 and will be removed in 0.39.0"
self.state = bnb.MatmulLtState()
self.index = index

Expand Down
2 changes: 1 addition & 1 deletion server/lorax_server/utils/tokens.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import re
import warnings
from contextlib import nullcontext
from typing import List, Optional, Set, Tuple, Union

import torch
import warnings
from transformers import (
PreTrainedTokenizerBase,
RepetitionPenaltyLogitsProcessor,
Expand Down

0 comments on commit 88cdf89

Please sign in to comment.