(self)
| 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): |
nothing calls this directly
no test coverage detected