Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions tests/test_modeling_geometric_mixture_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest

Comment thread
albertvillanova marked this conversation as resolved.
Resolved
import torch
import transformers
from packaging.version import Version
from transformers import AutoModelForCausalLM, GenerationConfig

from trl.models.modeling_base import GeometricMixtureWrapper, create_reference_model
Expand Down Expand Up @@ -60,11 +58,6 @@ def test_mixture_coefficient(self):

assert torch.allclose(wrapper_output.logits, expected_logits, atol=1e-5)

@pytest.mark.xfail(
Version(transformers.__version__).is_devrelease, # Tests with dev dependencies
reason="Blocked by upstream fix pending in huggingface/transformers#41764 (tracked in GH-4272)",
strict=True,
)
def test_prepare_inputs_for_generation(self):
input_ids = torch.tensor([[1, 2, 3, 4, 5]], device=self.device)
attention_mask = torch.ones_like(input_ids)
Expand Down
Loading