mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-08 21:38:04 -05:00
fixed a bug where lm would crash with certain smaller models
This commit is contained in:
@@ -324,7 +324,7 @@ if __name__ == "__main__":
|
||||
|
||||
mlir_str = bytes(mlir_str, "utf-8")
|
||||
|
||||
if config["n_embed"] == 14336:
|
||||
if "n_embed" in config.keys() and config["n_embed"] == 14336:
|
||||
|
||||
def get_state_dict():
|
||||
d = torch.load(
|
||||
|
||||
Reference in New Issue
Block a user