Skip to content

Commit

Permalink
Release: 0.7.1 (#1257)
Browse files Browse the repository at this point in the history
Also fix some more seeds to prevent flakiness
  • Loading branch information
BenjaminBossan authored Dec 12, 2023
1 parent 971dd6e commit 67a0800
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from setuptools import find_packages, setup


VERSION = "0.7.1.dev0"
VERSION = "0.7.1"

extras = {}
extras["quality"] = ["black ~= 22.0", "ruff>=0.0.241", "urllib3<=2.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion src/peft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.7.1.dev0"
__version__ = "0.7.1"

from .auto import (
AutoPeftModel,
Expand Down
3 changes: 3 additions & 0 deletions tests/test_custom_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@ def set_multiple_active_adapters(self, model, adapter_names):
def test_multiple_active_adapters_forward(
self, test_name, tuner_method, config_cls, config_kwargs_1, config_kwargs_2
):
torch.manual_seed(0)
model = MLP(bias=tuner_method != "ia3")
model.eval()
X = self.prepare_inputs_for_testing()
Expand Down Expand Up @@ -1089,6 +1090,7 @@ def test_multiple_active_adapters_forward(
def test_multiple_active_adapters_merge_and_unmerge(
self, test_name, tuner_method, config_cls, config_kwargs_1, config_kwargs_2
):
torch.manual_seed(0)
model = MLP(bias=tuner_method != "ia3")
model.eval()
X = self.prepare_inputs_for_testing()
Expand Down Expand Up @@ -1117,6 +1119,7 @@ def test_multiple_active_adapters_merge_and_unmerge(

@parameterized.expand(MULTIPLE_ACTIVE_ADAPTERS_TEST_CASES)
def test_merge_layers_multi(self, test_name, tuner_method, config_cls, config_kwargs_1, config_kwargs_2):
torch.manual_seed(0)
model = MLP(bias=tuner_method != "ia3")
model.eval()

Expand Down

0 comments on commit 67a0800

Please sign in to comment.