Fix some tests (#35682)

* cohere tests

* glm tests

* cohere2 model name

* create decorator

* update

* fix cohere2 completions

* style

* style

* style

* add cuda in comments
This commit is contained in:
Cyril Vallez
2025-01-17 12:10:43 +00:00
committed by GitHub
parent 8c1b5d3782
commit ab1afd56f5
6 changed files with 38 additions and 38 deletions

View File

@@ -23,7 +23,7 @@ from transformers.testing_utils import (
is_flaky,
require_flash_attn,
require_torch,
require_torch_accelerator,
require_torch_large_gpu,
require_torch_sdpa,
slow,
torch_device,
@@ -418,7 +418,7 @@ class GlmModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMixin,
@slow
@require_torch_accelerator
@require_torch_large_gpu
class GlmIntegrationTest(unittest.TestCase):
input_text = ["Hello I am doing", "Hi today"]
model_id = "THUDM/glm-4-9b"