Skip to content

Commit 6c38f16

Browse files
committed
Clarify component and quantization identifiers
Name the component module field as an nn.Module attribute path and use method consistently for packed quantization provenance. Signed-off-by: Xiaoyu Zhang <[email protected]>
1 parent faec287 commit 6c38f16

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎docs/design/per-component-quantization-loading.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ migrate in one change.
130130
@dataclasses.dataclass(frozen=True)
131131
class ComponentDescriptor:
132132
name: str
133-
module_path: str
133+
# Dotted Python attribute path from the root nn.Module passed to task.build().
134+
# This is neither a ModelPackage key nor a checkpoint key prefix.
135+
module_attribute_path: str
134136
role: str
135137
source_paths: tuple[str, ...]
136138

@@ -275,7 +277,7 @@ class AffinePackedWeight:
275277
bits: int
276278
group_size: int
277279
symmetric: bool
278-
format: str
280+
method: str
279281

280282

281283
@dataclasses.dataclass(frozen=True)

0 commit comments

Comments
 (0)