microsoft/ms_marco
Viewer • Updated • 1.11M • 25.7k • 241
This repository contains a Continuous Bag of Words (CBOW) Word2Vec model trained on the Microsoft MS MARCO dataset.
import torch
# Load the model
vocab_size = 50001
embed_dim = 128
model = CBOW(vocab_size=vocab_size, embed_dim=embed_dim)
model.load_state_dict(torch.load("cbow_model.pth"))
# Get embeddings for words
embeddings = model.embeddings.weight # Shape: [vocab_size, embed_dim]
This model was trained for 5 epochs with a batch size of 256 and learning rate of 0.003.
MIT