Skip to content

Commit

Permalink
Minor correction.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed May 13, 2024
1 parent 14d8e78 commit b106542
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run_hugging_face(
use_optimum: bool,
tmp_path: Path
) -> Tuple[List[GenerationResult], str]:
hf_tokenizer = AutoTokenizer.from_pretrained(model_id, token=os.environ['MODEL_TOKEN'])
hf_tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForCausalLM.from_pretrained(model_id, export=True) if use_optimum else \
AutoModelForCausalLM.from_pretrained(model_id)
generation_results: List[GenerationResult] = []
Expand Down Expand Up @@ -196,4 +196,4 @@ def test_hf_models_precommit(tmp_path, model_id):
@pytest.mark.nightly
@pytest.mark.parametrize("model_id", get_models_list("models/nightly"))
def test_hf_models_nightly(tmp_path, model_id):
run_test_pipeline(tmp_path, model_id)
run_test_pipeline(tmp_path, model_id)

0 comments on commit b106542

Please sign in to comment.