v2 loader: VOCAB 8192 -> 12288
Browse files- load_model.py +2 -2
load_model.py
CHANGED
|
@@ -14,7 +14,7 @@ import torch.nn as nn
|
|
| 14 |
import torch.nn.functional as F
|
| 15 |
from tokenizers import Tokenizer
|
| 16 |
|
| 17 |
-
D, L, H, FFN, VOCAB, SEQ = 512, 16, 8, 2048,
|
| 18 |
|
| 19 |
|
| 20 |
class RMSNorm(nn.Module):
|
|
@@ -93,4 +93,4 @@ if __name__ == "__main__":
|
|
| 93 |
ids = tok.encode("Once upon a time,")
|
| 94 |
ids = torch.tensor([ids], device="cuda")
|
| 95 |
out = m.generate(ids, 100, temp=0.8, top_k=40)
|
| 96 |
-
print(tok.decode(out[0].tolist(), skip_special_tokens=True))
|
|
|
|
| 14 |
import torch.nn.functional as F
|
| 15 |
from tokenizers import Tokenizer
|
| 16 |
|
| 17 |
+
D, L, H, FFN, VOCAB, SEQ = 512, 16, 8, 2048, 12288, 512
|
| 18 |
|
| 19 |
|
| 20 |
class RMSNorm(nn.Module):
|
|
|
|
| 93 |
ids = tok.encode("Once upon a time,")
|
| 94 |
ids = torch.tensor([ids], device="cuda")
|
| 95 |
out = m.generate(ids, 100, temp=0.8, top_k=40)
|
| 96 |
+
print(tok.decode(out[0].tolist(), skip_special_tokens=True))
|