MCPcopy Create free account
hub / github.com/modelscope/modelscope / test_push_to_hub

Method test_push_to_hub

tests/utils/test_hf_util.py:267–272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

265
266 @unittest.skipUnless(test_level() >= 1, 'skip test in current test level')
267 def test_push_to_hub(self):
268 with patch_context():
269 from transformers import AutoModelForCausalLM
270 model = AutoModelForCausalLM.from_pretrained(
271 'Qwen/Qwen1.5-0.5B-Chat', trust_remote_code=True)
272 model.push_to_hub(self.create_model_name)
273
274 @unittest.skipUnless(test_level() >= 1, 'skip test in current test level')
275 def test_pipeline_model_id(self):

Callers

nothing calls this directly

Calls 2

patch_contextFunction · 0.90
from_pretrainedMethod · 0.45

Tested by

no test coverage detected