LaminarNet-50m v0.6.2 — best checkpoint (step 115500, val_loss=3.7881)
Browse files
README.md
CHANGED
|
@@ -91,10 +91,10 @@ config = LaminarNetConfig(
|
|
| 91 |
)
|
| 92 |
model = LaminarNet(config)
|
| 93 |
|
| 94 |
-
# Load weights
|
| 95 |
from safetensors.torch import load_file
|
| 96 |
state = load_file(model_path)
|
| 97 |
-
model.load_state_dict(state)
|
| 98 |
model.eval()
|
| 99 |
|
| 100 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 91 |
)
|
| 92 |
model = LaminarNet(config)
|
| 93 |
|
| 94 |
+
# Load weights (head.weight is tied to tok_emb.weight, so strict=False)
|
| 95 |
from safetensors.torch import load_file
|
| 96 |
state = load_file(model_path)
|
| 97 |
+
model.load_state_dict(state, strict=False)
|
| 98 |
model.eval()
|
| 99 |
|
| 100 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|