Keep YuE2 native AR NAR VAE weights resident and eagerly load
This commit is contained in:
1 parent
2d709a9334
commit
f5bff22ad0
8 files changed
+34
-4
No files matched your search
@@ -29,7 +29,8 @@ class AudioCppTests(unittest.TestCase):
|
||||
(base/'source/model_specs/yue2.json').write_text('{}')
|
||||
(base/'build/bin').mkdir(parents=True)
|
||||
(base/'build/bin/audiocpp_cli').touch()
|
||||
with patch.object(runtime,'_command',side_effect=command),patch('subprocess.check_output',return_value='12.0\n8.6\n'):runtime._run()
|
||||
with patch('deploy.patch_yue2_residency.patch') as residency,patch.object(runtime,'_command',side_effect=command),patch('subprocess.check_output',return_value='12.0\n8.6\n'):runtime._run()
|
||||
residency.assert_called_once_with(Path(root,'a'*32,'source'))
|
||||
self.assertEqual(runtime.job['state'],'complete')
|
||||
self.assertTrue(runtime.status()['installed'])
|
||||
self.assertTrue(runtime.status()['adapter_ready'])
|
||||
|
||||
Reference in new issue
Block a user