Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JingyaHuang committed Jan 16, 2024
1 parent a88eee3 commit bb44c52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/inference/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def test_pipeline_model(self, model_arch):
self._setup(model_args)

model_id = self.ARCH_MODEL_MAP[model_arch] if model_arch in self.ARCH_MODEL_MAP else MODEL_NAMES[model_arch]
neuron_model = NeuronModelForFeatureExtractionIntegrationTest.from_pretrained(
neuron_model = NeuronModelForFeatureExtraction.from_pretrained(
self.neuron_model_dirs[model_arch + "_dyn_bs_false"]
)
tokenizer = get_preprocessor(model_id)
Expand Down Expand Up @@ -514,9 +514,7 @@ def test_pipeline_model(self, model_arch):
self._setup(model_args)

model_id = self.ARCH_MODEL_MAP[model_arch] if model_arch in self.ARCH_MODEL_MAP else MODEL_NAMES[model_arch]
neuron_model = NeuronModelForMaskedLMIntegrationTest.from_pretrained(
self.neuron_model_dirs[model_arch + "_dyn_bs_false"]
)
neuron_model = NeuronModelForMaskedLM.from_pretrained(self.neuron_model_dirs[model_arch + "_dyn_bs_false"])
tokenizer = get_preprocessor(model_id)
MASK_TOKEN = tokenizer.mask_token
pipe = pipeline(self.TASK, model=neuron_model, tokenizer=tokenizer)
Expand Down

0 comments on commit bb44c52

Please sign in to comment.