Created
March 10, 2025 14:32
-
-
Save cynthia/8b0f360447704f7ec543ed01b76e0ba3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from safetensors import safe_open | |
from torch.nn import Embedding | |
with safe_open("model-00001-of-000163.safetensors", framework="pt") as f: | |
embeddings = Embedding.from_pretrained(f.get_tensor('model.embed_tokens.weight')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notable weird tokens
and many more with similar patterns