Initial support for RamTorch. Still a WIP
This commit is contained in:
1 parent
c6edd71a5b
commit
4e5707854f
8 files changed
+687
-120
No files matched your search
@@ -624,6 +624,15 @@ class ModelConfig:
|
||||
|
||||
self.arch: ModelArch = kwargs.get("arch", None)
|
||||
|
||||
# auto memory management, only for some models
|
||||
self.auto_memory = kwargs.get("auto_memory", False)
|
||||
if self.auto_memory and self.qtype == "qfloat8":
|
||||
print(f"Auto memory is not compatible with qfloat8, switching to float8 for model")
|
||||
self.qtype = "float8"
|
||||
if self.auto_memory and not self.qtype_te == "qfloat8":
|
||||
print(f"Auto memory is not compatible with qfloat8, switching to float8 for te")
|
||||
self.qtype_te = "float8"
|
||||
|
||||
# can be used to load the extras like text encoder or vae from here
|
||||
# only setup for some models but will prevent having to download the te for
|
||||
# 20 different model variants
|
||||
@@ -650,6 +659,7 @@ class ModelConfig:
|
||||
|
||||
if self.arch == "flex1":
|
||||
self.arch = "flux"
|
||||
|
||||
|
||||
# handle migrating to new model arch
|
||||
if self.arch is not None:
|
||||
|
||||
Reference in new issue
Block a user