Skip to content

Commit f998a0b

Browse files
committed
Use clarified manifest paths in adapters
Update binding validation and adapter fixtures for ComponentDescriptor.module_attribute_path. Signed-off-by: Xiaoyu Zhang <[email protected]>
1 parent d9253d4 commit f998a0b

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/mobius/_component_quantization.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,10 @@ def normalize_component_quantized_weights(
599599
"component-specific tied-weight adapter."
600600
)
601601
local_path = _local_weight_module_path(record.name, descriptor)
602-
component_module = _resolve_module(module, descriptor.module_path)
602+
component_module = _resolve_module(
603+
module,
604+
descriptor.module_attribute_path,
605+
)
603606
local_module = (
604607
_resolve_module(component_module, local_path)
605608
if component_module is not None

‎src/mobius/weights/_adapters_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _manifest() -> ComponentManifest:
1818
(
1919
ComponentDescriptor(
2020
name="model",
21-
module_path="",
21+
module_attribute_path="",
2222
role="decoder",
2323
),
2424
)

0 commit comments

Comments
 (0)