mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 12:10:09 +01:00
skip hf download
This commit is contained in:
@@ -172,7 +172,7 @@ class TextGenerationTest(unittest.TestCase):
|
||||
self.run_pipeline_with_model_id(self.gpt3_large_model_id,
|
||||
self.gpt3_input)
|
||||
|
||||
@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
|
||||
@unittest.skipUnless(test_level() >= 1, 'skip test in current test level')
|
||||
def test_hf_model_stream_generate(self):
|
||||
from transformers import AutoTokenizer, GPT2LMHeadModel
|
||||
tokenizer = AutoTokenizer.from_pretrained('gpt2')
|
||||
|
||||
Reference in New Issue
Block a user