bobox/OpenbookQA-4ST
Viewer • Updated • 9.28k • 129 • 3
Simple implementation of GloVe using PyTorch and modern (2026) HuggingFace devkit such as Datasets, Tokenizers, and Safetensors. This repository is suitable for any beginners trying to understand how to incorporate HuggingFace into their workflow with PyTorch.
We will be demonstrating the use of saved tokenizer and config by calling the from_pretrained method of a model or a tokenizer class.
A very first-principled use of HF devkit made easy to understand.
uv run app.py
See train.ipynb for training recipe.
I initially written W_i, W_j, B_i, and B_j like so.
But in the paper, W_j and B_j is actually also subscript i but with tidle above W and B to denote the context word vector.
The app.py script already has a note for this, the script works just fine.