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.
Record other programs' GPU share for each sampling step in the diagnostic report
Bowen Xued2afe53533cf
diff --git a/freevideo_engine/diagnostic_resources.py b/freevideo_engine/diagnostic_resources.pyindex 7b9d353..d6bad2b 100644--- a/freevideo_engine/diagnostic_resources.py+++ b/freevideo_engine/diagnostic_resources.py@@ -466,7 +466,8 @@ WINDOWS_BUDGET = ('peak_usage_bytes', 'minimum_budget_bytes', 'maximum_budget_by'first_budget_bytes', 'last_budget_bytes', 'budget_changes', 'over_budget_samples', 'samples')# Whole-device NVML samples inside one sampling step (monitoring.step_activity).STEP_ACTIVITY = ('samples', 'busy_samples', 'gpu_util_mean_percent', 'sm_clock_mean_mhz', 'power_mean_mw',- 'device_used_peak_bytes', 'device_used_minimum_bytes', 'device_total_bytes')+ 'device_used_peak_bytes', 'device_used_minimum_bytes', 'device_total_bytes',+ 'other_programs_checks', 'other_programs_percent_mean', 'other_programs_percent_peak')def dynamic_budget(value):diff --git a/freevideo_engine/monitoring.py b/freevideo_engine/monitoring.pyindex c7ea98f..e0f60ef 100644--- a/freevideo_engine/monitoring.py+++ b/freevideo_engine/monitoring.py@@ -181,20 +181,23 @@ class OtherPrograms:self.ours = self.ours or {pid for pid in (os.getpid(), self.pid) if pid}def check(self, util):- """Read once a second; count the reading when the worker is computing on a busy device."""+ """Read once a second; count the reading when the worker is computing on a busy device.++ Returns the other programs' share of the cores in percent for a reading that was counted, else None.+ """now = time.monotonic()if self.supported is False or now - self.checked < self.seconds:- return+ return Noneself.checked = nowfound = self.read()if found is None:self.failures += 1if self.supported is None and self.failures >= self.failures_allowed:self.supported = False- return+ return Noneself.supported = Trueif not found or util is None or util < 50:- return+ return None# A process we have not seen may be a child the worker just started.if now - self.refreshed >= self.refresh_seconds or any(pid not in self.seen for pid in found):self.refresh()@@ -207,12 +210,13 @@ class OtherPrograms:# device did beyond the other programs was the worker's.own = max(0., util - other)if own < self.own_percent:- return+ return Noneself.checks += 1self.shared += other >= self.share_percentself.other_total += otherself.own_total += ownself.other_peak = max(self.other_peak, other)+ return otherdef result(self):result = dict(supported=bool(self.supported), own_reported=self.own_reported, checks=self.checks,@@ -433,7 +437,8 @@ class Monitor:with self.path.open('w', buffering=1, encoding='utf-8') as f:writer = csv.writer(f)writer.writerow(['epoch_seconds', 'monotonic_seconds', 'used_bytes', 'total_bytes', 'gpu_util_percent',- 'temperature_c', 'power_mw', 'sm_clock_mhz', 'memory_clock_mhz', 'clock_reason_mask'])+ 'temperature_c', 'power_mw', 'sm_clock_mhz', 'memory_clock_mhz', 'clock_reason_mask',+ 'other_programs_percent'])while not self.stop_event.is_set():try:used, total, util = self.sample()@@ -449,8 +454,12 @@ class Monitor:self.max_temperature = max(self.max_temperature or 0, auxiliary[0])if auxiliary[1] is not None:self.max_power_mw = max(self.max_power_mw or 0, auxiliary[1])- writer.writerow([time.time(), time.monotonic(), used, total, util, *auxiliary, reasons])- self.programs.check(util)+ try:+ other = self.programs.check(util)+ except Exception:+ other = None+ writer.writerow([time.time(), time.monotonic(), used, total, util, *auxiliary, reasons,+ '' if other is None else '%.1f' % other])except Exception as e:if str(e) not in self.errors and len(self.errors) < 20:self.errors.append(str(e))@@ -526,6 +535,13 @@ def step_activity(csv_path, steps, *, limit_bytes=64 * 2**20):total = item['sums'].setdefault(key, [0., 0])total[0] += valuetotal[1] += 1+ other = number(sample, 'other_programs_percent')+ if other is not None and other <= 100:+ item['other_programs_checks'] = item.get('other_programs_checks', 0) + 1+ item['other_programs_percent_peak'] = max(item.get('other_programs_percent_peak', 0.), other)+ total = item['sums'].setdefault('other_programs_percent_mean', [0., 0])+ total[0] += other+ total[1] += 1used, size = number(sample, 'used_bytes'), number(sample, 'total_bytes')if used is not None:item['device_used_peak_bytes'] = max(item.get('device_used_peak_bytes', 0), int(used))diff --git a/freevideo_engine/release_notes.json b/freevideo_engine/release_notes.jsonindex 78f7589..5a3f337 100644--- a/freevideo_engine/release_notes.json+++ b/freevideo_engine/release_notes.json@@ -6,7 +6,7 @@"changes": ["Second pass: the result button, preview badge, library and delete messages use the 0.4.6 wording again (Run second pass, First-pass preview).","Long videos: the voice keeps the same loudness and fullness from part to part, and with dialogue a continued part no longer opens with a second or two of unclear speech. Continuing a video from the creative panel keeps your reference pictures and characters, so the person stays the same; up to 3 pictures are used.",- "Characters: two @names written back to back are both recognised, the list no longer reopens after a finished name, and Save in the character library says what is still missing. An @character written in the editing view's generation bar now carries that character's description and pictures, as it does in the creation panel.",+ "Characters: two character names typed back to back after the @ key are both recognised, the list no longer reopens after a finished name, and Save in the character library says what is still missing. A character mentioned with @ in the editing view's generation bar now carries that character's description and pictures, as it does in the creation panel.","LoRA: you can type a strength beyond -4 to 4, up to 100, and a note marks values outside the usual range; the slider and default strength are unchanged. A trigger word that only appears inside a longer word (sks in asks) is now added.","Image generation: an out-of-memory failure says where memory ran out and at which size, and the progress line shows the smaller size while retrying; if the background process exits right after starting, it is retried once. Clicking Update while the image model is downloading pauses the download (what is already downloaded is kept and can be resumed) and starts the update at once. The option to install the image model as well checks free space on the drive that holds the models and is not offered when there is not enough room.","Downloads: large model downloads check the other sources while a transfer is slow and move to a clearly faster one, resuming the same file; a transfer that stops moving for 30 seconds changes source as well. The missing-model hint names each download and its size, and is checked again after a generation ends.",