@melite/models-yue2 0.1.4-alpha → 0.1.5-pre-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ ---
2
+ description: YuE2 music family — YuE2-3B style-plus-lyrics song generation with ABC planning, on the ComfyUI engine from the official Comfy-Org release.
3
+ kind: package-library
4
+ ---
5
+
6
+ # @melite/models-yue2
7
+
8
+ `@melite/models-yue2` is the model family package for YuE2-3B music generation (`form_music`, genre audio, engine comfyui): a style caption plus lyrics go in, an ABC plan is drafted, and a song comes out as mp3. The DECL boards the official Comfy-Org release (`Comfy-Org/YuE2`, the `audio_yue2_text2music` template) and declares the `compose` action, one provision, and the required `prompt` relation. The estate boot mounts it as a Cordis plugin through `ctx.models.registerFamily` inside `ctx.effect`; the music card binds the action. The lane is this package's own `actions.ts`, pinned to committed goldens in `tests/golden/`.
9
+
10
+ ## Declaration
11
+
12
+ One checkpoint carries model, clip, and VAE (`yue2_3b_int8_convrot.safetensors`, provisioned from Comfy-Org at ~3.96 GB, sha256-pinned; the INT8 ConvRot cell declares an ~8 GB VRAM peak). Variant recipes: `short_sting` stamps `duration` 5 (the schema floor) and `full_length` stamps 360 (the ceiling); `Default` stamps nothing. The `compose` action's params: `prompt` (required — every music lane states what the song is), `lyrics`, `mode` (`full` / `melody` / `off`), `duration` (bounds 5–360), `n_diffusion_steps` (1–200), and a seed-sentinel `seed`. The build plans ABC with `YuE2GenerateABC` (mode `off` composes no planner), sizes the latent from `YuE2GenerateMusic`'s seconds output, samples with KSampler dpm_2 / sgm_uniform at cfg 1, and saves mp3 V0 under `<run>/music`.
13
+
14
+ ```
15
+ .
16
+ ./package.json
17
+ ```
18
+
19
+ ## Model Experience
20
+
21
+ ### Request context and condition
22
+
23
+ #### What the model sees
24
+
25
+ - **prompt** — required; the style caption.
26
+ - **lyrics** — the sung words (absent rides as empty).
27
+ - **mode** — the ABC-planning pick.
28
+ - **duration / n_diffusion_steps / seed** — length, sampler depth, and the minted seed.
29
+
30
+ #### Token effect
31
+
32
+ Zero-direct token effect — the fields ride the composed ComfyUI graph; the caption and lyrics are engine-side, never harness context.
33
+
34
+ #### KV Cache effect
35
+
36
+ Independent — each composition is its own engine request; no shared prefix.
37
+
38
+ ## Known Limitations and Deferred Work
39
+
40
+ - **One quant boarded** — only the INT8 ConvRot cell exists; the bf16 cell and the SheetSage2 cover encoder stay unboarded until a cover lane exists (the DECL's own source note).
41
+ - **Guidance is fixed** — cfg rides at 1 by design (guidance lives on the AR side); there is no cfg knob.
42
+ - **Song quality** — musicality and lyric adherence are not verified against the running model.
package/lib/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { Plugin } from "@deepseek-ai/cordis";
2
- import type { ModelDecl } from "@melite/comfyui-cordis/model-contract";
2
+ import type { ModelDecl } from '@melite/comfyui-card-kit/model-contract';
3
3
  export declare const DECL: ModelDecl;
4
4
  export declare const family: Plugin;
5
5
  export { compose, parseYue2Facts, type Yue2Facts, type Yue2Params } from "./actions.js";
6
+ export { family as default };
6
7
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -19,9 +19,8 @@ export const DECL = {
19
19
  "route": "yue2",
20
20
  "cells": [
21
21
  {
22
- "source": {
23
- "filename": "YuE2"
24
- },
22
+
23
+ // Comfy-Org checkpoint the provisions row carries.
25
24
  "quant": "int8",
26
25
  "label": "INT8 ConvRot",
27
26
  "route": "yue2",
@@ -95,6 +94,12 @@ export const DECL = {
95
94
  },
96
95
  ],
97
96
  },
97
+ // THE LANE SURFACE (the z-image precedent): exactly the knobs the
98
+ // music card serves.
99
+ "params": [
100
+ "prompt", "lyrics", "duration", "mode",
101
+ "guidance_scale", "n_diffusion_steps", "lm_cfg_scale", "seed",
102
+ ],
98
103
  // THE DECLARED ACTIONS (the atom vocabulary, stroke 3):
99
104
  // the compose action the music card binds (the YuE2-3B lane).
100
105
  // The admission gate runs the facts parse at registration.
@@ -108,4 +113,9 @@ export const family = {
108
113
  },
109
114
  };
110
115
  export { compose, parseYue2Facts } from "./actions.js";
116
+ // The Loader-row face: DSH loads plugin rows by bare specifier and
117
+ // unwraps `exports.default ?? exports` (vendor/cordis_plugins/loader
118
+ // unwrapExports) — the default export IS the row-loadable plugin. The
119
+ // named `family` stays the library face (engine loadFamilies).
120
+ export { family as default };
111
121
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melite/models-yue2",
3
- "version": "0.1.4-alpha",
3
+ "version": "0.1.5-pre-alpha",
4
4
  "license": "SSPL-1.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -11,8 +11,7 @@
11
11
  "./package.json": "./package.json"
12
12
  },
13
13
  "dependencies": {
14
- "@melite/comfyui-card-kit": "0.1.4-alpha",
15
- "@melite/comfyui-cordis": "0.1.4-alpha"
14
+ "@melite/comfyui-card-kit": "0.1.5-pre-alpha"
16
15
  },
17
16
  "devDependencies": {
18
17
  "@types/node": "^22.20.0",