Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ from sentence_transformers import SentenceTransformer
|
|
| 42 |
|
| 43 |
embedder = SentenceTransformer("google/embeddinggemma-2", device="cpu",
|
| 44 |
model_kwargs={"dtype": torch.float32})
|
| 45 |
-
head_path = hf_hub_download("
|
| 46 |
head = torch.nn.Sequential(
|
| 47 |
torch.nn.Linear(768, 64), torch.nn.ReLU(), torch.nn.Dropout(0.2), torch.nn.Linear(64, 1))
|
| 48 |
head.load_state_dict(torch.load(head_path, map_location="cpu"))
|
|
|
|
| 42 |
|
| 43 |
embedder = SentenceTransformer("google/embeddinggemma-2", device="cpu",
|
| 44 |
model_kwargs={"dtype": torch.float32})
|
| 45 |
+
head_path = hf_hub_download("flashcoder/tweet-buy-intent", "head.pt")
|
| 46 |
head = torch.nn.Sequential(
|
| 47 |
torch.nn.Linear(768, 64), torch.nn.ReLU(), torch.nn.Dropout(0.2), torch.nn.Linear(64, 1))
|
| 48 |
head.load_state_dict(torch.load(head_path, map_location="cpu"))
|