Commit Graph

21 Commits

Author SHA1 Message Date
ZGY
07c937b295 Merge pull request #347 from rafaelfiguereod-stack/harden/torch-load-weights-only
Harden checkpoint loading: set weights_only=True on all torch.load calls
2026-07-01 11:04:06 +08:00
Rafael Figuereo
09fce8e9db Harden checkpoint loading: set weights_only=True on all torch.load calls
The fine-tuning resume path in scripts/train_voxcpm_finetune.py called
torch.load() without weights_only=True for the LoRA checkpoint, full-model
checkpoint, optimizer, and scheduler. Loading an attacker-supplied checkpoint
directory would therefore execute arbitrary code during unpickling.

Every inference-time loader (model/voxcpm.py, model/voxcpm2.py, LoRA loading)
already passes weights_only=True, and the project ships a test asserting LoRA
loading rejects malicious pickle payloads. This closes the remaining gap so the
resume path matches that posture.

Also:
- app.py: add a --host flag so the Gradio server can bind to 127.0.0.1 instead
  of being hardwired to 0.0.0.0 (default unchanged to preserve current behavior).
  The UI exposes an unauthenticated api_name="generate" endpoint.
- tests/test_torch_load_safety.py: AST guard asserting every torch.load across
  src/, scripts/, app.py and lora_ft_webui.py sets weights_only=True, plus a
  behavioral check that a malicious pickle is blocked.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 19:16:14 -04:00
Eliseu Silva
5e293dee2f fix: formatting/trailing whitespace 2026-06-24 22:31:23 -03:00
Eliseu Silva
5ef0b3db4c fix: track successful generation seed 2026-06-24 22:26:33 -03:00
muyleanging
05fe0cb08d Add Mac MPS support for Gradio app 2026-05-08 15:29:48 +09:00
gluttony-10
d3cc88722c feat: enhance control text processing in VoxCPMDemo
Added regex to strip parentheses from control instructions in the text synthesis method to ensure compatibility with the expected prompt format. This change improves the robustness of the input handling.
2026-04-21 07:07:24 +00:00
Labmem-Zhouyx
5611bd08a0 optim app.py 2026-04-09 00:30:19 +08:00
Labmem-Zhouyx
0c2cf23617 Update app.py UI, adjust streaming_prefix_len, remove legacy docs
- Refine app.py: Ultimate Cloning naming, NFE slider, i18n polish
- Change streaming_prefix_len default from 3 to 4 for smoother decoding
- Remove legacy docs/ directory (migrated to ReadTheDocs)

Made-with: Cursor
2026-04-03 18:42:41 +08:00
刘鑫
30c300cfe8 adjust default cfg range 2026-04-02 18:14:35 +08:00
刘鑫
addee2c550 surport voxcpm2 cli 2026-04-01 21:15:55 +08:00
刘鑫
d9cf376e16 update voxcpm2 2026-03-31 11:50:37 +08:00
刘鑫
e8dd956fc2 Print all log messages to stderr instead of stdout 2026-01-12 15:30:45 +08:00
刘鑫
a266c0a88d add lora funetine webUI; optimize lora save and load logic 2025-12-09 21:34:39 +08:00
Labmem-Zhouyx
5b13a35ea6 Update: gradio description 2025-12-05 23:47:35 +08:00
Labmem-Zhouyx
3ba727a615 Update: gradio description 2025-12-05 23:38:04 +08:00
Labmem-Zhouyx
461ad7e506 Update: VoxCPM1.5 and fine-tuning supprt 2025-12-05 21:00:01 +08:00
刘鑫
bdd516b579 remove target text anotation 2025-09-18 13:07:43 +08:00
刘鑫
11568f0776 remove target text anotation 2025-09-18 12:58:27 +08:00
刘鑫
e5bcb735f0 Remove segment text logic 2025-09-18 12:02:37 +08:00
周逸轩
e3108d4a12 FX: typo 2025-09-16 19:36:17 +08:00
zengguoyang
272b8ffbf6 init 2025-09-16 11:46:47 +08:00