Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
Prompt enhancement model also downloads from ModelScope
Bowen Xuea13e32ea0d27
diff --git a/freevideo_engine/prompt_vlm/assets.py b/freevideo_engine/prompt_vlm/assets.pyindex 1112fdd..408906d 100644--- a/freevideo_engine/prompt_vlm/assets.py+++ b/freevideo_engine/prompt_vlm/assets.py@@ -4,6 +4,8 @@ from pathlib import Pathimport shutilfrom .. import disk_space+FAMILY = 'image-models'+def catalog():return json.loads(Path(__file__).with_name('model.json').read_text(encoding='utf-8'))@@ -26,6 +28,23 @@ def ready(root):return False+def remote(spec, row):+ """One catalog file with every source FreeVideo may fetch it from.++ Hugging Face hosts are pinned to the catalog revision. ModelScope has no+ matching commit, so its copy is accepted only when the size and SHA-256 in+ the catalog match, as for the image model.+ """+ from ..network import source_url+ hf = '/%s/resolve/%s/%s' % (spec['repo'], spec['revision'], row['file'])+ mirror = spec['modelscope']+ return dict(repo=spec['repo'], revision=spec['revision'], file=row['file'], family='image', sources=[+ dict(id='official', url=source_url('models', 'official') + hf),+ dict(id='hf-mirror', url=source_url('models', 'hf-mirror') + hf),+ dict(id='modelscope', url=source_url(FAMILY, 'modelscope') + '/models/%s/resolve/%s/%s' % (+ mirror['repo'], mirror['revision'], row['file']))])++def install(root, progress, check):from .. import network, provisionfrom ..adaln_assets import _download_plan@@ -52,22 +71,23 @@ def install(root, progress, check):if disk_space.free_bytes(folder) < total - retained + 256 * 2**20:raise ValueError('disk_space')plan = _download_plan(root)- # This catalog has no verified ModelScope mirror yet. Preserve configured- # routing, but never guess a mirror revision or send credentials to it.- plan['sources'] = dict(plan.get('sources', {}), models=[- row for row in plan.get('sources', {}).get('models', []) if row['id'] in ('official', 'hf-mirror')])- if not plan['sources']['models']:- plan['sources']['models'] = [{'id': 'official'}, {'id': 'hf-mirror'}]+ # Same three hosts as the image model, so the same ordering, measured+ # routes and Download source choice apply. Installs whose plan predates+ # that family keep their Hugging Face order, with ModelScope after it.+ sources = plan['sources'] = dict(plan.get('sources', {}))+ if not sources.get(FAMILY):+ sources[FAMILY] = [dict(row) for row in sources.get('models', [])+ if row['id'] in ('official', 'hf-mirror')] or [{'id': 'official'}, {'id': 'hf-mirror'}]+ sources[FAMILY].append({'id': 'modelscope'})plan.update(quiet=True, resource_check=check)done = 0for row in missing:check()path = folder / row['file']- remote = dict(repo=spec['repo'], revision=spec['revision'], file=row['file'])def moved(current, size, speed, **kwargs):progress(dict(phase='download', done=done + current, total=total))- network.download(network.model_urls(plan, remote), path, row['sha256'], moved,- network=plan, size=row['bytes'], keep_partial=True, stall_seconds=30,+ network.download(network.model_urls(plan, remote(spec, row)), path, row['sha256'], moved,+ network=plan, size=row['bytes'], category=FAMILY, keep_partial=True, stall_seconds=30,slow_seconds=15, low_speed_limit=64 * 1024)ledger[str(path)] = provision.file_identity(path, row)save(ledger_path, ledger)diff --git a/freevideo_engine/prompt_vlm/model.json b/freevideo_engine/prompt_vlm/model.jsonindex 8e59980..e9183dd 100644--- a/freevideo_engine/prompt_vlm/model.json+++ b/freevideo_engine/prompt_vlm/model.json@@ -2,6 +2,7 @@"repo": "Qwen/Qwen3-VL-4B-Instruct","revision": "ebb281ec70b05090aa6165b016eac8ec08e71b17","license": "Apache-2.0",+ "modelscope": {"repo": "Qwen/Qwen3-VL-4B-Instruct", "revision": "master"},"files": [{"file": "chat_template.json",