fix dtype inspect

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-09-11 10:24:34 +02:00
parent 3f7a494b81
commit c3fa079aad
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -5,7 +5,8 @@
### Highlights for 2026-09-11
*What's New*? Well, code-wise, this is a big one...
First, a-lot-of-optimizations:
First, a-lot-of-optimizations:
- updated core packages
- improved **LoRA** performance and quality, especially with quantized models
- newly structured **attention** mechanisms
- modular pipelines with new **guidance** methods
+4 -1
View File
@@ -174,7 +174,10 @@ def report_model_stats(module_name, module):
size, _params = get_module_size(module)
quant = getattr(module, "quantization_method", None)
params = sum(p.numel() for p in module.parameters(recurse=True))
dtype = next(module.parameters()).dtype if any(module.parameters()) else None
try:
dtype = next(module.parameters(), torch.tensor([])).dtype
except Exception:
dtype = None
logical = get_logical_param_count(module)
log.debug(f'Module: name={module_name} cls={module.__class__.__name__} size={size:.3f} params={params} logical={logical} quant={quant} dtype={dtype}')
except Exception as e:
+2 -1
View File
@@ -105,7 +105,6 @@ def verify(pkg_path):
return { 'error': 'package path not found' }
if not c.controller.get_python(pkg_path):
return { 'error': 'python not found in package path' }
shared.opts.dlss_pkg_path = pkg_path
response = c.controller.call(pkg_path, 'verify', { 'gpu_uuid': 'auto', 'options': { 'level': 'deep' } })
if response.get('status') != 'ok':
error = response.get('error') or {}
@@ -121,6 +120,8 @@ def verify(pkg_path):
else:
checks['failed'] += 1
log.error(f'DLSS : {check}')
shared.opts.dlss_pkg_path = pkg_path
shared.opts.save()
log.debug(f'DLSS: gpu={report.get("gpu", "unknown")} checks={checks}')
return report